G
Guest
Using VS.Net 2003 (VB.Net)
WinForm App....
Problem:
I have a form (lets call it Form1)
On Form1 (amongst other things) is a button (btnOne) and an text box
(txtBox).
.....Click on button... Shows another form (lets call it Form2)...
.....All OK so far...
......Close Form2
...Back to Form1...btnOne has focus... All Ok so far...
...Select txtBox... btnOne appears to lose focus (lost focus event fires)
... txtBox appears to gain focus (gotFocus event fires)...
.... type something in txtBox Press <CR>
.... Form2 Shows (onLoad event Fires)
... Problem .... This is not the desired result...
.... Close Form2
.... btnOne has focus
.... Select txtBox ... btnOne loses focus...text box has focus
.... Type something in txtBox ... Press <<CR>
.... This time every thing works as it should and txtBox reacts to the <CR>
keypress...
Question: Why does btnOne appear not to lose focus the first time.
And.. Yes... If I select btnOne and select Form2 again then everything
starts over....
What have I done??
Any help appreciated...
Regards...
WinForm App....
Problem:
I have a form (lets call it Form1)
On Form1 (amongst other things) is a button (btnOne) and an text box
(txtBox).
.....Click on button... Shows another form (lets call it Form2)...
.....All OK so far...
......Close Form2
...Back to Form1...btnOne has focus... All Ok so far...
...Select txtBox... btnOne appears to lose focus (lost focus event fires)
... txtBox appears to gain focus (gotFocus event fires)...
.... type something in txtBox Press <CR>
.... Form2 Shows (onLoad event Fires)
... Problem .... This is not the desired result...
.... Close Form2
.... btnOne has focus
.... Select txtBox ... btnOne loses focus...text box has focus
.... Type something in txtBox ... Press <<CR>
.... This time every thing works as it should and txtBox reacts to the <CR>
keypress...
Question: Why does btnOne appear not to lose focus the first time.
And.. Yes... If I select btnOne and select Form2 again then everything
starts over....
What have I done??
Any help appreciated...
Regards...