.net - Group RadioButtons Without A GroupBox In .NET?
Aug 26, 2010I want to group RadioButtons, but I don't want to use the visible control GroupBox. Is there something like the Java ButtonGroup in VB.NET?
View 3 RepliesI want to group RadioButtons, but I don't want to use the visible control GroupBox. Is there something like the Java ButtonGroup in VB.NET?
View 3 RepliesIs there any way to use RadioButtons without any GroupBox or Panel or anything else?
View 39 RepliesHere using VB .Net 2008. I seem to be having trouble getting group boxes to appear when I click a radio button.
For example:
CODE:
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:
CODE:
The second groupbox does not appear and is directly behind the first groupbox. The Top code doesn't seem to be working either.
1) My program has 3 groupboxes each consisting 3 radiobuttons. Based on what is checked in the first box, and then what the user chooses in the second box, I either need to hide the 3 box and choose one option, or keep it showing for the user to select an option. The hiding is because based on the previous choices, there is only one option for the user in the 3rd box, and so I don't want to confuse the user nor waste their time. So I when the user selects radiobutton1, I need to hide groupbox3 and select radiobutton2.This is what I have previously attempted and it didn't work.
[code]...
How can I select the radiobutton using code like shown above?2) My second question is regarding scanning strings. I have 2 output strings. They either print a device or a message saying why the user doesn't get an output. At the end of the code, I need to scan through the strings until I get to a space and then store that as a string. How does one go about doing this?
i have a sort of problem when i try to add some linklabels in my groupbox. I used this
Me.Controls.Add(Groupbox3)
Groupbox3.Controls.Add(FlowLayoutPanel)
I can only add 4 linklabels no matter how big is the groupbox, i tried autoscroll but nothing. How can i do to store minimum 20 linklabels in a groupbox? Here is the whole code i used:
Imports System.Net
Imports DevComponents.DotNetBar.Controls
Imports System.Windows.Forms[code]....
Is there any way, maybe with a specific reference to put a control that records what plays wmp activex and to save somewhere on your computer?
I'm trying to match up a specific group name and see if it exists for the currently logged in user using Active Directory roles. If the Group Name exists for the Current User, I want that group name to be displayed in a drop down list. Example: If current user is in BIG Group, display BIG in drop down list.Problem: All I am getting is SIDs and I'm not able to get anything to match up to the group name and nothing will show up in the drop down list.I also get the following Error:Error: Object variable or WIth block variable not set.How do I fix this?? here is the code I am using:
Private Sub GetMarketingCompanies()
' code to populate marketing company drop down list based on the current logged in users active directory group that
[code].....
Enumerate if an Active Directory group's member is user or another group
View 1 RepliesHandling multiple radiobuttons, only one should be selected in group
View 2 RepliesIm trying to use a CheckboxList Control to Store Yes and No and i noted there its a property on the control
"Selection Mode" One/MultiSelect/MultiSelect Extended
i set One expecting it to allow only one item being select at the same time but it doesnt work as expected, my question is there its another property to achieve this without having to code the event?.
i could do it by coding the event but, im tired of coding stuff that really isnt needed, since there are routines for that on VB.NET.
I have yet another question. I have set up a series of radioButtons to create a menu of choice for a class project and am trying to set it up so that there would hypothetically be a discount on a purchase of two or more t-shirts, I have the coding set up so that if any one item is checked and the calculate button is clicked, then the dollar value or "total" will show up, however I am not able to set up a total for more that one item, it clears the previous "total" and sets up a new total for the most recent t-shirt value checked.
[Code]...
How do I get all the radiobuttons to be unchecked when program is run? Right now there is always one button that is checked. Using VB2008. [URL]
View 9 Repliesit's about a program mode, i want to hide all except one tabpages if i check the "standard"-radio button.
When i check "advanced" the tabpages should be visible again.
"standard" is radiobutton1, "advanced" is radiobutton 2
My assignment is to get the Get Monthly Income (Num1)Get Monthly Home Rent/Mortgage (Num2) Get Other Monthly Payments (alimony, child support, student loans) (Num3) Display Allowable Monthly Car Payment Display Maximum Car Value (interest rate based on credit) (answer) Public Class Form1
[Code]...
I have a panel on my GUI with radio buttons. When I run the code to determine which is the checked radio button from that panel, the code runs fine, but the panel disappears from the GUI after that. Here is the code I have to determine the checked radio button:
Dim rbName = (From r As RadioButton In Panel1.Controls.OfType(Of RadioButton)() Where r.Checked Select r.Name)
System.Console.WriteLine(rbName.First)
I have tried using:
Panel1.Visible = True
and also
Panel1.Show()
Panel1.Refresh()
but it doesn't show the panel again. I tried the same thing for individual radio buttons such as RadioButton1.Visible = True and it doesn't work.
I'm making a questback in Windows forms (VB). I've succesfully setup the MySQL-database, and made connection with everything needed. I've also manage to populate a DataTable called tblAlt for the alternatives for the question.Then I try to populate each radiobutton with rows from the DataTable.Here's what I tried:
For Each row In tblAlt.Rows
If tblAlt.Rows.IndexOf(row) = 0 Thenof the table).
[code]....
How do you pass one radiobutton from form 2 to form 3? Iv tried:
Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Form2.rbtnPatterned.Checked = True Then
rbtnPatterned.Show()
End If
But that doesn't work. The radiobutton selected in form 1 doesn't appear in form 2....
Is it possible to use CheckBoxes to act as RadioButtons for Yes or No options?
View 6 RepliesI am writing an application and I do not know how to reference a group of controls inside a group box. I will include the code I have written so far and a picture with a detailed explanation as to what I am trying to do. Feel free to comment on any discrepancies that you may notice in my code.
Code:
Public Class Form1
' The following class-level constants are used
' to calculate the price of the model
Const decCOUPE As Decimal = 18000
[code].....
I want to remove a group (include all items in this group) in ListView, but unsuccessful, the code is below, why?
ListView1.Groups("GroupName").Items.Clear()
ListView1.Groups.Remove(ListView1.Groups("GroupName"))
anyone have some quick code on how to do this?
wmi is not a option.
I'm making a basic game in Visual Basic, and I have a form called "Level1". In Level1, you press a button, and it pops up a dialog (I made the dialog, which is just called "Dialog"). The dialog has an empty label because once you press a button in Level1, in the click event, the label text is set, along with the RadioButton text. The Label is a question such as "What is 10 x 10?" and the RadioButtons display possible answers. Below the RadioButtons, is a Submit button that the user clicks once a RadioButton is selected. The thing is, I only have one dialog box because the game has 5 levels and 9 buttons per level, so I don't want to make 45 separate dialog boxes. Is there a way I can make the Submit button click event in the click event of the first button in Level1?
Private Sub q1Btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles q1Btn.Click
Reset() 'Setting text for label and radiobuttons to ""
'Setting text for label and radiobuttons
[code]....
I wanted to have one choice enabled to the user(radio box) in two Groupboxes, is that possible? Is looping the why i should do it?
Public Class Form1
Inherits System.Windows.Forms.Form
Dim version As String
[code]....
I have developed a simple form with some checkboxes, textboxes, radiobuttons, and textboxes inside a groupbox. Initially I had all of this inside 3 tabs. I created a button to clear all selections so user can restart the process of selection if so choses. It does not work (see below). I thought it is the tabs - so I went on and removed them (by coping the groupbox - deleting the tabs and then pasting the groubox into the main form). The code still does not work. Is there a setting that I must change or something else because a created a simple form with a couple of groupboxes that had all the above mentioned and it works just fine - all of them clear. Just in my form it does not work
View 6 RepliesI need to display a listbox, but i want to select only one item using radiobuttons. I was looking for info about checkedlistbox, and found some routines that deleselect one item if i check another, but i think is wrong the use of checkboxes (designed to multiple selections) to select one value. Radiobuttons are more suitable for this task, but i dont know how to put the radiobuttons inside a listbox (items are variable, i retrieve that list of items from a database, and populate in run-time).
View 3 RepliesHow can I retrieve data from a DB in Access to labels, or radiobuttons in VB.NET?
I've search and to retrieve data people usually show Datagrids.
I just need to know how to navigate in records, by the number of their position (?) and to place that data in labels/textbox or anything like that.
This is what I have by now, just the conection to the DB (sorry is in spanish)
[code]...
I am trying to put together a simple form with prices assigned to Radio buttons and check boxes.
I started by creating a simple form with four Windows Form control, two check boxes and two radio buttons, there is also a NumberUpDown Control for quantity but I have not added that yet.
Basically the user make selections, the price is calculated with total and subtotal and displayed on a label.
I am trying to start as basic as possible then work my way up to more complex calculations as I progress.
Here is my Screw up version: :)
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code]....
Guys I'm trying to dynamically create panels which are filled with seven radio buttons each. I get the panels but they are only filled with 1 radio button each. What am I doing wrong here? QuestionQuantity is an Integer and is the variable that determines how many panels I will be creating. The code is in the form load function located.
[Code]....
I have a WinForms dialog box that contains 3 radio buttons. I am using ApplicationSettings to bind the Checked property of each of these RadioButton controls, but it doesn't do what I am expecting it to do. Now I have to click each radio button twice before it gets checked and the selected radio button is not being persisted.Is there a line of code I need to execute when the form is closed that saves the user settings?How do I eliminate the need for 2x clicking on the radio buttons?Is there a better way to persist this type of user setting? I do have a public property on the dialog box class that gets/sets an enum value based on which radio button is checked, but I didn't see an easy way of binding that property to a user setting. Should have specified that I'm using vb.net. I think that means My.Settings instead of Properties.Settings.
View 4 RepliesI have created an application that has a webbrowser, two radioButtons, button1, and a menustrip.The menustrip has two main heading and under each heading are about 15 Tool Strip MenuItem. The ToolStripMenuItem properties are set to CheckonClick and an example of forum1. vb code for this section of the application is:[code]What I need is for the user to be able to add his/her own ToolStripMenueItems to those already present, along with the base url.So that clicking Button1 sends them to the base url And also have the Radio Buttons automatically add the extensions to the base url when the RadioButton is clicked.They need to be able to do this from the application itself.But I'm not sure how to code this in.They will not have VB to make modifications.
View 1 RepliesI have three radiobuttons in a groupbox. When they are not bound to application settings, they behave normally.After binding each of their checked properties to application settings, the following happens: I have to click an uncheckedradiobutton two times to have it checked. After the first click, all three are unchecked.
View 2 Replies