I am trying to add text from a text box into a list box when the radio button unseperated list is selected. i can do this easily. howeve ri now wnat to put text into the list box from the text box when the sepereated by comma radio button is selected
I have radio button list in a gridview that needs to be bound to a column. If the value in a column is 0, the first radio button is selected, if 1, the other is selected. This is the code, some of it is partially removed because it is not necessary
I am using VB.NET and I can't compare the radio button lists selectedItem.Value to a string, it doesn't work...here is the code: (I have also tried selectedValue it does not work either)
Why won't it evaluate that rblOne.SelectedItem.Value = "No" !?!?!? I tried rblOne.SelectedValue, that doesn't work, AND I added .ToString to both, which did not help, I even tried it w/ "No".ToString...this doesn't make any sense.
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:
II am trying to create a toggle button that switches a list to a range and then back to a list if needed. I am able to get it to do both but when I add an item to the list, convert to a range and then convert back to a list it leaves off the last items I entered.I tried to work in a code to select all cells but I must not be putting it in the right place.This is what I have so far:
If I can generate a list of random integer with a click of the button and put the results in a list box using VB.Net but how do I randomly change several integer number generated by button 1 by clicking button 2? How I retain the results of button1 and change the results when clicking button2?I try before but the two button function code cannot relate to one another.
Suppose I have 2 radio buttons r1 and r2, both the radio buttons ask for your gender, you can be a man or woman. So what I want: if user checks r1 but then realizes that she is a woman, she then wants to check r2 so the control on r2 gets checked while r1 gets unchecked.
I've got a list view that opens items inside a folder and displays them. I want to know if there is a way to have the list view display the icons aswell, maybe using shell32 or an imagelist. Here's the
I have a combobox with a dropdownstyle of dropdownlist (style 2). When a user finishes making entries and clears the form, I want the display value of this to return to null. With an unrestricted combobox, I could just set .text="" and be good to go; that doesn't work with the ones that are restricted.
I am using MS Visual Studio 2005 and SQL Server 2000 to develop an application. I wish to make a list of radio buttons when I fetch a particular column from a table. for example, I fire a query that returns to me 10 types of candies, (yummy!). I want to show these candies as options on the form. I want to use Radio Buttons. Now the number of candies are not fixed, it can be any number (less than 15-20). So I wish to dynamically create this 'Array of Radio Buttons' on the form.
I have a form that is HTML, it involves a few string questions, a radio button, and a check box question. After the form is filled out, the info is then passed to an aspx page which sends out an email with the info. I am able to pass the string questions to the email, but am having trouble passing the radio button answer and the check box answers to the aspx and to then to the email. I have the code for the HTML set, I need help with the code for the ASPX page.(it is VB) Here is the code I have so far.
I'm curious if there is a "check all" kind of thing for a tablelayoutpanel? To explain, say I have TableLayoutPanel1 with 6 radio buttons and I'm doing an error check to make sure that at least one radio button has been selected during a click event. Do I have to do If / and with all 6 radio buttons? Or is there something like "If TableLayoutPanel1.checked(obviously not this) = false then".
I am creating an application and am very new to VB. I have 4 buttons on my form which is like my applications main menu. I would like that each of the buttons behaves in the following way when there is a mouse rollover: The Button back color is changed from the default to Red The Button text is changed to Blue, Bold, and increases in font size I would also like all the buttons to go back to their initial state when the mouse leaves.
Another thing, instead of me writing code for each of the buttons event handlers (Mouse Hovers, and Mouse Leaves) is there a way I can write this code once, maybe as a function and then always call it for any button that I create from here on so that any new buttons take on this behaviour.
This is what I have so far for the following scenario: I want to have it so that if a users clicks submit without checking a check box from one section it throws up a dialog box that makes the process loop and give them a chance to check a box. The process wont continue until at least one check box is checked. The same thing above goes for my radio buttons as well. Here's my code:
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.
I have a checkbox list containing the entries from my database. I also have a search bar at the top of the page. How can I search for a checkbox using the search bar. What I am doing now is not returning anything to screen, it just remains at the same screen. My checkbox list id is check1 and my search bar id is search. So on click of my search button I run the following code:
I am writing a program for a client that will allow them to disable and enable services. I have the services loading into a checkboxlist on a form. When the user clicks the "update" button I go through all items in the checkboxlist and see if they are checked or not. The code I have so far, and the code Im stuck with is:
I have a list with a boolean value as one of the properties. I need to check if every one of these is true. Now normally LINQ would give a nice clean answer here, but as I am using .NET 2.0 I can't use that.If there a nicer way to do this or am I going to have to do a for each loop and break out on finding a false?
Edit:Seems I could have been a bit clearer. I have an object in a list (eg List (Of MyObject)). There is a boolean property on this object called Processed.I need to check that all objects in the list are processed.So in LINQ I'd do:if (from o in list where o.processed = false select o).count = 0 then....