E
eXtreme
I do the following:
1 - create a parent form called Options & put a listbox on the form lstURLs.
2 - create a child form called OptionsAdd
3 - in the parent form I create a line "Form dlgOptionsAdd = new
OptionsAdd(ref this.lstURLs);"
4 - in the the child form I modify "public OptionsAdd() {}" to be "public
OptionsAdd(ref ListBox lstURLs){}"
When I do this I'm only able to access the ListBox in the OptionsAdd method
of the OptionsAdd form.
How do I make the ListBox accessible to all the functions in the OptionsAdd
form?
Thanks,
1 - create a parent form called Options & put a listbox on the form lstURLs.
2 - create a child form called OptionsAdd
3 - in the parent form I create a line "Form dlgOptionsAdd = new
OptionsAdd(ref this.lstURLs);"
4 - in the the child form I modify "public OptionsAdd() {}" to be "public
OptionsAdd(ref ListBox lstURLs){}"
When I do this I'm only able to access the ListBox in the OptionsAdd method
of the OptionsAdd form.
How do I make the ListBox accessible to all the functions in the OptionsAdd
form?
Thanks,