I have a windows form box that is supposed to just display a message. Unfortunately, whenever the box pops up, it has all the text selected.
I cannot figure out how to stop that. Any ideas?
I have a windows form box that is supposed to just display a message. Unfortunately, whenever the box pops up, it has all the text selected.
I cannot figure out how to stop that. Any ideas?
got a screen print and the code you call it with?
catch (Exception ex)
{
Message box = new Message(ex.Message, "Error");
box.Show();
}
Your window has "Roger that" at the bottom so Im guessing its a window you made yourself which has a memo field on it not a label?
Yeah. Custom window with a text box and a button. I used a text box so I can edit the contents. I use the window for error messages and for a "Comments" window in the app.
Make sure hideselection is true on the text box
it is.
Then something else is wrong with the settings on it, as it shouldnt do that by default.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.