Questions tagged as 'listbox'

2
answers

How to show 2 rows in ListBox

It's a simple question, but I researched and could not find something specific to my case. The code below corresponds to searching for data in a table, but when there is more than 1 corresponding value, it replaces the last found value. What I w...
asked by 17.10.2018 / 21:06
3
answers

ListBox - how to show full product name and bring another column of values

I have this ListBox . Whenloadeditusesatxtfilethus: CodetoloadListBox:privatevoidfrmOrdemServico_Load(objectsender,EventArgse){string[]d=File.ReadAllLines(@"C:\Users\willian\Downloads\dbProdutos.txt"); foreach (var line in d)...
asked by 27.10.2017 / 15:06
2
answers

How to clean ListBox

How to clean a ListBox ? I made these forms but they did not work: private void LimparListBox() { //lbxResumo.Text = ""; lbxResumo.ClearSelected(); } private void btnLimparList_Click(object sender, EventArgs e) { LimparLi...
asked by 08.11.2017 / 16:51
2
answers

USERFORM: I can not remove items from my ListBox (Error 80004005)

I have a ListBox in a UserForm that "rebuilds" based on a TextBox that I use as a filter. The idea is to bring all the items to the list with RowSource and remove all items that do not contain text from the TextBox. However, when testing the sys...
asked by 11.04.2017 / 21:43
1
answer

How to add content to the Excel VBA ListBox

Hello, I have a question in a code for Excel VBA. I want the code to search the worksheet for the same number that was typed in TextBox , after finding it, sends the information from the entire spreadsheet to ListBox . Since the code...
asked by 15.07.2018 / 03:37
1
answer

Count the number of selected items in a ListBox

I have a ListBox1 list in a userform configured for multiple item selection. Is there a function, statement or way to return the number of selected items?     
asked by 27.04.2017 / 20:21
1
answer

ListBox - Multiply values and move to another Listbox

I have 2 ListBoxes. When I pass a value to the other ListBox a screen opens to enter the amount I want from that product. That said, will get the amount * value and show in the other ListBox. CodethatloadsthelistBox:privatevoidfrmOrdem...
asked by 27.10.2017 / 18:34
2
answers

Excel VBA delete item from ListBox

I'm having trouble deleting an item from a listbox . The code works like this: it will have listbox with the list, and when the user wants to delete an item, it clicks a button that opens another userform , in that userform...
asked by 03.05.2017 / 16:30
1
answer

Auto complete when typing any part of the word

How can I autocomplete text by typing any part of an information within the ListBox using VBA? Example: When you type in "Santos" all options containing this word will be listed / displayed in the listbox.     
asked by 10.05.2017 / 14:55
1
answer

Error 381 listbox.list VBA

Hello! Basically I need to add the values from the listbox, but my program is displaying the following error. Run-time error '381': The List property could not be obtained. Invalid property array index. Private Sub TextBox1_AfterUpdate() D...
asked by 08.09.2018 / 00:55