Hi,
I have a main form with buttons at the top and inside this form, I have a Panel control to host usercontrols. Within the usercontrol, I have a linklabel control that calls a form. What I want to do is keep the form on screen and prevent the user from clicking on the usercontrol on the main form unless the user clicks on the Cancel button.
How do I go about resolving this small problem.
Regards
Dipendra

How to keep a Form on screen without clicking on a usercontrol behind the form
Jezebel
Hello Dipendra,
If I understand the issue correctly it sounds like you simply need to open the form modal via Form.ShowDialog instead of just using Form.Show.
I hope this solves your problem :)
Christopher
Bigforky
object.SizeGripStyle = Windows.Forms.SizeGripStyle.Hide
marabu
Hi,
This is my code so far.
With
SearchForm.Show()
.ShowDialog()
End WithIf I click away from this form, the form stays minimised on the taskbar therefore I can still click on the linklabel on the main form. I just need this form to remain on screen until the user clicks on cancel. I guess I must be missing something.
Arachne53
How do you remove the sizing handle on the bottom right hand side of the form when using the ShowDialog method as I do not want this to appear.
Dipendra
TAG275
Sorry, I had to remove the Show method and simply have the ShowDialog method and this now solves the problem.
Thanks very much Christopher