string value to new form instance?
- From: "Paul" <paulatuceless.aten.ie>
- Date: Wed, 12 Apr 2006 20:10:42 +0100
Hi,
Suppose you had a listbox1 with 3 items;
Form1
Form2
Form3
Now add an event handler for listbox1.selectedindexchanged in which you wish
to create a new form instance depending on the value of the
SelectedItem.ToString value. i.e. If "Form3" is clicked then a new instance
of Form3 is created.
Assuming your project contains a windows form called "Form3" - how is this
achieved?
Thanks in advance,
Paul
.
- Follow-Ups:
- Re: string value to new form instance?
- From: Chris
- Re: string value to new form instance?
- From: BK
- Re: string value to new form instance?
- Prev by Date: Re: getting application version...
- Next by Date: Re: getting application version...
- Previous by thread: How do I determine if a control has a specific property
- Next by thread: Re: string value to new form instance?
- Index(es):