|
Tile image in MDI Background.
|
Total Hit (3032) |
This code Requires MDIForm and 1 Picturebox.
Set Picture property of picturebox. This picture will be used for MDI Background
|
Rating
|
|
|
Protect the form unloading in accidently
|
Total Hit (1451) |
When you want ot protect the form unload in accidently you can use this following code.
In this code, the action is When a form is prepared to
unload The unload event was automatically raised.
on that event there is an parameter named "Cancel" which in the data type integer.
When the unload ev
....Read More |
Rating
|
|
|
SplitSubMenu - Split a submenu with vertical bars
|
Total Hit (2857) |
«Code LangId=1»
Private Type MENUITEMINFO
cbSize As Long
fMask As Long
fType As Long
fState As Long
wID As Long
hSubMenu As Long
hbmpChecked As Long
hbmpUnchecked As Long
dwItemData As Long
dwTypeData As String
cch As Long
End Type
Private
....Read More |
Rating
|
|
|
|
|
|
|
Right Click PopUp Menu
|
Total Hit (1530) |
«Code LangId=1»'First, create a menu using menueditor. Add all of your menu items as if you were just making
'a regular menu. Now set the VISIBLE property of the main menu item to false (see below, set
'the MNUEDIT item's VISIBLE to false). Like this:
'mnuEdit
'---mnuUndo
'---mnuRedo
'---m
....Read More |
Rating
|
|
|
Developing with a new standard in UI
|
Total Hit (2530) |
In this new century we enter, everything relating to software should have a standard of quality. For small time programmers, that doesn't necessarily mean having quick turnaround or technical support response. No, for quality, I mean having features that can make your user interface smart and easier
....Read More |
Rating
|
|
|
Splitting the Easy Way
|
Total Hit (1492) |
The EasySplitter class provided with this download completely automates most of the tasks involved with setting up a split between two objects. All you need to do is tell it which two objects you want to split and which direction to split and it does the rest.
....Read More |
Rating
|
|
|
Splitting Aligned Controls on MDI Forms
|
Total Hit (2020) |
This article provides an easy to use class which allows resizing of any aligned control on an MDI form. The code is also available packaged as a DLL for ease of debugging, as it uses a subclass which can make things awkward in the IDE.
|
Rating
|
|
|
Preventing Crashes at Shutdown
|
Total Hit (2070) |
Some versions of ComCtl32.DLL version 6.0 cause a crash at shutdown when you enable XP Visual Styles in an application. This particularly occurs when using VB User Controls.
This article provides two solutions to the problem.
|
Rating
|
|
|
Making VB Apply XP Visual Styles at Design and Debug Time
|
Total Hit (1407) |
If you want to use XP Visual Styles in a VB application, the fact that the controls don't draw using the new styles at design- or debug-time can be a problem, as your form looks different when once you've compiled. Luckily you can persuade both VB5 and VB6 IDEs to use XP Visual Styles too.
....Read More |
Rating
|
|
|
Drawing with XP Visual Styles
|
Total Hit (1701) |
This sample demonstrates using the UxTheme API calls to draw the various objects provided by current Windows XP Theme. This can be a very powerful and simple technique to providing the latest UI effects in controls and applications, as demonstrated by the No Status Bar and No Progress Bar samples.
....Read More |
Rating
|
|
|
Adding XP Visual Styles to Your Visual Basic Application
|
Total Hit (1991) |
When you run a Visual Basic application on an XP machine, you will see that although the form gets an XP-style title bar, the controls on the form still draw in the old-fashioned Windows style. However, it doesn't take much to persuade an application to use the new styles. In some cases, you can get
....Read More |
Rating
|
|
|
Text Box Balloon tip support in XP
|
Total Hit (935) |
This tip demonstrates how to to use the new Balloon Tip support provided for TextBoxes under XP. Cue Banners may also work, but only if you don't have multiple language support installed.
|
Rating
|
|
|
Show and Hide a Form's Titlebar at run-time
|
Total Hit (2300) |
This tip shows you how to show and hide the title bar of a window at run-time. To make a window's title bar disappear, you have to remove the control box, the maximise box and the minimise box as well as set the caption of the form to blank. Unfortunately, VB's ControlBox, MinButton and MaxButton pr
....Read More |
Rating
|
|
|
|
Disabling the Combo Edit Box
|
Total Hit (1352) |
OK, so you have a combo (Style 0) where you want to allow the user the ability to copy the contents, but not change the text. Setting the combo's locked property will do the trick, but the right-mouse context menu is still available. This shows how using FindWindowEx and SendMessage with the EM_SETR
....Read More |
Rating
|
|
|
Killing the Default Combo Box Context Menu
|
Total Hit (1123) |
For this to work we have to borrow from the combo method that deals with retrieving the handle to the edit portion of the control (see related topics above). The edit handle is stored, where it is compared to the hWnd passed by the WindowProc procedure. If the handle is that of the edit control, the
....Read More |
Rating
|
|
|
Obtaining the Combo Box Edit Window Handle
|
Total Hit (1427) |
This method shows how you can obtain the handle to the edit portion of a combo box using the FindWindowEx API. Unlike the GetComboBoxInfo method linked above, this method will work with all versions of Windows 95/98/NT4/2000/XP so far released.
As a further check against the handle returned, you c
....Read More |
Rating
|
|
|
|
Substituting a Tabbed ListBox for a Combo's Dropdown List
|
Total Hit (726) |
Creating a tabbed list is a painless procedure when dealing with VB's intrinsic ListBox control. However when using a ComboBox, the ability to format both the list and portions of the control is lost, as is shown in illustration 1.
List boxes have the LBS_USETABSTOPS style bit set, whereas combo b
....Read More |
Rating
|
|
|
Displaying a Balloon Tip in a Combo Box
|
Total Hit (1119) |
Note: In order for EM_HIDEBALLOONTIP to function correctly users must not have disabled the "Enable balloon tip" setting on the system. Using TweakUI for XP, this is located under the Taskbar group of options. It is also directly accessible as a registry entry under HKEY_CURRENT_USER \ Software \ Mi
....Read More |
Rating
|
|
|
|
Changing the Combo Dropdown Height
|
Total Hit (655) |
The Visual Basic combo box dropdown - unlike its C counterpart - is limited to displaying only eight items. This page shows how to change the dropdown height to any number greater than eight.
|
Rating
|
|
|
Changing the Dropdown Width of a Combo Box
|
Total Hit (1121) |
This routine demonstrates using the API to change the width of the dropdown portion of a combo box. The combo list width is manually set in the accompanying text box.
|
Rating
|
|
|
Changing the Dropdown Width of a Combo Box, Advanced
|
Total Hit (665) |
Like the routine in Changing the Dropdown Width of a Combo Box, this routine performs the same functionality but adds the ability to resize the list at runtime. By calculating the average width of a character in the listbox based on the current font, the dropdown width can change to accommodate the
....Read More |
Rating
|
|
|
|
Duplicating List Contents to Another List or Combo Using SendMessage
|
Total Hit (1503) |
You may encounter the need to quickly duplicate the contents of a listbox to another listbox, or to a combo box (or vice-versa). While there is no non-looping method available the use of SendMessage can speed up the copying, especially in situations where a large amount of data is to be duplicated.
....Read More |
Rating
|
|