How can 'Instance' be best explained in Visual Basic
roger6897
Posts
-
Instance -
Attach FileFrom the menustrip on the help tab, I would like to link a work document to explain or give a user guide to the application
-
Object and ArrayA class was created, and objects added to a listbox to form an arraylist. Ojects were added to arraylist as in Dim item As items For Each item In form1.Arraylistlist Me.Listbox1.Items.Add(item) Next How can I delete an object from the arraylist when displayed in Listbox1?
-
Data Share:( I am building an application using two forms. On form1 I have a list box, and two text boxes, one for a string and the other for an integer. Form2 has two text boxes and a button. When the button is clicked, I would like the data (string and integer) diplayed in the textboxes on form2 to be displayed in the listbox on form1.Also when the item is selected in the listbox, I would like the string and integer to be displayed in the relevant textboxes on form1. Please help.. :(
-
ButtonsWhen a form loads, a button is disabled. How can I get the button enabled after selecting an item in a combo box?
-
Buttons:sigh: When a form loads, a button is disabled. How can I get the button enabled after selecting an item in a combo box?
-
Combo BoxHow do I restrict a user from only selecting the items in the collection?
-
IndexDim index As Integer index = listbox1.SelectedIndex listbox1.Items.RemoveAt(index) The above code is used to remove the seleceted item from a listbox. However the program crashes when the button is clicked and no item is selected. How can I correct??
-
ButtonsI have a button that when clicked the total of set of figures in a listbox is displayed in a textbox. How can I disable that button so that if there is nothing in the listbox and it is clicked, my program does not crash, and it is enabled again when there are contents in the listbox.
-
Array, IterationA list of numbers is input in a list box, say (4.8,6.9,8.0,3.2). The sum of these numbers are displayed in a textbox using: For Index As Integer = 0 To lstbox1.Items.Count - 1 Total += CDbl(lstbox1.Items(Index)) Next Index When one of those numbers are removed from the listbox, the total is accumulated , that is the new total is added to the old one. How can I correct this so that the total given is always, the total of the numbers in the listbox.
-
List BoxI am not familiar with the ListView control, would you be able to clarify or help with the listbox control
-
List BoxI have the following displayed in textboxes: Price: 1.8 Quantity: 6 , and the item (pencil) relating to the purchase in a combolistbox How do i get this three bits of information in one line of a listbox: e.g 6 pencils $1.80
-
LISTBoxDon't understand the response can you please give an example Thanks :confused:
-
LISTBoxI am building a cash register with one textbox showing the item, another the price and another the quantity of that item being purchased. How can I get a line in a listbox to show the price, quantity and item purchased? Also, with another list box just containing the totals of each item purchased, how can I get a grand total with 2 decimal places? Thank you :confused: