EnableVisualStyles and GroupBoxes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Seems to be a bug when a GroupBox contains another GroupBox. The caption of the child seems to get truncated/bloated when the application is run with Application.EnableVisualStyles() and the FlatStyle of both GroupBoxes is set to "System".

Everything looks fine if the GroupBoxes are placed side-by-side. I, however, need one groupbox to contain the other. Any suggestions?
 
I don't see this behaviour in VB.Net.
I know this used to happen in VB6 but I've never seen it in dotnet.

Dave said:
Seems to be a bug when a GroupBox contains another GroupBox. The caption
of the child seems to get truncated/bloated when the application is run with
Application.EnableVisualStyles() and the FlatStyle of both GroupBoxes is set
to "System".
Everything looks fine if the GroupBoxes are placed side-by-side. I,
however, need one groupbox to contain the other. Any suggestions?
 
Dave,
As Mick suggested, I don't see this behavior in VB.NET.

I put 2 GroupBoxes on a Dialog form, one nested inside the other, FlatStyle
= System. I include the following in the Main of the MainForm.

Public Shared Sub Main()
AddHandler Application.ThreadException, AddressOf
Application_ThreadException
Application.EnableVisualStyles()
Application.DoEvents()
Application.Run(New MainForm)
End Sub

Within a menu Click event on the Main Form, I use ShowDialog to show my
dialog form.

I do not see any truncation/bloated going on.

Is it the inner or outer GroupBox you have a problem with? What video
driver, what resolution?

Hope this helps
Jay

Dave said:
Would anyone (who has actually tried to recreate the problem care) to
respond?
 
Thanks for your response. Discovered that the problem does not occur when I remove .net hot fix kb836745. Thanks again.
 
Back
Top