URL's
-
I have a Program that displays a List in a textBox such as Items Items Items is there way that I can make the list in the textBox Click able so that it leads you to a Page depending on which item you click with out showing such as. http://Site/items http://Site/items ^_^ thanks for any help.
-
I have a Program that displays a List in a textBox such as Items Items Items is there way that I can make the list in the textBox Click able so that it leads you to a Page depending on which item you click with out showing such as. http://Site/items http://Site/items ^_^ thanks for any help.
Does it have to be a TextBox? This would be fairly trivial if you were using a listbox.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
-
Does it have to be a TextBox? This would be fairly trivial if you were using a listbox.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
ListBox would be Fine, still don't know how myself so help?
-
ListBox would be Fine, still don't know how myself so help?
Create a handler for the Click event, then check the SelectedItems.Item property to determine which item was clicked.
-
Create a handler for the Click event, then check the SelectedItems.Item property to determine which item was clicked.
ok I have all the Code but exactly how to create a Click Handler private void listBox1_Click(object sender, ??? e) { String item = listBox1.SelectedItem.ToString(); System.Diagnostics.Process.Start("http:site" + item); } what exactly should I have there?
-
ok I have all the Code but exactly how to create a Click Handler private void listBox1_Click(object sender, ??? e) { String item = listBox1.SelectedItem.ToString(); System.Diagnostics.Process.Start("http:site" + item); } what exactly should I have there?
The easiest way to create the click handler is the following: 1. Highlight the listbox control 2. In the properties window, choose the "events" view ( the little lightning bolt ) 3. Find the click event in the list of events 4. Double-click the click event in the list, and it will create a method stub for you to put your code into
-
The easiest way to create the click handler is the following: 1. Highlight the listbox control 2. In the properties window, choose the "events" view ( the little lightning bolt ) 3. Find the click event in the list of events 4. Double-click the click event in the list, and it will create a method stub for you to put your code into
yeah thanks I found that after manually figuring out how to :P ^_^ thanks for all the help.
-
The easiest way to create the click handler is the following: 1. Highlight the listbox control 2. In the properties window, choose the "events" view ( the little lightning bolt ) 3. Find the click event in the list of events 4. Double-click the click event in the list, and it will create a method stub for you to put your code into
now I have to ask once you set DataSource is there anyway to full release it? Additional information: Items collection cannot be modified when the DataSource property is set. Because the program has a reset feature and this is the error I get when trying to clear the data from the both the listBox and the original list
-
now I have to ask once you set DataSource is there anyway to full release it? Additional information: Items collection cannot be modified when the DataSource property is set. Because the program has a reset feature and this is the error I get when trying to clear the data from the both the listBox and the original list
Hmm. You're trying to delete an item from the listbox and not from the database?
-
Hmm. You're trying to delete an item from the listbox and not from the database?
never mind I used an unbound list ^_^ thanks for your time though.