473,408 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

The RadioButton

.... 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)
Nov 20 '05 #1
8 2215
In article <uP**************@TK2MSFTNGP12.phx.gbl>, peter hansen wrote:
... 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.
--
Tom Shelton
MVP [Visual Basic]
Nov 20 '05 #2
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

"Tom Shelton" <to*@mtogden.com> wrote in message
news:O4****************@TK2MSFTNGP11.phx.gbl...
In article <uP**************@TK2MSFTNGP12.phx.gbl>, peter hansen wrote:
... 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.
--
Tom Shelton
MVP [Visual Basic]

Nov 20 '05 #3
On 2003-12-12, peter hansen <wo**@tell.you> wrote:
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?

--
Tom Shelton
MVP [Visual Basic]
Nov 20 '05 #4

"Tom Shelton" <to*@mtogden.com> wrote in message
news:O%****************@TK2MSFTNGP11.phx.gbl...
On 2003-12-12, peter hansen <wo**@tell.you> wrote:
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?


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
Nov 20 '05 #5
On 2003-12-13, peter hansen <wo**@tell.you> wrote:

"Tom Shelton" <to*@mtogden.com> wrote in message
news:O%****************@TK2MSFTNGP11.phx.gbl...
On 2003-12-12, peter hansen <wo**@tell.you> wrote:
> 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?


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()

--
Tom Shelton
MVP [Visual Basic]
Nov 20 '05 #6

"Tom Shelton" <to*@mtogden.com> wrote in message
news:eY**************@TK2MSFTNGP09.phx.gbl...
On 2003-12-13, peter hansen <wo**@tell.you> wrote:

"Tom Shelton" <to*@mtogden.com> wrote in message
news:O%****************@TK2MSFTNGP11.phx.gbl...
On 2003-12-12, peter hansen <wo**@tell.you> wrote:
> 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?


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()

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

// Peter
Nov 20 '05 #7
On 2003-12-13, peter hansen <wo**@tell.you> wrote:

"Tom Shelton" <to*@mtogden.com> wrote in message
news:eY**************@TK2MSFTNGP09.phx.gbl...
On 2003-12-13, peter hansen <wo**@tell.you> wrote:
>
> "Tom Shelton" <to*@mtogden.com> wrote in message
> news:O%****************@TK2MSFTNGP11.phx.gbl...
>> On 2003-12-12, peter hansen <wo**@tell.you> wrote:
>> > 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?
>
> 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()

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.

--
Tom Shelton
MVP [Visual Basic]
Nov 20 '05 #8

"Tom Shelton" <to*@mtogden.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
On 2003-12-13, peter hansen <wo**@tell.you> wrote:

"Tom Shelton" <to*@mtogden.com> wrote in message
news:eY**************@TK2MSFTNGP09.phx.gbl...
On 2003-12-13, peter hansen <wo**@tell.you> wrote:
>
> "Tom Shelton" <to*@mtogden.com> wrote in message
> news:O%****************@TK2MSFTNGP11.phx.gbl...
>> On 2003-12-12, peter hansen <wo**@tell.you> wrote:
>> > 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?
>
> 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()

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.


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

// Peter
Nov 20 '05 #9

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

Similar topics

8
by: VK | last post by:
Hi! What I'm missing in following code? Cannot get the values of radiobuttons. Starting only one class (GetVariant), it works. When I put two classes together, it doesn't. Regards, VK from...
11
by: William Gill | last post by:
I am placing radiobuttons in a 4 X 4 matrix (using loops) and keep references to them in a 2 dimensional list ( rBtns ). It works fine, and I can even make it so only one button per column can be...
0
by: rodrigo | last post by:
I have a Asp.net table control that I dynamically add rows from a SQL database. Inside the table, I add radiobuttons and they all have different ID numbers according to BindChain() Looking In...
3
by: sofie | last post by:
Hello all, I use the following javascript function in a html document to set the level of one of eight available radiobuttons. The line that's commented out works fine under IE, but I need to...
2
by: JeffFinnan | last post by:
<form name=form1> Load in Viewer Window: <input name="radiobutton" type="radio" value="1" checked onClick="1"> 1&nbsp;&nbsp;&nbsp; <input type="radio" name="radiobutton" value="2" onClick="2">...
1
by: Dmitry V. Markin | last post by:
Good day! Here is my problem: I need to have a radiobutton column in my DataGrid for a representation of a bool column, where only row can be checked at one time(only one value in bool column...
3
by: dave | last post by:
I have half a dozen web form radio buttons on a web form. Each of them is set to postback=true. However, if for instance radiobutton1 is already selected and the user selects it again, it performs...
6
by: Radiobutton via DotNetMonster.com | last post by:
i need help with radiobuttons. i am useing 1button and 2 radiobuttons i am trying to make it so when u select a radiobutton and hit button1 it will clear radiobuttons 1 and 2. -- Message...
4
by: Igor | last post by:
RadioButton have property Checked (true or false). If I make RadioButtons with code, without drawing by mouse than I have problems. I write like this: Dim rb(0 To 2) As RadioButton Dim n As...
8
by: =?Utf-8?B?UmljaA==?= | last post by:
If you enclose a group of radiobuttons (option buttons in MS Access) in an option group control (a frame control) in Access -- the frame control will return the index of the option button that is...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.