Frequently asked Interface Design questions

Squirm
03-06-2003, 09:40 AM
1. How do I make a custom-shaped or skinnable form/control?
Using custom window regions. See here (http://www.elitevb.com/content/01,0010,01/)

2. How do I make [control] transparent?
This involves subclassing. See here (http://www.elitevb.com/content/01,0071,01/) for an example with a textbox.

3. How do I create a scrollable form?
This is a really bad idea, the best solution is to redesign your interface. You might consider using some kind of tab control to separate your interface into smaller sections.

4. How do I make it so that when someone resizes the form the controls resize to fit?
You need to either buy a sizing control (eg SizerOne (http://www.componentone.com/products.aspx?ProductCode=1&ProductID=77)) or put code in the Resize event of the form which resizes and moves all the controls to their new positions. Use the form properties ScaleWidth and ScaleHeight for positioning.

5. How do I set a minimum/maximum size the form can be resized to?
This involves subclassing. You need to catch the WM_GETMINMAXINFO message. Example here (http://www.mvps.org/vbnet/index.html?code/subclass/minmaxinfo.htm).

6. How do I disable the form close button in the top right corner?
See here (http://www.visualbasicforum.com/t63189.html).

7. Where can I find icons/icon editors?
We have a whole thread full of them. Find it here (http://www.visualbasicforum.com/t48760.html).

8. I'm looking for a control that does....
http://www.vbaccelerator.com/home/index.asp
http://www.mvps.org/ccrp/
http://www.componentone.com/Products.aspx?ProductCode=1
http://www.mvps.org/vb/index2.html?controls.htm
http://www.merrioncomputing.com/Download/index.htm
http://www.planetsourcecode.com/vb/

9. How do I make my interface use XP visual styles?
If you're using Windows XP, then look here (http://www.visualbasicforum.com/showthread.php?threadid=15816).
To make an XP-like interface in some other OS, you would have to draw/skin the controls manually.

10. How do I create a ToolWindow, or MDI Child that shows above all my other MDI Child Windows?
http://www.visualbasicforum.com/showthread.php?threadid=70218

11. How do i Create a docked ToolWindow like the ones in the Visual Basic IDE?
http://www.vbaccelerator.com/home/VB/Code/Controls/ListBar/index.asp
http://www.visualbasicforum.com/showpost.php?postid=359136&postcount=2
http://www.visualbasicforum.com/showpost.php?postid=354277&postcount=4
http://www.visualbasicforum.com/showthread.php?threadid=25299

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum