user control

H

Hrvoje Voda

I made a user control and put it onto main form.

On the control i have a button that should show another form with grid.

I don't know how, i want to show that form on the main form panel.

On witch properties main form should i call that function?

Hrcko
 
S

Stoitcho Goutsev \(100\)

Hrvoje Voda,

You need to expose some event on the level of the user control that fires
whenever the user clicks on the button, otherwise there is no way for the
form the handle to button click because it is private for the user control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top