how to save the users radio buttons choices to load into a file. I have a button which controls the If statements to determine the price of the configuration. I was wanting to save these choices that the user made. I thought I could do this by altering the If statements but I don't know if thats the right way. I've got 3 different groupboxes with 3 options in each.
Heres a part of the code for the IF statements:
Private Sub UpdateConfig_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UpdateConfig.Click If Choice1Option1.Checked = True And Choice2Option1.Checked = True And Choice3Option1.Checked = True Then PriceShow.Text = Prices(0, 1) TextBoxProcessor.Text = Choice1Option1.Text
I have a question here.. pls kindly advise.I need to design a simple form that allow user to choose the value from Listbox A to Listbox B. For example, in Listbox A, have value A, value B and value C, then user can choose (or highlight value B and value C) and copy into the listbox B.
May i know how can i do this in vb.net? Any reference link?
wondering if someone can help me some small issues I am having with building my first project.
1.I have comboboxes that allow users to enter their own choices in and then their choices are displayed into the gridview.
the problem I am having is this is allowing me to duplicate choices. for example:when I run debug to try my boxes, I can type in Johnathan into the combobox as many times as I want to and it adds is to the combobox list..so now I got 10 johnathans in my combo box.and then to make things worse, when I hit the button I made to send choices to display..it causes duplicated choices to show up in the display.What I figure is that it is easier for me to just prevent duplicates in combobox.
2.Lets say on one of 10 comboboxes I got...lets say someone skips the box and doesnt make a choice...my grid will then display the last choice made.. (man o man)for example:John chose in his boxes and is displayed on gridview: Combobox1 (john) Combo2 (5:00 PM) combo3 (waiting)now lets say I come up to the computer and in Combobox1(Dcurvez) Combo2( i skipped and didnt enter a choice) and Combobox3(In Progess)
The display will put Dcurvez....5:00 PM.....In Progress because I didnt make a choice in the time combobox..it put in the last choice (Johns) as 5:00 PM Can someone in very simple terms tell me how to fix this problem?? I am using visual studio 2008 and vb/vb.net as language this is not a webpage, btw. it is for in shop computer just.
I am attempting to output data from a list box with the possibility of multiple choices selected(frmPrint) and output the data froma another list box frmMain. The code posted does nothing. I can get this form to output everuthing but multiple items selected by the user. I am a student and I have been working on this problem for a long time with no luck.
Private Sub btnAddBooks_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddBooks.Click Dim intCount As Integer = 0 ' Counter Dim mainForm As New frmMain ' Form instance Dim strInput As String ' Input
In the form load I generate a radiobutton for each label, with the text property being the name of the label.So two radiobuttons are made The first one will have text: Label1 I have
Quote:
dim objStore as object
Example:I select the first radiobutton (text: Label1)Then Label1 should be stored in objStore as object.So then I can do
Is it possible to select an item in one listbox and then display the data of another listbox with the same indexed position? I am planning a project and this is something I would like to attempt but I haven't figured out how to do it.[code..]
I tried doing the above code but instead of displaying the listbox text the message box just returned false.
I have a question regarding the dataset usage in Reporting Services. I have a stored procedure which returns multiple select statements (result tables), and I created a Dataset in Reporting Services 2005 with this stored procedure. The problem is that I can not reference the second or third result table, and I can only use the first select statement fields. Is this the limitation on Reporting Services Dataset or is there a way to use multiple table results in one dataset?
I have a webbrowser control in VB 2010 Windows Form project that loads a webpage. This webpage contains select tags with a few options. I can select one option using:
Dim cboTemp1 As mshtml.HTMLSelectElement
[Code]....
But I need to be able to select more than one option (e.g. 1 and 6) in the select tag/element. Is that possible, the Select element has the multiple select option enabled..
I want to select to multiple sql tables using select query in vb.net..I have 2columns in sql table..I have tried this query.. But i'm getting error.
TextBox11.Text = Val(27) cmd = New SqlCommand("SELECT outside,power FROM vijay21 INNER JOIN vijay22 ON vijay21.outside=vijay22.outside WHERE outside BETWEEN " & Val(TextBox11.Text) & " AND " &
Is there a tool in the toolbox that i can use that replaces checkboxes. i have limited amount of space and checkboxes just keep taking up room. I need the user to select multiple objects like checking multiple checkboxes.
I have a multiple form application with a listbox on each form. I want to be able to select an item in one listbox on one form and then click a button and it show up in a listbox on another form.
I'm new to visual basic and I've put all forths of effort towards this program and I can't get it to work. I know one reason is I don't know how to add my choices to the first two list boxes.
Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim RegistrationFee As Integer Dim LodgingFee As Integer Dim Days As Integer
I have visual basic 2008 express. i am learning through videos at LearnVisualStudio.Net and the next step is to add item which is the sql database. i don't have this as one of my choices? am i suppose to have it with express? if not, can i get it somehow and add it to my Add Item list as one of my choices? I have the local and the server database but the video i'm following has an SQL database. Again i am just learning so be easy on me.
I have 2 comboboxes, textbox and a cmdbutton. When the user makes a selection in one combobox I want it to filter the choices in the second combobox. Then when the user clicks the button it passes the values from the comboboxes to a stored procedure and populates a datagridview. I am using VB.net 2005 and sql server 2005.
I have two combo boxes, and four buttons. When the user clicks "Add" on the first combo box, it adds a new item to the combo box with "New" and then lets the user rename that item to something else. That "new" item has to have an array of "answers" that go along with that item in the list. What I'm having trouble figuring out is assigning "answers" to the second combobox for each item in the first combobox and changing the second combobox when selecting an item in the first combobox.
We are looking to port our existing classic ASP application to .NET, but we're unsure of what language to use for the new app. I personally would 'prefer' C#, as I'm more familiar and comfortable with that languages way of doing things, but, the original code is VBScript, so it would possibly be easier to port to VB.NET ... One possible situation I fear would be that, because the code is so similar between the two variants of VB, that we might end up getting stuck on something that is not similar between the two, even though it looks like it would work. A shift to a wholly different language might avoid that kind of situation. Does anyone have any practical examples of this kind of situation? Insights to illuminate the issue with? Do the potential benefits of a complete paradigm shift outweigh the gains from a high degree of 'copy-and-paste-ability' ?
i'm trying to display a random messagebox that displays a message associated with a character. the character image displays and the user clicks a button to guess the character if it is correct, one of three messages should randomly appear that is associated with that character (there are 4 characters, so there are 12 possible messages total. 3 for each character) but as it stands now, the picture box on the form displays the character name so the user doesn't have to guess which button to push. i need to remove the name from beneath the picture so only the buttons have the name and the user is forced to guess and i don't have the messages randomly popping up. only a messabebox that says correct i added a message box in the code but i can't figure out how to randomly get the messages associated with the characters to appear?
Imports System.IO Public Class Form1 Dim currImageIndex As Integer = 0 Dim characterNames As String() = New String() {"Donny", "Jesus", "Lebowski", "Walter"}
I have a button, if I press the button, new picturebox will appear in my main form.How to add picturebox name in the listbox? how to select picturebox name from a listbox for deleting the selected picturebox?
Is it possible to always select the first item in a listbox?I prefer not to use listbox1.selectedindex = 0 or something like that because i have loads of listbox1.items.add etc. and that would just make the code bigger.so is there an option in a listbox or something..?
I have a listbox with items in it. And the top item is selected, how can I make it so when a button is clicked it goes to the next one in the list? I used this but UseClick(Listbox1.SelectedItem + 1) The selected item needs to be an string, and not an object.