Solved

vb.net groupbox

Posted on 2016-07-23
5
98 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

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 …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

751 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