User Control -> disappear when form.Click

M

Mrozu

Hi,


i've got an inherited usercontrol with added DataGridView. I plant my
control on form and I want to hide datagridview when user click on
that form.

I've tried to use LostFocus and Leave. It works great, when focus is
set to other control on form, but not fired on form.Click.

Is there any solution?


Best regards,
Mrozu
 
M

Mrozu

Hi, thanks for quick answer.


i think that you don't understand me at all.


my control inherits LinkLabel. Then, i add to my control DatagridView,
and on Me.Click (click on label text) datagridview is appearing under
LinkLabel.
Then, when I click on row, it's getting data from column and hiding
datagrid. But I want to hide it also on form.click (just like for
example combobox is)

any suggestion now?:)



Mrozu
 

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