Solved

vb.net groupbox

Posted on 2016-07-23
5
81 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
  • 2
  • 2
5 Comments
 
LVL 62

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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

777 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