Advertisement

Results for "Category: Custom Controls/ Forms/ Menus"

6_2008-2009 #204892
FYI: Alt+Tab Icon Updating

How do you change the icon that appears in the Alt+Tab window? This is nothing new can be found on MSDN. The notes I added here are of interest. More info for skinning forms. Changing a form's icon doesn't affect the Alt+Tab window; you need to change the icon in an upper level, hidden window. Code below shows how. Notes to keep in mind.... The icon does NOT have to be one assigned to a form! If not, the only thing to remember is to cache that icon handle and don't destroy it until your application closes or you reassign using the same code below. Should you not cache the icon, and it is destroyed, the Alt+Tab will show a "blank/invisible" icon instead.

6_2008-2009 #204893
LaVolpe Custom Windows: Part I

Part 1. Prequel to a full-blown skinning application. This part does not skin but attempts to completely control the window non-client area. Provided in hopes you will help identify any bugs on different O/Ss. Works well on 98/2K. The other parts of this project will be submitted after bugs fixed in this part and feedback has been addressed. Part 2 will be skinned version compatible with MDIs, Part 3 will include routines for custom-drawn menus. Heavily subclassed and heavily commented; but still a work in progress. Feedback is definitely requested especially pertaining to bugs and suggestions.

6_2008-2009 #204898
LaVolpe Color Chooser

Single class module, plug & play. Maybe the last color selector you will ever use? Lots of options & will list most of them here: 1) 3 palettes to choose from, 2) palette tabs can be disabled, 3) grab color from anywhere on screen, 4) fail-safe mode will display std color dialog if routines fail, 5) mouse wheel support, 6) prevent non-palette selections, 7) auto-convert negative sys colors to positive values, 8)add custom colors & personal colors to the default palette or replace completely, 9) easy window placement, 10) even more options. Heavily documented, jump to end of the module for a detailed description of options & their settings. 22Feb06 - Converted to a stand-alone, single class. 26Feb06: Keybd navigation. Now movable. 30Mar06: Reworked to make Win9x-safe & make more MDI-friendly. 31Mar06: Changed memory APIs used to help prevent XP DEP warnings & addressed the error messages being reported that are not errors rather a result of VB IDE settings. 4 Apr. Prev repost broke ability to select listbox items; fixed. 10 Nov 06: listboxes didn't scroll down w/mousewheel, played with XP Manifests to replicate reported issues w/some luck. 11Nov06: running out of bugs... patch minor keybd navigation issues, add layered window support, patch MDI parent losing active titlebar when common color dialog closes. See change history in module if interested.

6_2008-2009 #204905
FYI: Transparent PictureBox?

Not really transparent, but a "fun" project using a transparent usercontrol (UC) that acts as a proxy for a picturebox. The UC prevents need for subclassing. It gets paint events from the Form and the UC then updates the picturebox. In short, a niffty little hack to make a picturebox appear transparent. Think some of you might like this & it is quite simple too. Feel free to expand on the idea.

6_2008-2009 #204921
LaVolpe Custom Button Template [20 Feb 09]

Updated. Want a custom button usercontrol shell? I am re-thinking a custom button & this time thought I'd write a shell that I can reuse over & over again. The attached contains a primitive example of using the shell and also contains the shell in another subfolder you can copy to your VB template's folder so it shows up when you select to "Add a Custom Control" to your project. Just thought I'd share it. I will post fixes for any bugs, but will not customize it to a point where it is no longer generic. See top of usercontrol for change history. Recent changes 20 Feb 09: Added Value property, support for Default button property, changed order of rendering/events in UpdateState routine, minor tweaks of some other stuff.

6_2008-2009 #204922
FYI: UserControls Accessing RES Files (Follow Up)

The intent is to show a way usercontrols (compiled or not) can access their host's RES files, compiled or not. This project contains the main class which reads from compiled & uncompiled project's RES files. The usercontrol has a property page that displays RES file images during design time -- kinda niffty. Please don't ask for updates to the usercontrol, it is only a test project for the cResReader class. For you UC lovers, take this and run -- if you need some advice on this technique, ask away, I'm already about 2 months ahead of you I think.

6_2008-2009 #204928
LaVolpe ImageList II (8Jan08)

Updated, faster renderings. Based on of my c32bppDIB suite, supports pngs, xp/vista icons, and other common graphics. One control that supports multiple imagelists (same/different sizes). THIS IS NOT TRULY DESIGNED to be added uncompiled to a project, rather it is designed to be a stand-alone OCX. The property page is optional if you just need a runtime-only imagelist. 15Nov07:: Added optional image compression if GDI+/zLib not on O/S, added optional image key/tag compression, added multi-select browse, multi-file drag&drop, multi-file Copy&Paste abilities, added image re-ordering via dragging, added importing from VB imagelists, and fixed some minor bugs. 23Nov07: Masks were not kept with multi-selected files, added several more properties/methods, more examples. 3Dec07: Overhauled class structure, fixed minor errors with property page, added more to the RTF file. Barring bugs, moving on to something new. 8Jan08: Significantly faster rendering from the imagelist. GDI+ would process entire DIB at times to render one image. When imagelist is massive size, slow down noticable. Using a rendering-only DIB can improve drawing multiple images over 30x faster for large lists. Open with Group1.vbg. See Usage_ImageList.RTF file for overview.

6_2008-2009 #204933
LaVolpe ImageList

Another project using my c32bppDIB classes. This is a custom image list that supports alpha images and has one neat property that haven't seen before. This custom image list control can be made part of your custom usercontrol so you don't have to ship 2 different controls. Two sample projects are included in zip, so unzip with "Use Folders" checked. Some highlights: supports alpha images, mulitple image sizes, allows scaling when adding to imagelists, and many more. I am planning on using this for multiple custom controls in the near future. Still have some things that I want this to do or be compatible with. I am not completely done with this project but offer it to you for your suggestions and comments.

6_2008-2009 #204969
Office XP-style Toolbar

A custom control that allows you to use an Office XP-style toolbar with your applications. Combine with the vbAccelerator Icon Menu Control (www.vbaccelerator.com) and you can make your apps look almost completely like Office XP!

6_2008-2009 #204995
Alternate ShrinkFormUnload

Shrink Window on Unload

6_2008-2009 #205008
Progress Window (Resubmit)

Note:This is a resubmit of my previous entry under the same name because the other one does not work. Sorry to all the people that clicked on it and got stuck. This code displays an all purpose progress window that is contained in an ActiveX dll. You can customize the window BackColor and ForeColor, along with the progress bar BackColor, ForeColor, and Edge. The big feature of this project is the smoothing of the bar. The dll implements an interpolation method which smooths out long operations or operations that have a low maximum. For example, the screenshot demonstrates the bar running an operation with a maximum of 3, but it fills as if it had a maximum of 3000. It can interpolate either direction, and you can set the number of pixels it draws in per interpolation frame, plus the delay between frames. This implements some other things from the other post, such as exposing the Font property and others. It has a big limitation, unfortunately, that it is not free threaded. I am working on implementing some threading code for the interpolation, because for now it takes time to draw it that it holds away from your operation. That's about all the limitations. I welcome constructive criticism, bug reports, and any comments you have about it. Once again, I am sorry that the first post did not go through.

6_2008-2009 #205031
Using Multi-Column Combo and Transparent TextBox

You can use FM20.dll library from Microsoft forms 2.0 for create easily Multi-Column Combo and Transparent Text Box. It is too easy a cool!. Identical to appearence Microsoft Access forms. Rate mi code, please! See you later!

6_2008-2009 #205063
Change background/foreground color of Progressbar

Change background/foreground color of Progressbar. using SENDMESSAGE/win32API

6_2008-2009 #205122
SplitBar

This control makes it very easy to add a horizontal split bar to your application. Eventually this control will include vertical splitbars as well. To use this control: 1. Place the control on a form. 2. Place controls above and below the splitbar control. This control needs at least one control above it and one control below it to function. The idea is that instead of using code to set the maximum and minimum scrolling positions controls are used instead. This makes it easy to visualize the range of motion for the control. Also, you can reposition the controls in response to form resize events, and the splitbar will use the new positions. Controls that are used only for setting splitbar ranges can be hidden at run time. In the future I will probaly change this so that the splitbar uses its current position for the maximum top or maximum bottom position if no controls are added to the top or bottom. 3. In the form load event add references to the controls to the splitbar using the AddControlTop and AddControlBottom events. i.e. splitbar1.AddControlTop Text1 splitbar1.AddControlBottom Text2 splitbar1.Update Calling splitbar.Update will align the bottom of all TopControls controls with the top of the splitbar and the tops of the BottomControls to the bottom of the splitbar. Known bugs. 1. Currently the splitbar control brings itself to the top when a user moves it. This was intended to make using the control easier, but it will hide any labels contained in the control. I think thats it, if you find more please let me know. Also, please send me any ideas you may have to make this control better.

6_2008-2009 #205138
Accept only numbers in a text box control with one line of code * MUST SEE*

first, my apologies for my bad english, hehe. this example demonstrates how to accept only numbers in a textbox control with ONE LINE OF CODE AND FAST CODE. * MUST SEE *

6_2008-2009 #205141
Custom VB6 Treeview control

A UserControl made with a VB6 Treeview control (MSCOMCTL.OCX - 6.00.8862) with customized Background (Color, GradientRectHor, GradientRectHor GradientTri, tiled Picture), Backcolor, Forecolor, Buttons, Tooltips etc.

6_2008-2009 #205170
FormShadow 1.1

Drop in OCX control adds an alpha-blended shadow to the bottom and right borders of the containing form. No properties to set or code to add! Just drop and go. Fixed in 1.1 - Shadow artifacts are no longer left on forms brought to the foreground and the shadows are now correctly repainting when bringing the containing form to the foreground.

6_2008-2009 #205199
Amazing Spiral Effect

This is an amazing spiral creator. So simple yet so complicated! Look what you can do with a simple PictureBox! Look for yourelf in my screenshot! Please also vote and add comments =)

6_2008-2009 #205201
Cool Rotating Text

Ever wanted to rotate your text this is the code for you. Its pretty cool!!! Plz vote & comments =)

6_2008-2009 #205202
Form On-Top

Whant to make your form on-top of of all other applications, well this is the code for you!

Languages
Top Categories
Global Discovery