Error select text with mouse, Forms within tabcontrol

Asked

Viewed 75 times

0

I found an elegant solution on how to work with MDI Tabbed Interface, I am creating at runtime a tabcontrol within my MDI form, and I am creating a new tab for each form. as described below !

form.TopLevel = false;
superTabControlPanel.Controls.Add(form);
form.Show();
form.BringToFront();

But I’ve been all over the internet and tried several posts and none really worked, the form is added correctly, however when trying to select some text inside a textbox using the mouse, just not right, I can only select text if I remove the borders of the form, and I didn’t want to do that, I thank you already !

  • Have you tried using form. Activate()?

  • opa, yes already tried and unfortunately also not helped anything, probably has to do with Toplevel = False, the solution I think would implement some API’s but I do not know which to use.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.