70 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ITKnight

Hi all, I searching for how to make autocomplete in textbox. however there are list contain fruits name. "Apple" "Banana" "Pear" "Orange" When i type "Ap" in textbox, program will completed the text and highlight the fruit name in listbox. How i can do this. Thank you

Member Avatar for rewardlabel
0
2K
Member Avatar for nadiam

Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order. btn_addline : Private Sub btn_addline_Click(ByVal …

Member Avatar for nadiam
0
615
Member Avatar for joshl_1995

Hello Daniweb Community, I was wondering if there is a way to replace words from a listbox. So at the moment I've got a listbox with a couple of strings to be replaced in the textbox, however single line listbox items work but when I add a multi-lined item eg. …

Member Avatar for joshl_1995
0
331
Member Avatar for savedlema

Hi all! I have a form with a combobox, a listbox and 2 command buttons.(see photo and neglect the blank listview) I select items from the combobox and add items to my listbox after clicking the button.(no problem with this) Then, I need to save each item of the ListView …

Member Avatar for savedlema
0
3K
Member Avatar for Programmer592

Hi. I have a program that detects all the folders that are open and displays each one in a ListBox item. ![2014-12-25_15_49_20-DLAUBEFN_(Running)_-_Microsoft_Visual_Studio.png](/attachments/large/4/8dcefef15b7155ed7cc20f56c743d34f.png "align-center") What I want it to do is if a certain folder is closed, I want it to start a batch file and close itself. I know how …

Member Avatar for Programmer592
0
314
Member Avatar for mavtcr

Friends , Is there any way for data alignment in the list box. My code is given below Private Sub TxtFdt_KeyPress(KeyAscii As Integer) Dim L, L1, L2, L3, L4, L5 As Integer Select Case KeyAscii Case vbKeyReturn If TRS.State = adStateOpen Then TRS.Close TRS.Open "SELECT * FROM Tran WHERE Ac …

Member Avatar for Aslam Mansoor
0
1K
Member Avatar for waseem1345

I have a multiselection listbox. I want to see the last selected item (which the user just selected). I can't find any way to do this googling.. Thanks in advance.

Member Avatar for waseem1345
0
528
Member Avatar for Start4me

I need to make one statement to select either of the items in listbox and show the same label, regardless of which item is selected. I've tried someting like If Me.ListBox1.SelectedItem = "R115" Or "Bay, Charles" Then Label1.Text = "Address Information Avaliable" End If But it doesn't work. The code …

Member Avatar for Start4me
0
250
Member Avatar for Deep Modi

I am trying to add the History page in my application which will work like as i shown below: 1st Column: (Date); 2nd column: (Login Time); 3rd Column: (Logout Time) I added the following code: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load …

Member Avatar for Begginnerdev
0
295
Member Avatar for paul.rothenberger

I'm running a search query that pulls the search string from one textbox then searches a listbox for the string and displays the results in a second listbox. I would like to define the number of items that it returns based on a second text box. So far I am …

Member Avatar for paul.rothenberger
0
191
Member Avatar for Xakzi

Hello! I got a neaty tricky situation here.. I have a picturebox1 and listbox1 and a few items in listbox1. I got images in resources.resx (bmp) and want to load different images depending on what index is selected.. I wanted for it to be something like this.. Bitmap bmp = …

Member Avatar for Xakzi
0
2K
Member Avatar for nikki05

Hi, I read many articles about this, but I still couldn't manage to solve it. I want to select the item of a listbox with MouseEnter event. It should be something similar like this Private Sub LBox_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles LBox.MouseDown If e.Button = MouseButtons.Right Then Dim …

Member Avatar for nikki05
0
1K
Member Avatar for sanaQ

hey people. ok.. this is what i NEED to do.. Task > 1. User will add TODO list in the textbox shown in the GUI Windows Form. > 2. User will also select the date on which the task will be done. > 3. Once entered the above information, user …

Member Avatar for ddanbe
0
855
Member Avatar for o Chantelle o

Hi guys. I'm stuck. How can I use a custom color (rgb 25, 25, 25)(for example) as my fill rectangle color instead of the default blue? 'Private Sub ListBox10_DrawItem(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles ListBox10.DrawItem ' e.DrawBackground() ' If (e.State And DrawItemState.Selected) = DrawItemState.Selected Then ' e.Graphics.FillRectangle(Color.??, …

Member Avatar for o Chantelle o
0
2K
Member Avatar for taekiewzz

Form1 is a pop out windows from Form2. Form1 has a listbox1 with items and when I clicked the 'Continue' button in Form1, it will pass all the items in the listbox1 to listbox2 which is located in Form2. I would like to ask how the button_click in Form1 will …

Member Avatar for tinstaafl
0
2K
Member Avatar for SLMQC

Using Visual Basic 10, and I am trying to identify min/max statistics and display the results. My calculations are working, but the display is not (line 68 & 80). With the way the code is written now, I don't get the error but my results are displayed as "The minimum …

Member Avatar for SLMQC
0
407
Member Avatar for mlesniak

Hello. I have a listbox that I would like to display and I would like to set a default selected item, which I will not be able to determine until run-time. Is it possible to set a default item in the program code? I have looked at the Index property …

Member Avatar for mlesniak
0
163
Member Avatar for leyla

I was just wondering if there was any way to validate a listbox into only allowing a letter to be entered once, no matter the case. I am making a Hangman game and I only want the user to be able to enter a letter once, but I want the …

Member Avatar for leyla
0
681
Member Avatar for magord86

I'm trying to switch "M" to "Mr." and "F" to "Ms." when the last name is selected in the listbox. When I clicked on the first name it worked, but when I clicked on anyother name, I got this error message: --Additional information: Index was outside the bounds of the …

Member Avatar for magord86
0
280
Member Avatar for guilherme.carvalho.9250

Hello everyone, Im a beginner in vb.net and currently Im developing a program where i save date to a txt file like this Reminder#dinner#26-07-2012 19:52:00 and show it in a listbox(all the lines in the txt file). What i want to do is to select a line(item) in the listbox …

Member Avatar for guilherme.carvalho.9250
0
2K
Member Avatar for leyla

Hi, I have made a code where I write a recipe to a file and then I can read from the file and it is output in a listbox. I need to allow the user to change the amount of people served and then the quantities change to suit the …

0
112
Member Avatar for Joshua Kidd

Hello, I have a listbox in my program and I want the user to be able to remove all Listbox Items with the click of a button. I Figured this would work, [CODE]Listbox1.Text = ""[/CODE] But I Guess that doesn't work. Any Help would be awesome:)

Member Avatar for mhosny
0
252
Member Avatar for bilal_fazlani

[ICODE]listbx.Items.Add(New _ ListItem(BorderStyle.None.ToString(), BorderStyle.None)) listbx.Items.Add(New _ ListItem(BorderStyle.Double.ToString(), BorderStyle.Double)) listbx.Items.Add(New _ ListItem(BorderStyle.Solid.ToString(), BorderStyle.Solid))[/ICODE] can anyone please tell me how to do this in asp code.. in vb.net it adds the borderstyle as value... when i try that in asp.net it just adds string value. [ICODE]<asp:ListItem Text=Solid Value=Solid></asp:ListItem>[/ICODE] do I have to …

0
110
Member Avatar for razamughal67

Hello everybody please tell me How to select costum index in a list in vb6 i have a listbox & a command botton & textbox example: we add some items in a listbox list1.additem = "google.com" list1.additem = "Gmail.com" list1.additem = "myspace.com" list1.additem = "youtube.com" list1.additem = "facebook.com" list1.additem = …

Member Avatar for razamughal67
0
1K
Member Avatar for gozo12

[CODE] Dim wri As New IO.StreamWriter("e:\test.txt", True) wri.WriteLine(ListBox1.SelectedItem, true) wri.Close())[/CODE] etc in llistbox1 items , "1" "f1" "f2" when i click for example f1 that code will save it and when i want you save the same item it wit will save it in other line and in test.text file …

Member Avatar for codeorder
0
219
Member Avatar for ng5

I have a listbox and would like to save the items added/deleted when the form closes. any ideas?

Member Avatar for ng5
0
210
Member Avatar for ng5

I have a form with a text box and a form with a list box. I would like to be able to push a button on the form with the text box and have it be added to a list box. any help?

Member Avatar for ng5
0
205
Member Avatar for EkoX

Hi all, How i can split a sentences into words and add splitted words into listbox. Thank you. Best regards Eko

Member Avatar for EkoX
0
261
Member Avatar for honeybee2090

in application am using list box i load items from a text file i want to remove single items from list and want to keep duplicate items in listbox any help?

Member Avatar for honeybee2090
0
111
Member Avatar for markdean.expres

Guys I have this kind of problem where in I have a listbox and two buttons. Each of my button is labeled UP and DOWN. When I press UP, the current item in my listbox will be moved one level (or index) up and when I press DOWN button the …

Member Avatar for markdean.expres
0
3K

The End.