473,605 Members | 2,590 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

EnableVisualSty les and GroupBoxes

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.Ena bleVisualStyles () 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?
Jul 21 '05 #1
4 1721
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" <dv****@5280Sol utions.com> wrote in message
news:BE******** *************** ***********@mic rosoft.com...
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.Ena bleVisualStyles () 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?
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.683 / Virus Database: 445 - Release Date: 12/05/2004
Jul 21 '05 #2
Would anyone (who has actually tried to recreate the problem care) to respond?
Jul 21 '05 #3
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.Thr eadException, AddressOf
Application_Thr eadException
Application.Ena bleVisualStyles ()
Application.DoE vents()
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" <an*******@disc ussions.microso ft.com> wrote in message
news:19******** *************** ***********@mic rosoft.com...
Would anyone (who has actually tried to recreate the problem care) to

respond?
Jul 21 '05 #4
Thanks for your response. Discovered that the problem does not occur when I remove .net hot fix kb836745. Thanks again.
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
334
by: #ROBERT | last post by:
(VS 2003 + .NET Framework 1.1 + WinXP Pro SP2) Calling Application.EnableVisualStyles() after the initialization() removes all images in the tab control (in the tab headers I mean). Without visual styles enabled, I have no problem. What is wrong and what is the solution? (PS: Using a manifest file makes no trouble. just the function : Application.EnableVisualStyles() ) Thanks for any help.
9
3951
by: Guy | last post by:
I have extended the datetimepicker control to incorporate a ReadOnly property. I have used the new keyword to implement my own version of the value property, so that if readonly == true then it will not set the value of the control and will leave the checked status of the checkbox to false when a user selects a new date. this works fine when using the control on a win2k machine but if we use it on a win XP box and call
3
2753
by: Steven Smith | last post by:
Hi guys I'm using object variables to address several controls on a form like so... Private Sub cmdReset_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles cmdReset.Click Dim intX As Integer Dim objTextBox As TextBox For intX = 0 To Controls.Count - 1
6
2632
by: Frank | last post by:
I have several groupboxes in a form, and I need to go through them to check some things. Thus I have a Sub like this: Dim grpbox_temp As GroupBox Dim cbox_temp As CheckBox For Each grpbox_temp In Me.Controls ...
17
2375
by: Lance | last post by:
I've noticed that calling DoEvents is much slower in an application that has called Application.EnableVisualStyles in Sub Main. Furthermore, the performance seems to worsen each time that DoEvents is called. To demonstrate what I'm experiencing, create an app with a Sub Main, a Main Form, and a Button (called Button1). Include the following code in Sub Main: Application.EnableVisualStyles Application.DoEvents Application.Run(New...
4
1693
by: Philip Wagenaar | last post by:
I have made a form with a tab that containts groupboxes and those contain checkboxes. When I run the application sometimes the outlining for some groupboxes are not shown, if I switch tabs and back sometimes all outlining is shown and sometimes are not shown. I have no idea what is going wrong. What also is weird is that when I open the form from my main application I can resize the form, even though it is locked, and that when I cut...
4
232
by: Dave | last post by:
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?
2
1263
by: Dmenace | last post by:
Okay, I've got 2 groupboxes that both have different information. I have written my own function, and get no errors so I'm not sure why is not working. Is there something with groupboxes that you can't make 1 visible and with a button click and switch it out with another based on that same button click? So here is the function I made. Private Sub Moveunit() If GroupBox1.Visible = True Then GroupBox1.Visible =...
3
1190
by: Joe | last post by:
We have a customer where one of there computers is displaying a screen sort of oversized. The screen has 3 groupboxes in it. There is one that gets stretched to the right and bottom off the screen and another one that gets stretched to the bottom off the screen. The text also seems larger. We checked their Font size and DPI but they're both normal. The problem with the groupbox that goes off the right and bottom has a list box in it so...
0
8004
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8425
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8418
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8071
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6743
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3912
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3958
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2438
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1541
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.