Atlanta Custom Software Development 

   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
VB VB (1647)
VB.net VB.net (736)
C# C# (15)
ASP.net ASP.net (779)
ASP ASP (41)
VC++ VC++ (25)
PHP PHP (0)
JAVA JAVA (4)
JScript JScript (5)
  Database
» SQL Server (708)
» ORACLE (5)
» MySQL (0)
» DB2 (0)
Automation
» C/C++/ASM (11)
» Microcontroller (1)
» Circuit Design (0)
OS/Networking
» Networking (5)
» Unix/Linux (1)
» WinNT/2k/2003 (8)
Graphics
» Flash (0)
» Maya (0)
» 3D max (0)
» Photoshop (0)
Links
» ASP.net (2)
» PC Interfacing (1)
» Networking (4)
» SQL Server (4)
» VB (23)
» VB.net (4)
» VC (3)
» HTML/CSS/JavaScript (10)
Tools
» Regular Expr Tester
» Free Tools

How to Subclass a Form
Total Hit (1505) «Code LangId=1»'==============inside a MODULE Option Explicit '************************************************************ 'API '************************************************************ Private Declare Function CallWindowProc Lib "user32.dll" Alias "CallWindowProcA" ( _ ByVal lpPrev ....Read More
Rating
This is a link to a different site Win32 Hooks in VB - The vbAccelerator Hook Library
Total Hit (1327) When a subclass isn't tough enough for the job, its time to move to an even lower-level and more disruptive technique. Win32 Hooks are a method by which you can tap into the Windows message stream for every single message directed to every window in your application. You can modify or even discard m ....Read More
Rating
This is a link to a different site Scrolling on the Middle Mouse Button
Total Hit (804) Provides a class that allows you to perform auto-scrolling from the middle Mouse button just like in IE.
Rating
This is a link to a different site Enabling Mouse Gestures with a WH_MOUSE hook
Total Hit (1141) Use of mouse gestures to control application is becoming increasingly common in the more sophisticated web browsers. This sample demonstrates how you can support a range of mouse gestures in a Visual Basic application using a Windows Hook.
Rating
This is a link to a different site Using CBT Hooks to Centre API Dialogs
Total Hit (948) Windows sometimes places Common Dialogs and Message Boxes at the "wrong" position on the screen. Whilst there are some ways of working around this for Common Dialogs, a more general solution which applies to any Windows dialog is to use a CBT (Computer-Based Training) Windows Hook. These Hooks provi ....Read More
Rating
This is a link to a different site Using a Journal Record Hook to Capture Mouse and Key Events from any System Window
Total Hit (1122) Normally, a Windows hook used in Visual Basic can only act on Windows within the process in which it is running. The exception to this rule is the Windows Journal Hook, which allows capturing of mouse and keyboard events from any Window on the system. Many thanks to the coder known only by his email ....Read More
Rating
This is a link to a different site vbAccelerator Accelerator Control
Total Hit (336) If you've ever tried to pick a keyboard accelerator for the menu items Back and Next in your application, you might have discovered a limitation in VB's ability to set up accelerators. IE offers some sensibly chosen keyboard accelerators for its Back, Next, Home shortcuts, using Alt and the arrow an ....Read More
Rating
This is a link to a different site Subclassing Without The Crashes
Total Hit (1147) Prior to VB5, it was impossible to subclass a control without relying on a proprietary custom control. This greatly restricted what you could do if you wanted to play around with some of the neater customisation features - creating a new control was completely out, finding out in detail what was goi ....Read More
Rating
This is a link to a different site Emulating Modal Forms
Total Hit (479) Sometimes, the restrictions applied when showing a modal form can be restrictive. For example, if your application can have more than one main view window, a modal dialog prevents any other form from being activated whilst the modal dialog is displayed. Another example occurs when you want to try an ....Read More
Rating
This is a link to a different site Tile a Bitmap Into a TextBox Background
Total Hit (1480) This sample presents a small class that allows you to tile a bitmap into the background of a TextBox. Note that the technique only works on multi-line text boxes, as the drawing of single-line TextBoxes is done in a different way and cannot be easily overridden in code. ....Read More
Rating
This is a link to a different site Sophisticated Control Over Window Sizing and Moving
Total Hit (889) VB's control over moving and sizing isn't much - basically you have the Resize event, as has been the case since VB1. Windows gives you a lot more control over moving and sizing forms if you need it though. For example, try resizing an undocked tool window in MS Office. You will see that the size sn ....Read More
Rating
This is a link to a different site Keep Form Titlebars in Focus when ToolWindows are Shown
Total Hit (891) The ToolWindow style, introduced with VB4, allowing you to easily create pop-up tool windows with small captions. However, there is (and has always been) a problem with them: whenever the form or a control on it gets the focus, it appears that the main form of your application looses focus. Whilst m ....Read More
Rating
This is a link to a different site Generating MouseLeave Events for a Window
Total Hit (1112) Almost all of the more recent windows control support a feature known as "Hot-Tracking" - that is, when the control appears to highlight when the mouse moves over it, then returns to normal when the mouse leaves. Common examples include the flat toolbar buttons provided with the Windows Commmon cont ....Read More
Rating
This is a link to a different site Creating and Responding to System-Wide Hotkeys
Total Hit (971) Win32 allows you to set up combinations of key-presses which can be associated with an application on a system-wide scope, called Hotkeys. When a user presses a registered HotKey it doesn't matter which application is active when they pressed it, the hot-key message will get routed to your applicati ....Read More
Rating
This is a link to a different site Drawing Buttons, Option Boxes and Check Boxes In Your Own Style
Total Hit (1131) If you set the Style property for VB's CommandButton, OptionBox or CheckBox controls to Graphical, VB turns the control into an Owner-Draw control. By default VB allows you to associate three pictures with these controls. However, if you've ever tried this you will know that the button draws like a ....Read More
Rating
This is a link to a different site Moving Forms and Creating Resize Gripper Boxes
Total Hit (774) This article provides code demonstrating how to modify the behaviour of a VB form so that parts of it behave like title bars and resize borders. You can use this code to: Create windows without a title bar that you can click on anywhere to move around. Build fake title bars. Add a Resize Grippe ....Read More
Rating
This is a link to a different site Detecting when another application is activated
Total Hit (429) In a form, there is a Deactivate event. Exactly what this method is for is hard to determine, because it hardly ever seems to fire. Ok, that's perhaps a little unfair - it never fires. One thing you certainly can't detect without a bit of additional work is when the user Alt-Tabs to another applicat ....Read More
Rating
This is a link to a different site Subclassing and Hooking with Machine Code Thunks
Total Hit (998) VB's AddressOf is limited in that it can only provide an address to a function within a module, and not one in a class. This makes doing many things with it harder. However, there is a way of getting a callback to a class function, although you need to know a little assembler to do it. Don't worry i ....Read More
Rating


Recommanded Links

 

Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  Blogs

© 2008 BinaryWorld LLC. All rights reserved.