S
Shane Mergy
Ok I have a program which brings up one form with
mulitple buttons and depending on the button it then
opens a new form... first if at the code of the buttons
click i had Form frmTrans = new Transfer();<---name of
the form class.. and after that line i had
frmTrans.ShowDialog(); well the problem with this was
that the start menu flickered while creating the new form
so i moved the Form frmTrans to a seperate class and made
it a global varible. the problem now is that on the
frmtrans it has a couple text boxes and when you first
show it I want to set the focus to the first of the two
text boxes and I have txtFrom.Focus(); in the forms load
event and I have stepped through the code and it does run
over that line but after the form is displayed the focus
is not set any ideas??? I also tryed to move that
txtFrom.focus() to the gotfocus() and the activated()
proceedures of the form and still no go
mulitple buttons and depending on the button it then
opens a new form... first if at the code of the buttons
click i had Form frmTrans = new Transfer();<---name of
the form class.. and after that line i had
frmTrans.ShowDialog(); well the problem with this was
that the start menu flickered while creating the new form
so i moved the Form frmTrans to a seperate class and made
it a global varible. the problem now is that on the
frmtrans it has a couple text boxes and when you first
show it I want to set the focus to the first of the two
text boxes and I have txtFrom.Focus(); in the forms load
event and I have stepped through the code and it does run
over that line but after the form is displayed the focus
is not set any ideas??? I also tryed to move that
txtFrom.focus() to the gotfocus() and the activated()
proceedures of the form and still no go