Results for "Category: Custom Controls/ Forms/ Menus"
A great button changer example which can change the shape of a simple command button. just set the command button style property to graphical and see the difference.
Many tips (and trick) tell us that if we want the textbox control ignore the character which is not numeric character, then we can just put the code that shown in KeyPress event procedure below. But, sometimes we forgot that although we have put the code in KeyPress event procedure, user still can input the alpha character to textbox control by doing copy and Paste to textbox. So, here is another tips to fix the problem. I hope this helpful.
This source code contains some good enhancements that I made for LynxComboBox v1.30 with multi-column drop-down list feature belongs to Richard Mewett that you can get from: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=61438&lngWId=1 . I have made some modifications and new features on LynxComboBox control. I also have separated the project become two projects (one is LynxComboBoxTest.vbp, and the other is LynxDataCombo.vbp) in order easy for you to compile it become an .ocx file (if neccessary). Just open the RunThisForTest.vbg to test those both project at once. So, let's see what's new that I made so far: (1)--> Changed Private to Public for SearchCode function in order could be used for validating selected text on LynxComboBox. This function is very useful if you want to validate the selected text before saved that selected item or another certain value from drop-down list to your database. (2)--> Added 4 new functions: FindFirstText, FindNextText, FindPrevText, and FindLastText for searching text in the certain column. This search feature included using 3 search-mode ("Equal", "Like", and ">="). This is very useful if you want to find a string on certain column in drop-down list and want to know which item(s) contains that string. If the string found, the item would be selected automatically in the LynxComboBox. See at the demo project. (3)--> Fixed minor-bug on Locked property. Before: KeyPress/KeyDown still work or affected and item could be choosen or selected when Locked = True, After: Now it has been fixed by truly locking when you press the key from your keyboard! I think some of you did not realize this bug, don't you? ;-) (4)--> Added new feature to bind value on certain column in drop-down list to another controls by using two ClassModule (MyControls.cls and MyControl.cls). Those two classes and the technique I got from Marcelo Luiz Altafin on http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=37751&lngWId=1 then I combine them. I also give him a credit for this new feature. This feature is very useful if you want to get the value from certain column of drop-down list and automatically filled-in to another controls on your form (such as TextBox). So, from now on, you don't have to get a value from ItemText manually anymore. Just bind your TextBox control to the LynxComboBox by using .MyControls property... (see at the demo project) and... tarraaa... the TextBox(es) filled-in automatically. Even this feature still works if you press down-arrow or up-arrow key from keyboard to browse the items in LynxComboBox. (5)--> Added function ResetValue to reset value in LynxComboBox and all controls that binds to the LynxComboBox (such as TextBox). This is very useful if you make an entry data form, and after user save the record to database, then the selected item in LynxComboBox on your form back to blank and ready to receive new input again (similiar with Reset button function on HTML). This is also affected to the controls that binds to LynxComboBox (such as TextBox), the value become blank string. I also added a database for test purpose if you want to get the items from your database. I added one form with a progressbar in order to let user know about the progress while retrieving records from database. This is recommended if you get so many records from your database and load them to your LynxComboBox. I changed the version become 2.0.0. To Richard Mewett, I hope you don't mind about this new version, right? :-) The copyright of this user control is still belongs to Richard Mewett and his name is still written on the code because he deserve. Download it and proof it now. Any comments and votes would be truly appreciated. Thank you and have a nice code, everyone. Tag: Multi-Column, multi column drop-down list, drop down list.
Your standard semi transparent form in Win 2000/XP without the flickering. Comes with fade-in effect.
The control purpose is to emulate the MS Windows textbox time input control. It can show or hide the "seconds" box, set text selection true/false and it has change event as well. The control was made to fit in one of my projects but I'm sure you can easily change it to fit in yours too. Update #1 (21/Jan/2007): fixed leading zero issue. Update #2 (23/Jan/2007): fine code adjustments thanks to Roger G.
This Function checks if a specified Form is loaded by looping through the forms collection it returns TRUE if it is and FALSE if it is not you can decide what you want according to the return value e.g accessing its properties or methods or controls ,...
This code enables you to quickly edit a property on every form, every controls, or selected forms and controls. Shows how to simply handle the errors of a Each Control loop and shows an example of the TypeOf function to reduce errors. Well Documentated and help available through thomasgreenwood~2die4.com (~ = @)
This Program Describe How You can Add Menu To System Menu as well as Modified the System Menu, like Checked Or Unchecked Menu, Delete Menu, Enable Or Disable Menu etc. Remove Windows Control Box. Hope You like it. If you developed it further please send me a copy. Check It Out.
This Program Describe How You can Add Menu To SysMenu as well as Modified the SysMenu, like Checked Or Unchecked Menu, Delete Menu, Enable Or Disable Menu etc. Remove Windows Control Box and remove Maximize button without affecting Minimize button. Hope You like it. If you developed it further please send me a copy. Please Check It Out Now.
Enhancing VB Form with a new look and Check out Gradient Buttons. This Program Describe How you customized the Form. Resize the Window From Right Side Corner. Please Check Out The Code. Hope You like it.
Creates Office XP Style Toolbar using image controls and shape. very lite. just try it. comments to [email protected]
Demonstrates how to create Innovative and professional looking screens and controls. Simple and very lite weight. Just try it.
Easy Mouse Wheel Scroll support. Only pure VB. Works good and light.
Example of printing a tree to either printer, file, or both. Select either the complete tree or a specific node. === 11-Sep-2011 Removed obsolete code, updated support modules and updated documentation. Any unused procedures or variables left behind is for future reference.
If you need a lot of buttons on your forms then you can fairly easily draw them on and save resources.
Hi, I have created an ActiveX control which is a control container like a picturebox with extra fetures. This control can fade in/out depending of distance between mouse pointer and control, can draw bottom mirror, it haves title gradient and transparency. This control can be used to create nice user interfaces. Costinu
This is a class that simulates a button bar using a picturebox as a drawing surface. It can be used as a Toolbar, as a collection of tabs, as an only button or a group of buttons, or anything else that you can imagine. I hope it would be useful for anyone. Some of the features of this class/control were taken from the code MyButton - Dva oka njena (Default & Cancel) http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=41271&lngWId=1 There are both an english and spanish version.
Microsoft Agent Simple like in Microsoft Office!
This is a complete and functional control that uses the Copy Data Structure to pass data between applications that utilize this control. It allows you to pass numeric data, strings, dates, currency, in fact all data types (except variants), including arrays and udts, and arrays of udts (except arrays of variants and strings). Update v3 removed the parent hook, and fixed a bug in passing UDTs and now works in both VB5 and VB6. Updated demo thanks to Zhu now shows Unicode strings.
This is a picture control that I think most of you will like and (most ;~| ) all of you will appreciate. This picture object least importantly of all, displays a picture. Here are some of its more powerful features: 1)Can display a picture from a file, just like a regular picture control, BUT can also, on the fly, instantly (without winsock or any other control) download a picture off the web and display it..so this control can dynamically display images that dont even reside on your machine 2) The control has a storedPicture object..which allows you to store an unlimited number of pictures for later use. simply call the AddToStoredPictures method. Display any one of the stored pictures, later, as the current picture by a call to oPicFlex.ActivePicture = 2 (or whatever index you specify) 3)The image displayed in this control automatically resizes as the control resizes (like the Image control)..buy only if the stretch property is set to True, like the Image control 4)A single call to this controls DrawFromThisBlt method acts as an internal replacement to the BitBlt, StretchBlt, and TransparentBlt api calls, so any part or all, of the controls current image can be painted to any other DC