Set FlatStyle to System

Y

yxq

Hello,
My code
***********************************
Me.BackgroundImage = BG 'BG is a BMP resource
Me.SetStyle(ControlStyles.SupportsTransparentBackColor, True)
Panel1.BackColor = Color.Transparent
GroupBox1.FlatStyle = System 'On Panel1
***********************************

The GroupBox1 is ugly, why? How to correct it?

Thank you
 
H

Herfried K. Wagner [MVP]

yxq said:
***********************************
Me.BackgroundImage = BG 'BG is a BMP resource
Me.SetStyle(ControlStyles.SupportsTransparentBackColor, True)
Panel1.BackColor = Color.Transparent
GroupBox1.FlatStyle = System 'On Panel1
***********************************

The GroupBox1 is ugly, why? How to correct it?

Ugly = not transparent?!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top