I gather MATTER NUMBER and PATENT NUMBERS in a listbox on a dialog form - that I pass to the main form after the dialog closes.I then ask for CASES on subsequent dialog forms and want to have drop downs for MATTER NUMBER and PATENT NUMBERS that "have the suggestions" of what was entered in those list boxes earlier.So - I've been using DATASOURCE for binding to datatables and thought to myself - heh - I can probably set the DATASOURCE of the DROPDOWNS - and it works!
Public AddMatterNumber As ListBox Public AddPatentApp As ListBox MatterNumber.DataS
I have two tables "Person" and "Alias" in a one to many relationship. I have a DGV for "Person" and want to use a combobox for the Aliases. I also have a textbox and a button for the user to type the alias name and click the button to add the alias name to the combobox and update the dataset. I keep getting the "Items collection cannot be modified when the DataSource property is set." Error. But if i use a DGV instead of a combobox for aliases, I have no errors and everything works fine. If I remove the datasource property for the combobox it will not get populated with the data already entered, so how, or can I, set it up where the combobox gets populated when the form loads and able to add items to the combobox????
I am using VB.NET (version 2008). I have two types of items populating in a listbox (checked listbox). For example: lets say one is type "A" and other is "Type B". Their names maybe same so if the user sees those items in listbox then he won;t be able to determine their type until he click on them and checks out its properties. I wanted that I add each item to listbox and colour them so that blue for example means type "A" is there and red means the other. So this way I will be able to know at a glance that how many item of what type is present. I guess it may not be possible to do that in a standard checkedlistbox. I am also using component factory's krypton controls which enhance the gui of an application. But I dunno if I can progress using that.
probs a simple answer but my mind is blank atm. I have this code to move all items from listbox3 to listbox1 but it wont move them unless i select 1, then it moves all items.
I have a program where I have to read employee payroll info from a text file and write to a list box using a loop and then add the total payroll for all employees. Everything works except the adding of payroll.
I have a single listbox that stores data from a saved .txt file. All of values are whole numbers and I'm trying to add together all the items in the listbox (the numbers) and then display them in a textbox. I have searched, and tried several things but each time I try to add them together, it states that my items are strings. How to sum listbox items and/or convert them out of strings?
How can I make listbox that contains items from some folder... For example: I have 10 .txt files in 1 folder. In my program when I click button "view" there is a listbox that contains names of that .txt files.
in a list box which is populated by the end user using this code
Dim lb1s As String = Form1.Folder.SelectedPath Dim di As New IO.DirectoryInfo(lb1s) Dim mydirInfoArray As IO.DirectoryInfo() = di.GetDirectories
[code]....
I have 3 text boxes i want to display the number of items in the list box which contain certain words,So for example in textbox1 i want it to display the total number of items in the list box which contain "(U) or [u] or [ntsc-u]" etc, this will be triggered via page load or a button which ever works best.
I have 3 columns, "Username", "Email","Password"and this is for a program I am making so people can sign up for my program and I will have a webpage to display the username email and passwords in a hidden input textbox. When the user loads the form it wll go to the website, get the text from the hidden textbox, and load it into a get all the emails and passwords and load them into a datagrid and under the appropriate columns. How do I add items to a column the same as I would with a listbox?
I am currently working on some tools and I am having some troubles adding new lines in a listbox.
vb.net For i = 0 To lstFiles.Items.Count - 1 Process.Start("C:UT2004Systemucc.exe", "compress " & lstFiles.Items.Item(i)) If IO.File.Exists(lstFiles.Items.Item(i) & ".uz2") Then
[Code].....
The meaning of this code is that if the file exists, it will add a new line called Success below the dragged fileline. If the file doesn't exist it will create a new line called Fail below the dragged fileline.
I have a simple application that take data of out a text file line by line and add to a listbox, and listbox display every single one. I want to display only 25 items at a time, such as every time I add a new item to listbox, it bumps off the oldest item displaying so the listbox only show 25 lines at a time. How do I accomplish this task?
i am in the middle of making a downloader. I almost have everything done, apart from this very simple thing to do which i cannot seem to figure out right.
I have a listbox thats full of about 300 items and i want all of those items to be copied over to a richtextbox. (one item per line with "www." in front of the item. does anyone know how to do this ? ive been searching around and trying for a while, but no luck
I have a listbox which gets populated by listing ftp directories, and when i list them, i have all items in listboxnow, i want toremove items that have extension different than .png .gif .bmp .jpg (or other image fromats)basically, i need to remove items that do not contain one of theese extensions in their name
I am making my own Anti-Virus and trying to get all the files but on that when it tries to scan it comes up with an error saying: Access to 'C:Documents and Settings' is Denied
im trying to write a queue window for an app... here is what i need to happen.on the form:4 listboxes that aren't visible to the user, 1 column each 1 listview with three columns: type, output file and status 7 buttons including: start, pause, abort, remove, open, save and clear when the user clicks start i want it to process all the items that are marked as ready in one of the listboxes, lstStatus.i was doing this with...
Dim count As Integer = lstStatus.Items.Count() Dim ready As String = "Ready" Dim i As Integer = 0 If count > 0 Then
[code].....
lstCommandLine is another one of the listboxes. i need to get the index of the lstStatus item that the loop is working on now which i will store in i. ill need to change the listview subitem from ready to complete and the lstStatus item from ready to complete as well. im guessing that would be in the same loop.
For example: test is a variable test = 1 How do I make that if test = 1 that a listbox fills with the items: red, blue, green, yellow? If test = 1 Then listbox1....
If strCustomerOrder = "A1#" Then decSubtotal = ANTACID_ONE mintQuantity += 1 ShoppingCartForm.lstShoppingCart.Items.Add(("A1" & vbTab & vbTab & "Alka-Seltzer Antacid" _ [Code] ..... I want my listbox to not display duplicate items. I just want it to update the quantity(Qty).
I need to know how to save listbox items into ArrayList And restoring these items back from Arraylist into Listbox I tried this code but it returns Null Error Exception
I have a listbox that gets populated with files paths based on search terms provided by the user. I want the user to be able to select multiple items on the listbox, and then be able to export the files listed to another folder. See the attached image for what I'm talking about.
The problem I'm having is that I don't know how to take the items selected and turn them into a string array. Everything else I can figure out, but this one has me stumped.
i have a button and a listbox. I would like to click the button and it will popup with a save file dialog and then save all items in the listbox to a .txt file.