Solved

vb.net groupbox

Posted on 2016-07-23
5
106 Views
Last Modified: 2016-07-25
I have a groupbox on form1 with some options in it, is there a way to ensure at least 1 is selected without checking if an  option value is checked?
0
Comment
Question by:PeterBaileyUk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 63

Assisted Solution

by:Fernando Soto
Fernando Soto earned 250 total points
ID: 41726016
Whats in the GroupBox? Can you give more info on what you need. A screen shot would also be nice. Thanks.
0
 
LVL 11

Accepted Solution

by:
Deepak Lakkad earned 250 total points
ID: 41727040
Hi,

Write GroupBox's Enter Event

refer following code

Private Sub GroupBox1_Enter(sender As System.Object, e As System.EventArgs) Handles GroupBox1.Enter
        RadioButton1.Checked = True
    End Sub

Open in new window


- Deepak Lakkad
0
 

Author Comment

by:PeterBaileyUk
ID: 41727118
ive attached a screenshot but i did it the way deepak suggested.

in access vba the groupbox returns a value dependant on which was clicked so thats what i was wondering.


        If OpCarBulk.Checked = True Then
            StrVehCat = "Car"
        End If
        If OPBikeBulk.Checked = True Then
            StrVehCat = "Motorcycle"
        End If
        If OPLcvBulk.Checked = True Then
            StrVehCat = "Lcv"
        End If
        If OpOthersBulk.Checked = True Then
            StrVehCat = "Others"
        End If
0
 
LVL 11

Expert Comment

by:Deepak Lakkad
ID: 41727169
Hi,


can you please explain the problem in detail?

- Deepak Lakkad
0
 

Author Comment

by:PeterBaileyUk
ID: 41727171
its ok its working I just wondered if it would work a different way i will split the points
0

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question