By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,776 Members | 1,302 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,776 IT Pros & Developers. It's quick & easy.

ListBox in user control

P: n/a
I have userControl and inside this control I have ListBox.
Now I would like to set the properties and bind with database this listBox
in my control anywhere on the pages, where I use my control.
How can I do that? How can I expose all methods and properties of this
listBox in user control?

Thank you,
Simon
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
expose the required methods and properties from your User Control and call
them in the place where you are using this user control.

Av.
"simon" <si*********@stud-moderna.si> wrote in message
news:uK**************@TK2MSFTNGP12.phx.gbl...
I have userControl and inside this control I have ListBox.
Now I would like to set the properties and bind with database this listBox
in my control anywhere on the pages, where I use my control.
How can I do that? How can I expose all methods and properties of this
listBox in user control?

Thank you,
Simon

Nov 18 '05 #2

P: n/a
Expose the listbox itself as a property of your user control, that should be
sufficient.

"avnrao" <av*@newsgroups.com> wrote in message
news:OX**************@TK2MSFTNGP12.phx.gbl...
expose the required methods and properties from your User Control and call
them in the place where you are using this user control.

Av.
"simon" <si*********@stud-moderna.si> wrote in message
news:uK**************@TK2MSFTNGP12.phx.gbl...
I have userControl and inside this control I have ListBox.
Now I would like to set the properties and bind with database this listBox in my control anywhere on the pages, where I use my control.
How can I do that? How can I expose all methods and properties of this
listBox in user control?

Thank you,
Simon


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.