Using A Radio Button To Make A Group Box Read Only

Jul 27, 2009

I would like to make a groupbox readonly by using a radio button, how can i make the readonly command an expression as i have this so far If radioButton1.Checked Then groupBox = ReadOnly is there a namespace that needs to precede ReadOnly?If you're not living on the edge, you're taking up too much room

View 3 Replies


ADVERTISEMENT

Forms :: Group Radio Button?

Jul 28, 2009

I have a Form which has several questions - each question is answered (bythe user) by choosing between 2 options - each option represented by a Radio Button. I have six questions and hence 12 radio buttons on my page but all of them seem to belong to the same group - i.e., the user can select only one of the 12 buttons whereas I want the user to be able to select one from every pair of radio buttons.

View 1 Replies

Radio Button Group With Name Of EmpStatus

Nov 15, 2011

I have a radio button group with the name of EmpStatus.I inserted the result of the radio button selection to the sql table with this code:[code]If any body knows what would be the code to be able to update the table on profile edit save button click

View 5 Replies

Checking If A Radio Button Has Been Selected Within A Group Box?

Jun 12, 2009

How do i checked that within a GroupBox 1 radio button has been selected? I want to provide the user with a message box telling them they have not made a selection from one of the 12 radiobuttons within the group box?

View 3 Replies

Getting Group Boxes To Appear When Click A Radio Button?

Nov 9, 2009

New user here using VB .Net 2008

I seem to be having trouble getting group boxes to appear when I click a radio button.

For example:

If radiobutton1.Checked Then
Groupbox1.Visible = True
Groupbox2.Visible = False
Groupbox3.Visible = False
Groupbox4.Visible = False
End If

This indeed brings up the first radio button however I have other groupboxes underneath which with the same code will not appear when the radio button is checked.

Eg:

If radiobutton2.Checked Then
Groupbox2.Visible = True
Groupbox1.Visible = False
Groupbox3.Visible = False
Groupbox4.Visible = False
End If

The second groupbox does not appear and is directly behind the first groupbox.

The .Top code doesn't seem to be working either.

View 7 Replies

Default Radio Button Selected Inside A Group Box?

Jan 8, 2010

I have a WinForms application (VS 2008, .NET 3.5) that has a form with two different group boxes, and inside of each group box are different sets of radio buttons. When I run the application, the first group box automatically has the first radio button in it already selected, and the second group box does not have a radio button selected by default.

I have looked through all the properties of the radio buttons and the group boxes, and cannot figure out what the difference is between the two.I would like both group boxes to have all radio buttons unselected when the form is first opened.Also, I looked through the Designer.vb file for the form, and could not find anything unusual going on in there either.

View 4 Replies

Radio Button Group For The User To Choose Entry Temperature Type?

Jan 22, 2012

I need to have 4 text boxes and three command buttons. One button should be used for exiting the program, one button should be used for clearing all of the text boxes, and the last button should be used for any calculations/conversions. You should also have a radio button group for the user to choose entry temperature type.

One text box should be used for the entry of an initial temperature. The radio button group will then allow the user to select the entry temperature. When the button is clicked for conversion, the other three text boxes will populate with answers to the conversion. and if I enter 37 degrees Fahrenheit, the Fahrenheit text box should read 37 after the conversion.)

View 4 Replies

Radio Button - Code For Display Listbox Depends On The Radio Button Check True And False

Feb 13, 2009

I have one radio button and one listbox .i want code for display listbox depends on the radio button check true and false.

View 3 Replies

Make Radio Button And Combo Box Has Default Value?

Mar 15, 2012

how to make radio button and combo box has default value?

View 2 Replies

Radio Button+Picture Box: How To Make Them Work Together

Oct 29, 2010

I'm doing a project in which I have 5 radio buttons. I want each of them to show me a different image when I click on them... My guess is that I have to usea Picture Box. How do I make them work together?

PS: When I click on another radio button I want the other one to disappear and show me the new one.

View 4 Replies

Make A Checked List Box Behave Like A Radio Button?

Feb 27, 2009

Is it possible to make a checked list box behave like a Radio button?

View 1 Replies

Make A Radio Button Remain Selected On Postback?

Feb 18, 2011

I am using a GridView with its first column as a template field with radio buttons.

I need to make the first radio button in the first row of the grid remain default selected during page load / postback.

View 1 Replies

Move The Text Next To The Radio Button To The Left Of The Radio Button

Sep 14, 2009

i have problem that i know once someone answers, i will kick myself, but here goes. i need to move the text next to the radio button to the left of the radio button, that part is easy just make sure the the "right to left" is maked yes, got it. but, the problem is i am making a seating chart and the seats are labeled 10-a, 10-b etc.... when the right to left is set to yes my text reverses and becomes a-10 and i can't seem to figure out what is set in the properties the is causing the alpha to be placed before the numeric.

View 2 Replies

Make To Choose A Radio Button & Enter A Username + Pass VB 08?

Feb 22, 2011

Ok so I can't figure out how to make it so that on my application users cannot just click "submit" without choosing a radio/option button & filling out the username + password field ?? Using VB 08 BTW.

View 6 Replies

Check Boxes And Radio Buttons - Value Is Not Being Updated Until I Select A Different Radio Button?

Oct 10, 2011

trying to write a simple form for calculating professor's salaries depending on their degree and position.my problem is that the when i select a check box, the value is not being updated until i select a different radio button. it probably doesn't make much sense here,

Public Class frmMain
Private Sub optLecturer_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles optLecturer.CheckedChanged[code]....

the values being assigned to my salary label are correct, but are not being updated until i select a new radio button. im not entirely sure how to get around this so that the value is updated as soon as i select the check box.here's when the program looks like:

View 1 Replies

Create A Group Of Radio Buttons?

Jul 23, 2009

How do i create a group of Radio Buttons? so they all act as one group and i'll be able to get the selected value of the group and not by checking them one by one.

View 14 Replies

Get 2 Group Boxes With Radio Buttons

Feb 24, 2010

I am trying to get 2 group boxes with radio buttons. I would like to check a radio button in group box 1 and have a corresponding radio button in group set 2 get automatically checked based on what I check in group box1. I am trying to do this in VB.

View 4 Replies

Group Radio Buttons Across Different Panels?

Feb 29, 2012

So I have 2 panels and the same number of radio buttons added programatically in each panel. For ex.

RB1 -> Panel1
RB2 -> Panel1
RBo1 -> Panel2
RBo2 -> Panel2

I want to group RB1 and RBo1 and RB2 and RBo2, but when I add the radio buttons to the different panels they group each other. I tried adding RB1 and RBo2 to the same GroupBox but could not achieve the goal either. Is it possible to manually link the radio buttons?

View 1 Replies

A Single Event For A Group Of Radio Buttons?

Jul 4, 2010

I would like to have a single subroutine to service a group of radio buttons. I am interested in .CheckedChanged event. Right now, if I bunch them all into one routine, it gets called twice. One for the button that is checked and one for the button that is unchecked.

View 2 Replies

Radio Buttons And Group Boxes VS10?

Mar 28, 2011

I am having trouble coming up with a way to add a selected radio button in a selected group box together.I have 3 group boxes each accessed by a checkbox within each group box there is 3 to 4 radio buttons. I would like to know how to add the selected radio buttons in each group box together and display them in a textbox by clicking a button "calculate". I believe I would have to make a global variable but I dont know where to start.

Private Sub Calculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Calculatebtn.Click
Dim answer As String

[code]....

I know this code is wrong but I was just trying to remember the calculate function.Is there a command that uses the selected radio button from the group boxes then I would be able to input that into my calculate button sub?

View 7 Replies

Set A Verification That Something Is Checked In A Set Of Radio Buttons Within A Group Box?

May 11, 2009

How can I set a verification that something is checked in a set of radio buttons within a group box? So... groupbox1 has rad1, rad2, rad3. I want to verify that at least one of them is checked. I was going to do a select case, but I can't figure the syntax for the cases... Visual Studio 2008, btw

View 12 Replies

Switch Between Radio Buttons And Group Boxes

Jun 21, 2012

I understand because it has to be ON/OFF it won't go through to any other radio buttons in the group box. Would the best way is to use a hidden radio button that would switch control between the two? There's only two radio buttons i need to tab through, what's the best way to tackle this?

View 7 Replies

VS10 - Event For Radio Buttons In Group Box?

Jan 17, 2012

I am attempting to make the transition from VB6 to .net

I have a group box with 6 radio buttons. I want to perform a function when 1 of those buttons are clicked.

In VB6, I would have set up a control array and ran the routine when the array was clicked....but I am struggling with .net here, since there appears to not be control arrays at design time.

Is there 1 even I can use, or do I have to go into each radio button and code the individual event?

View 6 Replies

While Loop To Go Through Different Group Boxes With Radio Buttons

Nov 15, 2011

I am trying to write a program that will have different group boxes,

each representing a question, and each one has radio button choices

I am trying to write the program so that a while loop will go through each group box and check answers of radio button choices

the codes I want to know is the command to access different group boxes

and also how to keep each group box "seperate" enough that i can use same radio button names for all the group boxes...

View 3 Replies

Make A Form Read Only Until A Certain Button Is Clicked?

Nov 17, 2011

I also need to know how to make the same button create a folder to save a txt file in. I havnt yet figured out how to save changes made into my program, that way next time i open it, i can continue where i left off.

View 4 Replies

Make Button Read Code Sectors If Radiobutton Is Selected

Jun 9, 2011

I have my program all programmed but, i want to have only one button! How can i make it so if the radio button is selected it will do a certain sector of the code when the the actual button is pressed iv had a good attempt at if - A fail attempt but heres what i did

[Code]...

View 4 Replies

.NET Invoke Button And Radio Button Automatically Without Using Keyb?

Dec 21, 2010

In my project I would like to call an exe so that exe pop up will come with a Login Screen with 2 buttons Login and Cancel.In those 2 buttons, login button is focussed default. Now my application should invoke the Login button automatically. Means there won't be Pressing ENTER KEY or Mouse Button Etc. Just after the Login Screen, there is a 2nd Screen that has 5 different Radio buttons, the 1st Radio button is always the default. So I also want to click this radio button automatically without using the keyboard or the mouse. y intention is that, the application should do that automatically.

I have tried with getting the handle of the focused Button by GetFocus method and tried to send that handle to the application by SendMessage and PostMessage. But it's not working.So can any body give some suggestion regarding this?

View 2 Replies

Radio Button Working With Button.click?

Oct 20, 2010

User will use a button1.click to open a filedialog to locate the file they needed. after which, the name of the file will appear on a textbox. Button2 is an OK button to write the filename into a txt file. Button2.click will work with the 3 radio buttons - meaning when Radio Button 1 is true and Button2.click is clicked, the filename will be saved asFile1.txt.if Radio Button 2 is true and Button2.click is clicked, the filename will be saved as File2.txt. Likewise to Radio Button 3

View 1 Replies

Saving Radio Button And Combo Button?

Nov 29, 2011

I am using WPF in VB. My window contains radio buttons and combo boxes. I am wondering how can I save those in textfiles?

View 2 Replies

Check A Radio Button1 Then Check Another Radio Button?

May 2, 2012

[code]......

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved