In the standard windows installer there is a divider between the control buttons on the bottom and the main part of the form. Does anyone know how this would be done in winforms/.net? I've tried fiddling around with the border settings on Panel controls etc, but haven't been able to get the same result...
+4
A:
I used Spy++ to figure this out a while ago and discovered that it's just a standard Win32 Static control -- the equivalent of the WinForms Label. Steps for getting the same effect:
- Add a Label control to your form.
- Set Label Text to empty.
- Set BorderStyle to Fixed3D.
- Set AutoSize to false.
- Set Height to 2 (most easily accomplished by typing 2 into the Size/Height field under Label Properties).
Dave76
2010-07-21 03:44:35
Just tried it, and yep, this works perfectly. Thanks!
Nathan Reed
2010-07-21 03:54:55