|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Is it possible to center the text of a groupbox?Hi,
Is this possible? Normally, you get a groupbox with the text at the left side. I would like to have it centered. Is this possible? Thanks AFAIK, there is no way to tell the GroupBox to center its header text. What
you could do is clear the GroupBox text and then use a Label placed over the frame for the header text. -- Show quoteHide quoteTim Wilson ..NET Compact Framework MVP "Marcel Brekelmans" <mar***@marcel-art.com> wrote in message news:5tqdnfuFC4XEic_ZnZ2dnUVZ8t2dnZ2d@giganews.com... > Hi, > > Is this possible? Normally, you get a groupbox with the text at the left > side. I would like to have it centered. Is this possible? > > Thanks > >
Show quote
Hide quote
"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message One way is to create a control, override it's OnPaint method, and draw it news:e65cxAuaGHA.3444@TK2MSFTNGP05.phx.gbl... > AFAIK, there is no way to tell the GroupBox to center its header text. > What > you could do is clear the GroupBox text and then use a Label placed over > the > frame for the header text. > > -- > Tim Wilson > .NET Compact Framework MVP > > "Marcel Brekelmans" <mar***@marcel-art.com> wrote in message > news:5tqdnfuFC4XEic_ZnZ2dnUVZ8t2dnZ2d@giganews.com... >> Hi, >> >> Is this possible? Normally, you get a groupbox with the text at the left >> side. I would like to have it centered. Is this possible? >> >> Thanks >> >> > > yourself. That's how I did it :) Mythran Yes, I had forgotten about that one :) But it works, thanks!
Show quoteHide quote "Mythran" <kip_potter@hotmail.comREMOVETRAIL> schreef in bericht news:unRTubvaGHA.5116@TK2MSFTNGP05.phx.gbl... > > "Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message > news:e65cxAuaGHA.3444@TK2MSFTNGP05.phx.gbl... >> AFAIK, there is no way to tell the GroupBox to center its header text. >> What >> you could do is clear the GroupBox text and then use a Label placed over >> the >> frame for the header text. >> >> -- >> Tim Wilson >> .NET Compact Framework MVP >> >> "Marcel Brekelmans" <mar***@marcel-art.com> wrote in message >> news:5tqdnfuFC4XEic_ZnZ2dnUVZ8t2dnZ2d@giganews.com... >>> Hi, >>> >>> Is this possible? Normally, you get a groupbox with the text at the left >>> side. I would like to have it centered. Is this possible? >>> >>> Thanks >>> >>> >> >> > > One way is to create a control, override it's OnPaint method, and draw it > yourself. That's how I did it :) > > Mythran >
Other interesting topics
Number type conversion
Memory leak in C# Exception .net activex loaded with axhost C# Client browser, cookies enabled? Hashtable - Order of storage Is a cast to string always possible without exception? polish character.dbf VFP6.0 -CSharp VS2003 What is C# equivalent of Delphi's ClientDataSet ? Project fails to load after changing the name of the project folde Post XML from one C# web app to another |
|||||||||||||||||||||||