Link to home
Start Free TrialLog in
Avatar of indy500fan
indy500fan

asked on

Is there a way to make the boundry lines of a groupbox more visible (i.e. thicker)? If so, how?

Friends,

Is there a way to make the boundry lines of a groupbox more visible (i.e. thicker)?  If so, how?

Best Regards,
Eric
ASKER CERTIFIED SOLUTION
Avatar of Howard Cantrell
Howard Cantrell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of indy500fan
indy500fan

ASKER

When I do this, I get the following error:

 'DrawStyle' is not a member of 'System.Windows.Forms.GroupBox'.


In the following code:

        Select Case GroupBox1.DrawStyle '<----------Error here
            Case 1
                GroupBox1.Text = "Etched"
            Case 2
                GroupBox1.Text = "RaisedOuter"
            Case 3
                GroupBox1.Text = "SunkenOuter"
            Case 4
                GroupBox1.Text = "Flat"
            Case 5
                GroupBox1.Text = "Raised"
            Case 6
                GroupBox1.Text = "Bump"

        End Select
did you add  the class ctlGroupBox3D to your project?
I am just making this a test project for now, and yes I did add it to the test project.

Am I supposed to reference it somewhere?
   I missed adding the Me.GroupBox1 = New My3DControls.ctlGroupBox3D in the form.

I added it and now I get the following error:

 Type 'My3DControls.ctlGroupBox3D' is not defined.


 Me.GroupBox1 = New My3DControls.ctlGroupBox3D

And when I look at the ctlGroupBox3D class I don't see any reference to My3DControls...
sorry my paste was off by one line...

Imports My3DControls.ctlGroupBox3D
Public Class Form1
??? I get the error:

Namespace or type 'ctlGroupBox3D' for the Imports 'My3DControls.ctlGroupBox3D' cannot be found.

I created ctlGroupBox3D as a Add New Item - Class.  Did I do that wrong?
My3DControls is the name of the project and ctlGroupBox3D is the Class name that sits in the project.
Do I have to do all this as a control?  Can I simply add this functionality though your code to my current project?  Or do I HAVE to have this as a reference in my current project.
no control. Just add the class to your project and imports "MYprojectname".ctlgroupbox3D to your main form and change the System.Windows.Forms.GroupBox to "MYprojectname".ctlgroupbox3D
"MYprojectname" is the name of your project.
Planocz.  Alrighty then.  Is it monday?
I'm just making a mess of my project.  I'm going to give you the points because I've worked with you before and I'm sure this works, but I sure as heck can't get it to work in my stuff...

Thanks,
Eric
Any other suggestions
Do you have any other suggestions on how to do this?
post the code and I will check it. I know we can get it working
Planocz,

I figured out what was wrong.  I see now what you were trying to do.  I'm not sure this will work, but it is certainly better than the standard flat style.

thanks for being patient with me.

Eric
You can change the drawtype # to 1 thru 6 and see different styles.
I think the raised style would work for you.
Yep, that's the one I finally decided upon.  Thanks for all your help!