Results for "Category: Custom Controls/ Forms/ Menus"
This is title scrolling at its simplest and best i suppose. Well The Purpose of this code is for ppl who are just learning like me, and want something that they can understand. Plenty of comments that are clear and make sense. Plus a second project inside to make things a little harder, it lets you work out how it was done. This isn't mega-stuff, its really for just learners =) Anyways, enjoy.
A popup color selector active-x control, similar to a combobox, featuring 12 different palettes, and 2 color selection events: Click() and Change(). The popup window can be disabled, in which case the popup()event may be used to substitute your own color selection code, or access to the common windows dialog. Hue selection is done through mouse hovering using custom timer class. Credits to various PSC contributors as listed in the text file. Uses 12 API functions. Full source included - well commented. V1.1 now includes hWnd property. (Thanks Ross McCawley!)
Two active-x controls are included in this OCX library, a folder and file selector. The controls resemble a combobox, and when the dropdown button is clicked, a dialog is shown in which a folder or file may be selected. The BrowseFolder control uses the SHBrowseForFolder API function, and the BrowseFile the GetOpenFileName and GetSaveFileName functions. A call back procedure is implemented showing the currently selected folder in the browse for folder dialog. The user has the choice to select any system folder (Desktop, My Computer etc) as the root, or a custom folder. The BrowseFile control returns the filename and path separately from the full path. The standard inverse triangle on the dropdown boxes may be substituted for any 8 pixel wide bitmap (with varying heights), with a choice of mask colors. Full set of events are included, click() upon dialog close, Change() and DropDown() prior to opening of the dialogs. Source also implements BitBlt() API function to copy transparent images. This is an update to the original ArielBrowseFolder Control, which has been removed from PSC.
Simple timer class using GetTickCount API function, similar to standard timer control. Accepts long interval. Perfect for forms and/or user controls. Generates ONTIMER() event. Credits to code published by Riaan Aspeling in PSC, thanks Riaan.
Very simple, but usful because the only thing hotbar haven't thought of yet is changing back to older hotbar pictures. This program enables you to do so. Please vote for my code.
A reporting control to ease printing of reports. The control will also enabled preview of reports, save to file and printing to the printer. With this control, user have control on the printing format (code level) as to using the a third party ReportWriter
This is an example on how to create borderless, resizable and skinned forms. It would be nice with some comments(and votes to;P)
An alternate to using Sliders, Scrollbars and UpDown controls. Not just an enhanced version of an existing type of control, but a new type of control altogether. Scrolls values up and down with the use of Visual thumb wheel, includes the ability to "Spin Over" to Minimum value when Maximum value has been attained and visa-versa.
Ever wanted your VB6 apps to fit in with Windows XP? Now you can do just that. There are other samples on this site that accomplish this, but they use user controls or images - which means that the controls are slow and may not be resizable - and they're large. Want a better solution? This is it. Real Windows XP controls on Windows XP that match the user's visual style (i.e. theme), without user controls or images, with only one API call. You can even use the standard Visual Basic controls (buttons, scrollbars, checkboxes, etc.) and it will work - all with the speed of a native application. Because it is a native application, using Windows to draw the controls.
This ActiveX control makes it extremely easy to create server applications. It uses an array of Winsock controls to handle multiple connections. Start the server with one line of code! I included a sample project and a detailed explanation of all the events, properties, and methods, so you can see exactly how it is used (readme.rtf). Since PSC removes the OCX file from my zip, you can get it here: http://www.bouncefilterware.com/drew/ServerControl.ocx -- Your comments/questions/suggestions are welcome. UPDATE: I added a broadcast function. Although it's not the proper way to broadcast data, it works.
I've seen a lot of progress bar code on this site, but I haven't seen any that show you how to set up the caption so it will change color as the bar moves over it. This is a very basic example of how to do that. The trick is setting the DrawMode to "Not Xor Pen"; you can also use "Merge Pen Not". This example is only to get you started. You'll have to play around with the BackColor, ForeColor and RGB color used for the bar to get the color effect you want. Have fun.
This control creates a splitter bar with 2 resizable panels. The panels are adjustable by a specifying the size of the Child1 panel through the PanelSize property. It also includes minimum and maxmimum size parameters. It is well commented and also provides a demo application to explain all the options. I would also like to thank Mark Joyal for his great SplitterControl on which this is based. His control provides a way to resize based by a percentage, while mine provides a way to resize based on a size value. Since this is my first Active-X control, I would really appreciate your votes and any feedback you can provide.
Yet another update. I have fixed the scrollbar display under WindowsXP. Here's an update to my Combobox control. I fixed the App activation issue, and added support for MDI & MDI child forms. Thanks for the support! Due to the lack in VB for a Multi-Column Combobox and the licensing issues with the Forms2.0 control, I've created my own. This control uses only the standard VB controls so there are no extra dependencies like many of the other Multi-Column comboboxes out there. It's simple to use and setup. It supports column widths, a finditem method that searches items by column, and hot-tracking. It also has the common ComboEdit & ComboList style. You can adjust the drop-down list height and width. The list will also display outside of the form border. The code for the control is not commented very well, but the demo does a pretty good job explaining how to use it. Many of the API & Subclassing base techniques used in the control are from vbAccelerator, & mvps.org/vbnet. Also, if you know of any ways to improve it, please let me know. I've tested MANY other Multi-Column comboboxes (free and the not so free) and I feel this control is a very good cross between graphical representation and useability providing the programer an easy interface and the end user a control that behaves like you would expect. If you feel that this control is worth the time & effort put into it, then please vote for it! If not, any suggestions on how I can make it better are greatly appreciated. Thanks
Having seen so many code snips that either only work with Windows9x or return incorrect values, I decided to write one that should work accross ALL version of Windows. I was able to find multiple pieces of code all over the place and assembled them into a neat little ActiveX control. This usercontrol can be be used visually, and optionally display the history of any if the following values; CPU Load %, Memory Load %, Free Pagefile %, Free Virtual Memory % and the HD Free space %. The control can also be hidden and used to manually retrieve the values below using the GetCurrentSystemLevels routine. This allows you to retrieve current system levels and isplay the information using your own layout/design; CPULoadPercent, MemoryLoadPercent, PhysicalMemoryTotal, PhysicalMemoryAvailable, PhysicalMemoryAvailablePercent, PageFileTotal, PageFileAvailable, PageFileAvailablePercent, VirtualMemoryTotal, VirtualMemoryAvailable, VirtualMemoryAvailablePercent, HDTotalBytes, HDTotalFreeBytes, HDAvailableFreeBytes, HDTotalBytesUsed, HDAvailablePercent The visual look of the control is fully customizable. All colors can be modified to fit the individual needs of developers.
I have enhanced Elad Rosenheim's "Dynamic" Resizable Skin Demo to better support KewlPad skins as well as added several functionality changes to bring it closer to a complete skinnable solution. Changes: - All the code was removed from the form's codebase and put into a Class Module to make it reusable and easily compiled into an ActiveX DLL. - Allow for A Minimum Client Area size - Allow for Maximum Form Size - Ability to make the form non-movable, non-resizeable, and/or Always OnTop. - Removed the need to have a second "Hidden form" for correct Minimize events. - Built in routine will reconfigure form using API calls and remove the titlebar and 3D effects, so you don't have to change the form's BorderStyle in the IDE. - Added several events triggered when the form skinning is complete, The Minimum button was clicked, the Close button was clicked, ClientArea and Form MouseEvents, and of course on Form Resize. - New Skin properties: FontColor, FontBold, BackColor. Over 50 KewlPad skins are available at http://www.deviantart.com/browse/?section=kewlpad *Please ask the original Skin author for permission before distributing there skins with your app.
NOT just another Scrollbar : This control will allow you to use graphics for the background, thumb and the buttons. Works in either Horizontal or verticle orientation, will automatically determine the orientation when you create the control on the form. Uses Longs for the Min / Max / Value properties, no more 65535 limitation. Can AutoSize to the dimensions of the background picture. The buttons on the ends can be hidden so only the BackGround and the Thumb are shown. Great for use with Skins and other unique grpahical applications. No flicker. Smooth scrolling. [ Updated ]
This demonstrates how to use the windows api to dynamically (and quickly) reshape a form without hogging resources. It Doesn't Even Blink! PLEASE VOTE!
Send an Email as anyone simply, with no need for an SMTP server. The brilliant user interface makes theis program a 100% must have. Please dont forget to vote!
Update---------------------------------------- This is an improved version of previos DLL. Now it handles child controls of the container control which is being undocked, plus I've fixed the problem with changing focus. Also I've included test project so you can see how it is suppose to work. Old --------------------------------------------- This class allows to undock any control on the form and drag it around. Furthermore, during Undocked state events will be still received at the same place. It is an emulation of the Microsofts abilities to undock panels (ex VB Properties and Toolbar)
Demonstrates how you can create your own tabbed dialogs without the use of any OCXs or API. Only 2.8 KB to download! This code is HEAVILY COMMENTED, and explains in plain english what every little line does, this example includes 3 tabs, you can customize each tab, and you can add more tabs. IF YOU LIKE IT, PLEASE VOTE FOR IT! I would greatly appriciate any comments or suggestions which you can place by scrolling down this page some.