I am showing a form with Form.Show and I write a few lines to a textbox on the form with TextBox.AppendText.
While I write the text I am performing a couple small functions on my main form, then I update the textbox. Kind of like a verbose progress dialog.
When the process is done I try to give the textbox focus by using Form.Focus then TextBox.Focus. But the form does not get focus, I can tell this because the toolbar icon for the form does not become depressed (as it would if it had focus.)
So, what am I doing wrong. I assumed the Focus method would give the form focus. That's a pretty safe assumption. So, what is the method that does actually give the form focus.


Reply With Quote
