Prevent an iconized window from being restored
When the user clicks on an iconized (minimized) form in the taskbar, Windows sends that form a WM_QUERYOPEN message, and inspects the value returned to the operating system. If this
When the user clicks on an iconized (minimized) form in the taskbar, Windows sends that form a WM_QUERYOPEN message, and inspects the value returned to the operating system. If this
The CommonDialog control doesn’t provide any direct way to decide where a common dialog appears on the screen. In all cases, in fact, the control tries to display the common
As explained in another tip in this TipBank, users can peek at the contents of password-protected TextBox controls with a simple Spy-like program, or even with a VB program plus
Unlike regular forms, forms don’t expose the MinButton and MaxButton properties and these buttons are always displayed. You can suppress these buttons using the following code: Private Declare Function SetWindowLong
Visual Basic lacks of the capability to display a short description of the menu command being highlighted with the mouse or the keyboard, a feature that all professional applications should
The most intuitive way to append a string to the current contents of a TextBox is through the & string operator, as in: Text1.Text = Text1.Text & “more text” However,
You’ve taken the trouble to write a Java applet, so you naturally want everyone to see it. Unfortunately, there are some viewers that still don’t have a Java-capable browser or
The JPasswordField included in Swing exhibits a strange behavior?it moves the caret to the right as far as the width of the character you already typed. The problem is that
You should always prefer to cache commonly used select lists in the Application object. In a typical Web application, you make a database server trip to get to the list.