Click here to Skip to main content
15,892,809 members
Home / Discussions / Visual Basic
   

Visual Basic

 
JokeRe: registering dll problem Pin
uktrips0079-Dec-05 0:42
uktrips0079-Dec-05 0:42 
GeneralRe: registering dll problem Pin
uktrips0079-Dec-05 2:24
uktrips0079-Dec-05 2:24 
AnswerRe: registering dll problem Pin
Gerben Jongerius9-Dec-05 7:22
Gerben Jongerius9-Dec-05 7:22 
GeneralRe: registering dll problem Pin
uktrips0079-Dec-05 18:59
uktrips0079-Dec-05 18:59 
QuestionAlternative of Debug.Print() in .Net Pin
kumar_Chandan7-Dec-05 19:35
kumar_Chandan7-Dec-05 19:35 
AnswerRe: Alternative of Debug.Print() in .Net Pin
Dave Kreskowiak8-Dec-05 4:24
mveDave Kreskowiak8-Dec-05 4:24 
Question[Message Deleted] Pin
kumar_Chandan7-Dec-05 19:25
kumar_Chandan7-Dec-05 19:25 
AnswerRe: ListBox in .Net Pin
Gerben Jongerius7-Dec-05 21:52
Gerben Jongerius7-Dec-05 21:52 
I am presuming that the adding is going correctly. If that is the case then you can simply use the property SelectedItem or SelectedIndex to select the item in the second listbox.

So an example is:
<br />
 lbBox2.Items.Add(lbBox1.SelectedItem)<br />
 lbBox2.SelectedItem = lbBox1.SelectedItem  // can be set and read<br />


Note that this only works if you put the reference of the first listbox in the second and not a copy.

Hope that this helps you a little bit.
QuestionExporting data to msword Pin
sreejaps7-Dec-05 19:22
sreejaps7-Dec-05 19:22 
AnswerRe: Exporting data to msword Pin
uktrips0077-Dec-05 22:00
uktrips0077-Dec-05 22:00 
GeneralRe: Exporting data to msword Pin
sreejaps7-Dec-05 23:06
sreejaps7-Dec-05 23:06 
QuestionSSTab Pin
Sasmi7-Dec-05 17:58
Sasmi7-Dec-05 17:58 
AnswerRe: SSTab Pin
Dave Kreskowiak8-Dec-05 4:18
mveDave Kreskowiak8-Dec-05 4:18 
QuestionThe InterfacePrg service terminated unexpectedly. It has done this 2 time(s). Pin
miceisland7-Dec-05 15:57
miceisland7-Dec-05 15:57 
QuestionReading Textfiles Pin
ADY0077-Dec-05 11:05
ADY0077-Dec-05 11:05 
AnswerRe: Reading Textfiles Pin
Curtis Schlak.7-Dec-05 11:08
Curtis Schlak.7-Dec-05 11:08 
GeneralRe: Reading Textfiles Pin
ADY0077-Dec-05 11:27
ADY0077-Dec-05 11:27 
GeneralRe: Reading Textfiles Pin
Steve Pullan7-Dec-05 12:22
Steve Pullan7-Dec-05 12:22 
GeneralRe: Reading Textfiles Pin
Curtis Schlak.7-Dec-05 12:26
Curtis Schlak.7-Dec-05 12:26 
QuestionAdding controls to a form programmatically Pin
Shoulder_Devil7-Dec-05 9:20
Shoulder_Devil7-Dec-05 9:20 
AnswerRe: Adding controls to a form programmatically Pin
Curtis Schlak.7-Dec-05 11:16
Curtis Schlak.7-Dec-05 11:16 
Questionfoxpro and VB connectivity Pin
madhuris057-Dec-05 8:54
madhuris057-Dec-05 8:54 
AnswerRe: foxpro and VB connectivity Pin
uktrips0077-Dec-05 22:09
uktrips0077-Dec-05 22:09 
QuestionLogevent Pin
r1nuts7-Dec-05 6:11
r1nuts7-Dec-05 6:11 
AnswerRe: Logevent Pin
progload7-Dec-05 7:10
progload7-Dec-05 7:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.