User Control -> disappear when form.Click

  • Thread starter Thread starter Mrozu
  • Start date Start date
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
 
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
 
Back
Top