Advertisement

Results for "top"

2002VB #24126
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.

2002VB #24664
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.

2002VB #18721
Enigma Encryption Example

Here is the concept behind this representation of the Enigma Machine: The program uses virtual "wheels" that contain all of the printable characters on the keyboard. Think of the first wheel as the keyboard you are typing on. All of the wheels contain the same characters, but in a random, non-repeating order. Each time a character is pressed, the location of that character on the one wheel is used to as the index to lift the character off of the next wheel. Then the new character is searched for in the next wheel, and the pattern repeats itself across each wheel. The character lifted off of the final wheel is the output. This step is repeated for each character in the message. Decryption simply sends the message backwards through a similar, but reversed process. What really makes this encryption effective is that like the real life machine, the wheels rotate either to the left or right after each character. So the relationship between each character shifts constantly. As a result, even repeating characters such as "AAAAAAAAAAAAA" are represented with garbage such as "@n~WPnHv(.)z#" Another great part about an encryption scheme like this is its flexibility. You can add more wheels, more characters per wheel, change the order of the wheels, the directions the wheels spin, and change the starting position of each wheel. So, unless somone can figure out: 1) How many wheels are being used... 2) How many characters are on each wheel... 3) The order of the wheels... 4) The direction they spin... 5) The initial position of each wheel... 6) The order of the characters on each wheel... It would be virtually impossible to look at the encrypted characters and determine their relationship to one another. There are so many possibilities and combinations of the above criteria, it would have to be solved through brute force. I am no mathmatician, so if anyone can tell me the possible combinations, I would appreciate it. When the Germans used this machine, it baffled the Allies, who frantically tried to break it with no success. It wasnt until a German U-Boat was forced to surface in a naval battle and was captured that the Allies got a huge break. An Enigma machine was captured along with a code book that showed the information needed to decrypt the messages. The U-Boat was scuttled and the crew was kept in a top secret location. The U-Boat was simply considered lost during battle and Germans continued the war not knowing the truth. When the war in the Atlantic turned for the worse, the Germans, who believed their code to be unbreakable, believed that there were spies in their top level officials. They never considered that the code was being decrypted through a captured machine, so as a result, they set up elaborate networks to try and find these "spies". Paranoia being what it was, many loyal German officers were tortured and murdered for treason, even though they had commited no such offense. This code is by no means complete. I will try and enhance its speed and toughen its encryption even further. Ill also try and build a better sample app with more features. If you find a problem or have a suggestion, I would love to hear it. This program has now been updated to reflect many of the suggestions posted here. Thanks for some great feedback and keep coding! =)

2002VB #22518
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

2002VB #25632
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

2002VB #25759
Prevent viewing of javascript and stylesheets

Prevent unauthorized viewing of website javascript and style sheet files. Simply rename all your style and javascript files to the .asp extension. Then include the validate_view.asp file at the top of each file. Open the validate_view.asp file and change the top the constants to those required. Then finally call the procedure name "validate_view" with the current files content type as the parameter.

ASP_Volume2 #27530
Override all forms on top

This "thing" takes advantage of a thoughtless mistake on microsoft's part. This prog can stay on top of anything, even the task manager! PLEASE VOTE! -Note: I used code from Jan Alexanders Transparent form to achieve the flashing effect

2002VB #23483
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

2002VB #23520
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.

2002VB #25509
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.

ASP_Volume2 #27802
Stay on Top (Fixed)

I'm not sure sure if it's just my computer but, for some reason, my VB programs never stay on top of other windows all the time when I use the SetWindowPos API. This program still uses the SetWindowPos API but I added some stuff to make it work properly.

ASP_Volume2 #27995
Animated Window

Add special effect to your form when it is showing and hiding! 6 types of effects can be applied. They are roll left to right, roll right to left, roll top to bottom, roll bottom to top, expand window outward and fade window. This program shows how to add these fancy effects. Make sure you have Windows 2000 and later or Windows 98 and later running before running this program. The program is well commented and a tutorial is included. Your comments and votes is the way you repay me for my work.

ASP_Volume2 #28106
Desk Top Shooter

A desk top shooter game

ASP_Volume2 #28461
Move last top menu to the right

Dock the most right top menu to the right of a form. Check the screenshot.

ASP_Volume2 #29291
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.

ASP_Volume2 #26068
waTrayAlert v1.2

I was inspired by Clint's vcTrayAlert Control at http://vbasic.iscool.net/ It was cool but he did not make the source code available. So I decided to write my very own control. Along the way I have added many cool features. I have used a gradient-drawing class that I found on PSC by Kath-Rock. I made a help file for my control and as you will easily figure out, I have invested alot of my spare time into this large project. It is made free but make sure to check out the license agreement and copyright info. All I'd like to ask you is your encouragement - IF you DO like my control. So I'll be waiting for your feedbacks and emails :) Oh, I'd like to ask you for one more thing. Help me debug this control, report any bugs you might find to me on my email addres. Thanx. KEYWORDS: MSN Style Tray Alert Control, ActiveX Control, User Control, Play WAVE WAV File Resource, Always On Top, Top Most, Transparency, Transparent, Fade, Mask, Borders, Gradient, Error Handling.

ASP_Volume2 #26579
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!!

ASP_Volume2 #26701
waTrayAlert v1.2 + Help!

Finally the help file is included in the .ZIP file! Thanx to Amanda Miller, the WebMaster. Being inspired by Clint's vcTrayAlert Control at http://vcreations.net/product.asp?pid=34, I decided to write my very own control. This one has much more cababilities, and some advanced features for Win2000 or later: like the Transparency property and the fading animation. It is still very easy to use: check out the DEMO. It is also very versatile!: check out the Screen Shot ;). I have used a great gradient-drawing class that I found on PSC by Kath-Rock. I have invested alot of my spare time in this large project. It is made free but make sure to check out the license agreement and copyright info. All I'd like to ask you is your encouragement - IF you DO like my control or NOT then please VOTE. I'll be waiting for your feedbacks and emails. And, If you ever find a bug, email me about it. KEYWORDS: MSN Style Tray Alert Control, ActiveX Control, User Control, Play WAVE WAV File Resource, Always On Top, Top Most, Transparency, Transparent, Fade, Mask, Borders, Gradient, Error Handling.

ASP_Volume2 #28720
MP3 Property Page

This is an explorer property page shell extension which will allow you to edit mp3 tag properties. By adding an empty dialog and plopping a vb form on top you can handle all the programming in vb instead of c++. There is a .dll required that is available at http://www.programmersheaven.com/search/download.asp?FileID=38704. The propext.dll is essential since you cannot call a function pointer in vb.(that I'm aware of)It allows the adding of the empty dialog, on top of which the vb form is placed. This can of course be applied to any file extension. You can make your own custom property page. I have found many instances where an external .dll written in c++ can extend vb into an extremely robust language. Too bad they aren't allowed to be submitted for security reasons.

ASP_Volume2 #29486
[ 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

Languages
Top Categories
Global Discovery