Results for "Category: Custom Controls/ Forms/ Menus"
Objective: To create and use a manifest file for displaying common controls WinXP style on a machine running WinXP with the XP theme enabled. Function: This code will only provide WinXP controls on a machine running WinXP. The XP theme must be enabled (Not the classic theme) for this code to work properly. Also, this only works when the program is compiled as an executable, and will not work in the IDE environment. Once the InitXP sub is called, all forms and controls (the main controls and any controls in the "Microsoft Windows Common Controls 5.0 (SP2)" ocx) on all forms will be display in winXP style, so you only have to call the sub once. Also, MsgBox's and InputBox's will have the xP theme. What's cool about this code is if the xP theme is enabled, but a different color scheme is used (other than the default blue), the manifest automatically acounts for that. The truely great thing about this is that no new activex controls are introduced, and therefor you do not need to account for different OS. If you want XP controls on machines other than XP, there are hundreds of controls on the net. This code reduces deployment costs, is small, and is self-contained. I have not tested the code on any machine other than winxp, but this should not generate any errors. If it does, a simple call to "GetVersionEx" could show which OS is running, and in the Sub InitXP, add the code: If WinXP = True Then all current code End If Known Problems: Command Buttons, Option Buttons, and Frames do not display properly when placed inside of another Frame. Currently working on this problem. One last note: The exe will not display XP controls the first time it is run, and I have not found a way around that yet . . . Maybe creating a program that first creates the manifest, then shell's the main program before ending . . . Or maybe the install program could solve it somehow Credit: I got the idea from this code from another source, I believe on planet source code, but the code did not work, and was not well organized/commented. I have no idea who the genious was that came up with this code, but all the credit in the world goes to that person.
This is a great slider that can be used just as the original by MS in any application. It looks much better and has more features!
A folder browser extension for the ucTreeView (Id=59769). Using pidls, COM interfaces (IShellFolder,IContextMenu3,IDataObject,IDropTarget,IDragSourceHelper ..), Shell Change Notifications. You won't get all of explorer's tree capabilities, but all the source. Caveat: Functional but experimental project.Read ReadMe.
Today VB6 has become the most widespread dead (programming) language. In celebration here's the only(AFAIK) ownerdrawn treeview published in VB. #1: Several bugfixes,modifications,additions Support for folder browser extension (CodeId=61324) #2: Different drag image method (>=Win2K)
Allows your user to create simple ~ complex pure API menus, with scripting and an unlimited amount of sub-levels. This was actually created for a shell replacement project of mine, to allow simple and customizeable menu objects for my users.
Using the ActiveX PBBalloon from PABLOB.NET I was able to create amazing Balloon Messages with links and Buttons under Windows 95, an action I thought impossible. Check the Screenshot!
This is an example of how to create multiple child forms and open them at runtime..Originally this is for developing an MDINotepad Application.
This control will colour vb code on load, and on the fly on enter press.. the keyword list, colours and various other formatting options are completely configurable.. Includes line numbering, supports code being pasted and colouring into the control either by Ctrl-V or by a WM_paste message being sent to the control. Also includes methods such as linecounting, current column and line number, get current line text, get current word.. and more! The colouring routine is very very fast and utilised the CString class for fast string contatenation by Francesco Balena..
New features: LabelStyle [was:Color properties and font properties.] I create this user control because I am tired of having to repeatedly put a label control whenever I put a textbox control. Basically, this user control is a combination of a label and a textbox control. However, I have added an optional lookup button at the right side of the control so you can use it as a lookup button. Other features include auto highlight of text inside the textbox, make ENTER key in textbox behave like pressing TAB key (ie. move focus to next control), and set keyboard shortcut to click the lookup button. Please let me know if there are any bugs.
Windows XP Style Controls, You need windows XP, and you must compile the project, work only in the .exe, not in VB
Hello; This is my first post to PSC I hope someone can find it usefull. The program contains two controls: Numeric Updown and Textual UpDown, the numeric updown can handle fractional values, and restricts the typing of numeic values only. The Textual Updown has similar funcionality to a Listbox, with the diference that it can handles string values in the itemdata property. Also I use some API to modify the textboxes apparience. Please Vote :)
This code actually resizes your forms contents for you. Contents include SSTAB and does adjust the font size.
Just like http://www.Planet-Source-Code.com/vb/default.asp?lngCId=42291&lngWId=1, but this will allow your DriveListBox'es to work as well.
This user control has 62 easy to use API controls within it. It has the ability get the CPU usage, add files to the documents menu, clear the documents menu, get the name of the current user and the computer, get the amount of time windows has been open, refresh windows, show and hide the start button, open the default internet browser, connect and disconnect to the internet, send Email, play sounds, get the mouse position, flip the mouse buttons, hide and show the cursor, trap the cursor within a region and release it again, find and change the screen resolution, find all possible screen resolutions for the monitor, shut down restart and log off windows, show and hide the taskbar time and desktop icons, turn on and off the screensaver, disable or enable ctl+alt+del, minimize all windows, open explorer, make a form stay on top, show the shut down dialog box, make the computer go to sleep for an extended amount of time, enable or disable objects, open and close the CD-Rom, search for files, copy delete and move files (quickly), check if a path exists and more, all with easy to use categories! Vote for me!
'Welcome to The new and improved Menu Control. 'Created By Russell Sanders 12/2006 ' 2/21/07 I said in the last update that it would be the last but I have fixed a few things that just had to be published. After all the time I put in to the code I left out something as simple as, changing the caption on the fly, out. So I fixed that and also got the tool tips working. a few other small things. ' In the past two months I have put close to 300 hours in this control. I thank you all for looking ' at it and welcome any comment good or bad. ' This works well for small apps. ' 'credits: ' PSC for a place to get help and code on anything. And to all the dedicated users of PSC ' who post there thoughts there advice and criticisms on code, Thanks. ' other credits are with the relative code. ' ' This uses Pauls' safe subclass Code Found At: ' http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=42918&lngWId=1 ' read the readme in the zip to understand usage. read the code to see how Update:2-14-2007 this will be the last update for this control. Unless I find a bad problem with it. I have started to work on an MDI version of this control and will be replacing this one with it when it is done.
On listview mouse down event, a textbox is moved to the selected listview item or subitem to be used as the edit box. The trick is to track the scroll bars to deduce which item of the listview is being clicked on. This is done by subclassing listview scroll events and retrieving the scroll bars info with API.
This program show a user to chang the layout of form standard to in Round or other
Unicode textbox and listbox. On these controls I've attempted to mimic the behavior and features of the native controls, but also give much more power by implementing much more of the native features provided by the Windows API. Despite the focus being on implementing Unicode aware versions of the native controls, you can find much more power than just the Unicode. **** These Release Candidates are released outside the main UniControls release for bug testing and comments - thus I'd like to hear of any problems or oddness you may encounter with the controls so that I can fix them before compiling the main UniControls release (thus the next UniControls release is to be considered stable). **** UniControls main release: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=69738&lngWId=1
A Perfect Gradient with Emboss text effect. If any bug please contact: [email protected].
A simple and easy gradiant example. No additional ActiveX Control. Used many parameters.