Solved

vb.net groupbox

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

831 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