PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
separate visual objects: bevel/rectangle
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
separate visual objects: bevel/rectangle
![]() |
separate visual objects: bevel/rectangle |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
I come from Delphi development, and I really miss the ability to separate text boxes, and other visual elements on the form with ... something like bevel was in Delphi. What I mean: in design time I would like to draw a rectangle around some objects, or draw a horizontal or vertical line on the form, what shows immediatelly on the screen. Is there a such object collection? How do you used to do this? With Panels? Isn't there too much overhead, if you use panels for this? Thanks: Peter |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Hi Peter,
I recall such a trick can be done with labels. Set the text to an empty string and enable a 3D border for the label. To get a horizontal or a vertical line, set the height or the width respectively to 1px. "Peter Baranyi" <PeterBaranyi@discussions.microsoft.com> wrote in message news:F274C2DE-0B54-4319-B1C1-CFDA17726CA1@microsoft.com... > Hi, > > I come from Delphi development, and I really miss the ability to separate > text boxes, and other visual elements on the form with ... something like > bevel was in Delphi. What I mean: in design time I would like to draw a > rectangle around some objects, or draw a horizontal or vertical line on > the > form, what shows immediatelly on the screen. > Is there a such object collection? How do you used to do this? With > Panels? > Isn't there too much overhead, if you use panels for this? > > Thanks: > > Peter |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Hi Dmytro,
wow, really cool. Thanks for the idea! Peter "Dmytro Lapshyn [MVP]" <x-code@no-spam-please.hotpop.com> wrote in message news:O9JxdpKLGHA.2912@tk2msftngp13.phx.gbl... > Hi Peter, > > I recall such a trick can be done with labels. Set the text to an empty > string and enable a 3D border for the label. To get a horizontal or a > vertical line, set the height or the width respectively to 1px. > > "Peter Baranyi" <PeterBaranyi@discussions.microsoft.com> wrote in message > news:F274C2DE-0B54-4319-B1C1-CFDA17726CA1@microsoft.com... >> Hi, >> >> I come from Delphi development, and I really miss the ability to separate >> text boxes, and other visual elements on the form with ... something like >> bevel was in Delphi. What I mean: in design time I would like to draw a >> rectangle around some objects, or draw a horizontal or vertical line on >> the >> form, what shows immediatelly on the screen. >> Is there a such object collection? How do you used to do this? With >> Panels? >> Isn't there too much overhead, if you use panels for this? >> >> Thanks: >> >> Peter > > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Peter,
There is no beles as in VCL. Horizontal and Vertical line you can do by using Panel with small width or height and 3D border. Don't worry about the overhead in VCL they are implemented exactly like this. -- Stoitcho Goutsev (100) "Peter Baranyi" <PeterBaranyi@discussions.microsoft.com> wrote in message news:F274C2DE-0B54-4319-B1C1-CFDA17726CA1@microsoft.com... > Hi, > > I come from Delphi development, and I really miss the ability to separate > text boxes, and other visual elements on the form with ... something like > bevel was in Delphi. What I mean: in design time I would like to draw a > rectangle around some objects, or draw a horizontal or vertical line on > the > form, what shows immediatelly on the screen. > Is there a such object collection? How do you used to do this? With > Panels? > Isn't there too much overhead, if you use panels for this? > > Thanks: > > Peter |
|
|
|
#5 |
|
Guest
Posts: n/a
|
"Peter Baranyi" <PeterBaranyi@discussions.microsoft.com> schrieb:
> I come from Delphi development, and I really miss the ability to separate > text boxes, and other visual elements on the form with ... something like > bevel was in Delphi. What I mean: in design time I would like to draw a > rectangle around some objects, or draw a horizontal or vertical line on > the > form, what shows immediatelly on the screen. > Is there a such object collection? How do you used to do this? With > Panels? > Isn't there too much overhead, if you use panels for this? For boxes, check out the groupbox control. Rules: Wrapping Win32 Controls in .NET - Horizontal and Vertical Rules <URL:http://www.codeproject.com/cs/miscctrl/hvrules1.asp> Alternatively you can use a label control with width or height set to 2, and 'BorderStyle' set to 'Fixed3D' to create an inset line. Shapes and lines: Advanced Shape Control <URL:http://www.codeproject.com/vb/net/advanced_shape_control.asp> LineControls.exe <URL:http://www.gotdotnet.com/team/vb/LineControls.exe> <URL:http://download.microsoft.com/download/7/e/0/7e070297-47fe-4443-9194-ab57acd8ea01/LineControls.msi> Creating transparent Windows Forms controls. <URL:http://www.bobpowell.net/transcontrols.htm> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

