The RadioButton

P

peter hansen

.... in VB6 it was possible to import a RadioButton which had a property
called GroupName. The GroupName prevented other RadioButtons to be in the
group if they didn't had the same GroupName.

The GroupName-property was like a substitute for the Frame/GroupBox.

But in the new VB.NET it isn't possible to have more than one group of
RadioButtons without creating a GroupBox. And as long as the GroupBox cannot
be transparent (there's still the border left) I cannot use this sollution.

How do I create some groups of RadioButtons which has a transparent
BackColor (I have an image on my form which I prefer to be shown 100%). I
don't care if I have to use the GroupBox or not - I just want it to be 100%
transparent and possible to add more than one set of groups...


// Peter
(sorry about the gramma etc - this was written in a hurry)
 
T

Tom Shelton

... in VB6 it was possible to import a RadioButton which had a property
called GroupName. The GroupName prevented other RadioButtons to be in the
group if they didn't had the same GroupName.

The GroupName-property was like a substitute for the Frame/GroupBox.

But in the new VB.NET it isn't possible to have more than one group of
RadioButtons without creating a GroupBox. And as long as the GroupBox cannot
be transparent (there's still the border left) I cannot use this sollution.

How do I create some groups of RadioButtons which has a transparent
BackColor (I have an image on my form which I prefer to be shown 100%). I
don't care if I have to use the GroupBox or not - I just want it to be 100%
transparent and possible to add more than one set of groups...


// Peter
(sorry about the gramma etc - this was written in a hurry)

Well, don't use a GroupBox - use a panel. It's also on the toolbar.
 
P

peter hansen

How I just luuuve you MVPs =)
It worked and I am happy :D
A couple of days ago I asked about the old VB6-command Unload() - do you
what happend to this command ?

// Peter
 
T

Tom Shelton

How I just luuuve you MVPs =)
It worked and I am happy :D
A couple of days ago I asked about the old VB6-command Unload() - do you
what happend to this command ?

// Peter

Peter - glad it worked for you :)

As for unload, well - it is pretty much gone. What are you trying to
accomplish?
 
P

peter hansen

Tom Shelton said:
Peter - glad it worked for you :)

As for unload, well - it is pretty much gone. What are you trying to
accomplish?

just unloading af Splash-screen that appears in the beginning of my
program - I am not going to use this form futher in the program so - well I
just thought it would be nice to unload it...

// Peter
 
T

Tom Shelton

just unloading af Splash-screen that appears in the beginning of my
program - I am not going to use this form futher in the program so - well I
just thought it would be nice to unload it...

// Peter

In that case, just call it's Close method...

Dim f As New SplashForm()

f.Show

....

f.Close()
 
P

peter hansen

Tom Shelton said:
In that case, just call it's Close method...

Dim f As New SplashForm()


Well... if you have loaded anaother form from the Splash-form, which I have,
all the child-forms will be closed as well...

// Peter
 
T

Tom Shelton

Well... if you have loaded anaother form from the Splash-form, which I have,
all the child-forms will be closed as well...

// Peter

Personally, with splash screens I would use a sub main as my start up
object, and do something like:

Public Sub Main()

Dim splash As New SplashForm()

splash.Show()

' Do stuff

splash.Close()
Application.Run(New MainForm())
End Sub

Or move the logic in the main form and show the splash screen from the
form_load.
 
P

peter hansen

Tom Shelton said:
Personally, with splash screens I would use a sub main as my start up
object, and do something like:

Public Sub Main()

Dim splash As New SplashForm()

splash.Show()

' Do stuff

splash.Close()
Application.Run(New MainForm())
End Sub

Or move the logic in the main form and show the splash screen from the
form_load.

Well I think I'll try that - thanks anyway :D

// Peter
 

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