Advertisement

Results for "top"

4_2005-2006 #155065
Win32 API Winsock HTTP/HTML Retrieve (and simple Always On Top)

Retrieve the default site of a website via API32 and Winsock 2.0. Also included a simple Always On Top demonstration. No MFC so far.

4_2005-2006 #155487
Wintasks

This program does about anything you can think of: Shut down, restart, log off, connect/disconnect to internet, enumerate windows, create Veda designs, stay on top, montor cpu, tells length in windows, date, time, what mouse is over, disble/enable: screen saver ALT-CTL-DEL Taskbar Desktop Icons, empty recycling bin, auto mouse move, minimizes to windows tray, minimize all, change screen resolution, open CDRom drive, open every thing in control panel, copy files, rename files, run files, force on top, finds **** in textboxes, changes keys into ASCII #s, opens "find files", open winfiles, open explore, AND MUCH MUCH MORE!!! This is by far my best program uses TONS of API calls!!! Have Fun!

4_2005-2006 #156013
API Programming Series Article #3 Bring a Window to Top

In the third article we see how to bring a window to top using the Win32 API.

4_2005-2006 #158060
Snap form to top/left/right/bottom of screen

When draged to top/left/right/bottom of the screen will snap to the closest side when it comes within 30(or other desired number) pixels of a side much like winamp.

4_2005-2006 #160166
Form On-Top

Whant to make your form on-top of of all other applications, well this is the code for you!

4_2005-2006 #160524
[ leo html text fader ]

leo text fader is a fader that fades text from one color to the next and generates the html code. fade up to 11 colors many options. i worked hard so please vote. the forms also have no frams and are movible in all all windows plateforms. my own code. all code in the project is 100% mine except for the keep on top code all other is mine the whole project is pure vb code except for the kepp on top withch is compadible with all windows platforms. project is essy to add more colors if you want

4_2005-2006 #161728
Bar Graph

An ASP bar graph. Easily customized and great examples. Customizations include Top Padding, Side Padding, Bar Width, Bar Padding, (Only if bars are in groups.) Group Padding, Number of Groups, Number of Bars Per Group, Maximum Value Values For Each Bar, Colors of Bars, and Titles Of Each Bar! The inputs are all at the top of the code with explanations. Nicely blocked off for your convenience. I have not tested this with Netscape. Please let me know how it does. You can only have a maximum of 18 bars due to restrictions from style properties. This problem is easily breached by using javascript. If you would like that code please email me @ checkerman_1985@yahoo.com

4_2005-2006 #157763
Securing Your IIS Web With User Login Security (Easy Yet Comprehensive)

Securing Your IIS Web & Content With Access MDB Based User Security (Simple Yet Comprehensive) This past week, I sat down to tackle the chore of securing my personal IIS web server... specifically, my web app I previously posted here (MP3Tool.Web).  It was a learning experience to say the least, and so I thought I'd zip up my work and share that experience with the rest of you. The Chore: secure an IIS web or entire server via user logins. The Solution: the magic of my security approach is achieved by making use of the Global.ASA file and sessions.  As it's name implies, it functions as something of a global over all the other asp pages on a web site.  You can find documentation on the global.asa posted here on psc, so I won't repeat those details here (and the rest of this assumes you know what global.asa is).  My security approach makes use of the Session_OnStart on event.  It is triggered the first time a user tries to hit an ASP page on your site... and occurs BEFORE the target asp page is served up by the server.  This is key to making this approach work.  When a session is first started, a number of activities take place.   1) a connection to the database is established (held as an object in the session at the top of the page) 2) the "hit" is logged in the database by IP # and date 3) we test to see if the IP # has been "banned".  If it has, I came up with a pretty slick way to implement the ban.  Attached in this zip is a VB project for my ResponseHelper com object (my solution to my problem expressed in my previous post, MP3Tool.web, about streaming back binary data back directly on the asp response).  In this case, we're not streaming back a binary persay, but an HTML page that looks and works exactly (with 1 smiling exception) to the Server Not Found page IE serves up.  Because I use the com object to stream the file back, rather than a .Redirect, the end user is none the wiser (their browser location never changes).  =) 4) this part is probably optional, but then I put in a browser check to ensure that IE is being used by the client. =) 5) we test to see if a specifically named cookie exists on the client.  This cookie is used to "persist" a user's login... much the same way your developer login is persisted (if you so choose for it to be) here on psc. 6) if no cookie was detected, then we test to see if the Login.htm form is being posted.  While the "target" of the Login.htm page is the Login.ASP page, we actually intercept and process all logins in the Global.asa file.  Login.asp file theoritically should never actually be hit.

4_2005-2006 #158022
Enhanced VB Forms (v2)

2 controls that vastly extend the cababilities of Visual basic. *** VBEventWindow - provides a simple subclassing control. Events: - ActiveApplicationChanged, fired when your app gains or loses user focus - LostCapture, fired when your app gains or loses the capture - KeyPressed, fired when any of the keys are pressed - LowMemory, fired when the system is running low on memory - Move, fired when the form is moved - VerticalScroll, HorizontalScroll, fired when the form scrollbars are set - WindowsSettingsChanged, WindowsINIChanged , fired when the windows environment settings are changed - NonClientMouseMove,NonClientMouseDown,NonClientMouseUp,NonClientDblClick, fired when a mouse event occurs in the non-client part of your form - MinMaxSize, fired when the OS wants to know what size to make your form either in response to a minimise/maximise command or when the user is dragging the resize box. - MouseOverMenu, fired when the mouse is over a top level menu - WindowMessageFired fired for all the other windows messages Methods: - InvalidateRect, Sets part of the form invalid to indicate that it needs to be repainted Properties: - ClassName, returns the windows class name fo the form - DeviceContext, returns the device contect of the form (for graphical operations) - HorizontalScrollbar, VerticalScrollbar, sets or unsets scrollbars on the form - TopMost sets the form to float over the top of other forms - Transparent, makes the formclient area invisible Use: In the form load... Private Sub Form_Load() Me.VBEventWindow.ParentForm = Me.hWnd End Sub *** VBSysTrayCtl - Provides a simple control to allow your application to use the SysTray Events: - MouseMove, Fired when the mouse moves over the tray icon - MouseDown, Fired when a mouse down event occurs over the tray icon - MouseUp, Fired when a mouse up event occurs over the tray icon - MouseDblClick, Fired when the user double clicks the Tray Icon Methods: - ShowIcon, displays the icon in the system tray area - Hideicon, removes the icon from the system tray area - Refresh, updates the icon displayed in the system tray area Properties: - Tooltip, the tip that is displayed if the user hovers the mouse over your systray icon Use: In the form load.... Private Sub Form_Load() Me.VBSysTrayCtl1.Tooltip = "Merrion Computing" Me.VBSysTrayCtl1.ShowIcon End Sub Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) Me.VBSysTrayCtl1.Hideicon End Sub

4_2005-2006 #161958
[ Form On Top ]

This will put your forms on top. Works good. It uses API calls to do this. Hope it helps you. Also Please visut my site, i got some video tutorials there about visual basic. http://www14.brinkster.com/computerteck/?p254

4_2005-2006 #162190
A Scroller Version 2 - Smoothly scrolls text in a picturebox

It can scroll right to left or bottom to top, stop at top or stop centered, scroll and stop or Scroll Continuously and background, text colors & fonts are all customizable. It uses bitblt to do the drawing so its flickerless. This control is a updated version of http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=14967&lngWId=1 that I modified & updated for Almost Real Jukebox.

4_2005-2006 #162196
Google Power 2

This version of Google Power has automatic top open browser detection for searching individual websites as well as the form staying on top when open.

4_2005-2006 #162547
Magic Windows

PLEASE Vote for me!!!!! Magic Windows ver 1.0 Have you ever wanted to have a form that would slide out from behind another form, like a tray? Well now you can. Simply Drop this control onto a form(the one you will use as the tray) and from anywhere in code you call 2 methods. One will Slide the form out, The other retracts the form back. You can set the "tray" form to slide out to the right, left, top. or bottom. You can set it to slide out on top of the calling form, or behind the calling form.

4_2005-2006 #159890
SelfSub, SelfHook, SelfCallback by Paul Caton

Hooks END safe now, added Paul's CDECL class to project so we don't lose that one either. Continuing on where Paul Caton left off. Paul has moved on from VB and his thunks are too good to let die. The attached contains a complete revamping of his subclassing thunks and significant enhancements to other thunks. The subclassing thunks, I believe are now 100% IDE-safe. I have even placed END statements inside of the subclass procedure and IDE did not die. The usercontrol (UC) crashes occurring when subclassing parent by multiple UCs is now history too. See the top remarks in cSelfSubHookCallBk_Template for overview. The assembly code is provided in .ASM files and can be opened with notepad. 18Jul07: Minor tweak in subclass.asm to attempt crash on compiled app when END executed. 21Jul07: Believe hook thunks now 100% END safe, added CDECL class allowing one to call C++ APIs or ASM thunks. Workaround for making Hook thunks more END-safe is commented in remarks at top of Template class.

4_2005-2006 #160267
StayOnTop .. the Real One

'I developed this code because I have seen many people boasting that their code being 'the one that stays avove all of the other windows .. well I hae never found their 'claim to be true so I wrote this code .... in order to test my code just use any 'yes any stay on top form in the software world and I bet it won't fail ... what more 'it can be on top of even the menu items of the Windows start menu ... jus place the 'form around three inches above start menu and you see the menu items going behind it 'isn't this cool ... 'Just remember me Bis and askbiswa@hotmail.com .... I know now my mailbox is going to 'be flooded with mails for more cool and simple stuff like this .... well I promise 'once I get started I know I will never stop ... so write back soon ... if you like 'it

4_2005-2006 #160383
Add Intellisense to your Scripting Language

This project shows how you can add an Intellisense List (like the one in VB where you type an object name, then a "DOT", and then a list pops up -- that's the Intellisense List). Designed to allow you to enter in YOUR SCRIPTING LANGUAGE COMMANDS AND OBJECTS quickly and easily (using an external text file). All efforts were made to make this act exactly as the one in VB does. Press TAB or ENTER to select an item in the list. Clicking TAB immediately automatically selects the first item in the list. You can begin typing the property name and the "closest match" will be highlighted as you type. Backspacing on your typed entry also does the same. Multiple "DOTS" (eg: me.text1.font.) works. Insertion of "DOT" characters in the middle of a string works. Location of intellisense box goes to where it can fit in view (bottom right, bottom left, top right, top left) depending on where your current cursor location is. This project Took me some time troubleshooting, so I hope some of you out there can use this. UPDATED ON AUGUST 9th! Fixed a few unhandled errors, added more comments to help you see what is happening, Wrapped Intellisense core functions into subs for easier include in your projcets, and added the ability for different styles of the Intellisense box (Office XP stlye, VB6 style, and a hybrid style) as many of you have requested.

4_2005-2006 #161654
GordonsTicTacToe

Simple Win32 API Tic Tac Toe game. Has a total of 24 strategies/blocks incorporated into one function called smart() that works on defense as well as offense. It checks to see what moves have been made and makes it's move accordingly. Better than playing a human for the computer never sleeps. ;) Good example of writing your own functions to perform tasks there are no built in functions for and getting different return values from your function to act accordingly. The boxes are numbered from left to right with the top left box being one. The top row is one to three, middle four to six and bottom seven to nine. Push the button that's number corresponds to the box that you would like to choose. Good example of subclassing child controls and using the template resource editor to create and display dialog boxes. One or two players.

4_2005-2006 #162261
The Missing CloseProcess() API (Well, Sort Of)!

Have you ever wanted to CLEANLY shutdown an external application that you only had a ProcessID to? I've always wished that there was the equivalent to the TerminateProcess() API that would send the WM_CLOSE message to the application, allowing it to shutdown cleanly, not abruptly as TerminateProcess() does. Because of this, I began a quest to either find such an API or to build one myself... Basically, the only way to successfully shutdown an application who's window title you do not know beforehand on Win95/98 is to use the TerminateProcess() API. WinME seems to correctly process the WM_CLOSE message to its top-level windows, so it can be excluded from this even though according to MSDN it functions the same as Win95/98. Now, use of the TerminateProcess() API is frowned upon because according to the MSDN article http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/terminateprocess.asp : "The TerminateProcess function is used to unconditionally cause a process to exit. Use it only in extreme circumstances. The state of global data maintained by dynamic-link libraries (DLLs) may be compromised if TerminateProcess is used rather than ExitProcess." But... with the use of the WM_ENDSESSION message this downside seems to be obverted, because to this MSDN article http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/wm_endsession.asp (which is actually for the WM_QUERYENDSESSION message): "Windows 95/98/Me: After all applications return TRUE for this message (WM_QUERYENDSESSION), they receive the WM_ENDSESSION and they are terminated." So if I'm reading that correctly, at shutdown Win95/98 sends the WM_QUERYENDSESSION to all top-level windows, followed by the WM_ENDSESSION then (assuming all applications are happy with the shutdown) they are then terminated assumedly via the TerminateProcess() API! Now this process also occurs at a logoff, so it *should* be reasonable to assume that all of the downsides of the use of the TerminateProcess() API are solved by first sending the window the WM_ENDSESSION and a True in the wParam argument because the application is *supposed* to clean up after itself when it receives the WM_ENDSESSION message. In my research, I found a number of sites concerning the incorrect handling of the WM_ENDSESSION by Delphi applications. They advised their developers to hook the message and fully close their apps (destroy objects, etc) at that time in order to avoid any errors. So as long as I've not missed any important nuances, I believe that with the help of Ark's comment I've stumbled across the answer to my question! So in order to put this into a nice little package, I've implemented the fabled CloseProcess() API I used to wish for... As always… if you find a bug please let me know. Thanks and enjoy!

4_2005-2006 #165391
BalPoint Form AlwaysOnTop

Set your form 'Always On Top' - > On Top of other windows.

4_2005-2006 #162612
Print Form Code Generator

Updated: Metric Grid Scale and Landscape capable. If you hate writing VB code to create printed forms, give this a try. Print Form Code Generator lets you create forms by dropping text boxes, pictures and line on a form and generate the VB print code to paste in your program. This is the first version and it can only get better. Feedback is welcome. To move lines, click to move a point shift + click to move the line ctrl + click to move point left and right only alt + click to move point up and down only shift+ctrl+click moves other point's top position to clicked point's top position shift+alt+click moves other point's left position to clicked point's left position New Version: Select paper size, and line ghosts gone!!

Languages
Top Categories
Global Discovery