Results for "Category: Custom Controls/ Forms/ Menus"
This is an OCX which opens up a server on your chosen port and it can accept however many users you chose it to. The server is accessible through any telnet client and handles backspacing. Both OCX and example are fully commented. Please Vote. -Paul Blower
MDIForm with an outlook style shortcut bar. Very Simplified.
This is a screen that will allow you to do searches for anything. It uses control arrays, so you can keep adding search/sort criteria. Keep in mind that I was actually passing field objects to manage the various drop-downs, so you'll have to incorporate your own data access techniques. I had to strip out some things, because it dealt with my own Interface classes, but it should at least give you some ideas. If you use this, PLEASE VOTE. Email me @ [email protected] if you have questions/comments.
This all started when I noticed that I was constantly adding in code for when a textbox got focus, lost focus, etc. I decided that this would be a great chance to try my hand at making my own control. Fortunately, I spared PSC users the pain of some of the early versions of the control. I'm pretty happy with the latest version, so let me know what you think (and if you like it, vote for me! :-). Oh, I guess I should mention what it can do. It has several customized properties, such as "AutoSelect," which when True causes the text to be automatically selected when the box receives focus. Then there's "AutoUpperCase," which makes all entered text to be in upper case as it is typed. Then you've got "BackColor_Normal" and "BackColor_OnGotFocus." That's right, you can have it change to a different color when it receives focus (great for highlighting the current textbox when a user has a lot of fields to fill in). There's also "DefaultText" and "UseDefaultText." These are for having the text in the textbox revert to the default text after escape is pressed twice (the first esc is like an undo when you've started typing over something in the box). The latest feature is "TextType," which causes the textbox to only accept certain keystrokes, depending upon the property value. For example, there's AlphaNumeric, which allows everything, and then there's one for allowing only positive integers, and one for negative integers, pos/neg reals, alpha only, etc. This isn't like normal validation which checks the text after it's entered. This checks each keystroke and throws out the ones that aren't to be accepted. To run the tester .exe you'll need to register the cTextBox.ocx, or you can open the cTextbox.vbg file and run it from there. Let me know if you have any comments/suggestions/bug reports. Thanks! (and don't forget to vote :-) Oh! I just remembered, there's another property (two actually), "EntryTimerEnabled" and "MaxEntryTime." These are used to keep track of how much time it takes for a user to enter text in the textbox. If the maxentrytime is exceeded then the "EntryTimedOut" event is fired. This was added because my company often wants users to login to shop floor systems by scanning there badge ID and we needed to prevent the user from typing in an ID. Since barcode readers (or whatever type of scan device you use) are generally faster at generating characters than most typists, you can prevent typing in an ID by experimenting with the MaxEntryTime value.
If you didn't see my previous form manipulation example then you gotta see this. This is some pretty good stuff, great for newbies. New Subs added! Don't miss out on this, you'll be happy you looked at it. Code all done in a professional way. Extremely nice routines for simple manipulation of any form. Cuts down your own coding. Heavily commented subs so that you can understand what's happening. If you have any trouble with this example(which you shouldn't) then email me and I'll make even more comments on the routines as I add new ones. Comments definitely welcome. Please, Constructive critism and praises only. 2/10/00, new routines combined and added. All subs tested and compiled! And yes, I did add a sample of the CustomMsg becasue I got a few emails about it. I sure hope it helps you all out. Check out the "StreakExit" routine. If anyone knows how to make that routine smoother, please email me with a fix. If anyone has anything to add, email it to me and I'll add it in and give you credit. Please remember, this is beginner level. I really hope that you find this example useful. Thanks for your comments and enjoy the code! Here is a small list of the subs: 1. BooleanRollup 2. CenterSnglFrame 3. CustomAbout 4. CustomMsg 5. frmCenterMe 6. frmKillExit 7. frmOnTop 8. frmPosition 9. frmShrink 10. LoadNextToMain 11. LogMyErrors 12. NoOffScreen 13. ProgCaption 14. ProgCaptionV2 15. ReSnapFrm 16. RestoreFrmDiminsions 17. SaveFrmDiminsions 18. SaveFrmPos 19. StreakExit 20. vEmailMe 21. WriteSettings I really hope this helps the newbies out. This may be my last update to this project.
Puts Your form on top.
This is just a basic example of how you can add and manipulate data used with an MSChart. Easy to amend and change for your own use. Don't get carried away ;)
This function will select the value of a List Box or Combo Box based upon the Index ID. This is helpful when you are trying to edit a record and want to select a saved value in a combo box or list box.
Access-like AutoComplete of a dropdown combobox or a simple combo box based on what's already in the list. Simple code but can handle backspace and delete and will finish the 'complete' on Enter keystroke or lost focus. Could easily be converted to a user control.
This code was taken from O'Neil. It searches a combo box as the user types. O'Neil's code was modified to use the SendMessage API to search the combo box, which made it much faster. This is very fast, even with thousands of records in the combo box. Thank you O'Neil for the idea, and the well commented code!
This will take an object on a form, and place it in the center of the screen. Good for password protection programs that take up the whole screen, this will ensure that an object that you want in the middle of the screen, will remain there for any resolution.
Shows how to fill an Image Combo (part of Microsoft Common Controls) with each of the 16 standard colors to be used as a color picker such as in a word proccessor on the toolbar. All the images are created by code for ease of modification (As opposed to using 16 Bitmaps).
This code extracts icons from Dll's and Exe's. The code is so simple any VB newbie should be able to understand it.
Gives you application the Windows 95 look of a floating menu. Right click any where on the form and the menu will appear.
Resize and move controls during Runtime...very simple to understand
The background generator should now work. the *.frx files are now in the zip. The program will make bitmap images for either windows desktop background images or web page backgrounds. I got some code from other programs from PlanetSourceCode the rest is mine.
Changes the backcolor of a control when the mouse move on and off of the control. Like the changing links you see on web pages. Good for trivia gaming code.
This is just a little game were you will have to pop the balloons when they pop up in the picture boxes. Demostrates how to use the timer controls.
This is yet another submission for printing, loading from the file and saving to the file from Listview, ListBox, ComboBox and all one Forms textboxes controls. There are couple changes for part of this code. Check the explanations, please.
A little game that I created, it is a little like who wants to be a millionaire. You got three life lines and if you get one wrong then you're finished. There are only 38 questions there, but hey it's just a demo. The source code is in a zip file along with the exe.