![]() | |
#51
| |||
| |||
|
|
"Stefan Wuebbe" <stefan.wuebbe (AT) gmx (DOT) de> wrote: The problem that I have is that when these functions return, the focus goes back to the first form. gotfocus fires a second time. I do not want it to, or I want to avoid the save. In addition, anyButton.GotFocus() also runs when the user tabs thru the controls, doesn't it. I'd suggest not to use .GotFocus() at all in your scenario but rather put both parts into button.Click() (or .Valid()): If Thisform.SaveData() Thisform.ExternalXY() ... Arrgh! That makes perfect sense. I feel slightly ashamed that I did not think of it. It will be a bit awkward to implement considering the way that I currently have my classes set up, but it appears to be the way to go. Thank you. [snip] Sincerely, Gene Wirchenko Computerese Irregular Verb Conjugation: I have preferences. You have biases. He/She has prejudices. |
#52
| |||
| |||
|
|
"Stefan Wuebbe" <stefan.wuebbe (AT) gmx (DOT) de> wrote: The problem that I have is that when these functions return, the focus goes back to the first form. gotfocus fires a second time. I do not want it to, or I want to avoid the save. In addition, anyButton.GotFocus() also runs when the user tabs thru the controls, doesn't it. I'd suggest not to use .GotFocus() at all in your scenario but rather put both parts into button.Click() (or .Valid()): If Thisform.SaveData() Thisform.ExternalXY() ... Arrgh! That makes perfect sense. I feel slightly ashamed that I did not think of it. It will be a bit awkward to implement considering the way that I currently have my classes set up, but it appears to be the way to go. Thank you. [snip] Sincerely, Gene Wirchenko Computerese Irregular Verb Conjugation: I have preferences. You have biases. He/She has prejudices. |
#53
| |||
| |||
|
|
"Stefan Wuebbe" <stefan.wuebbe (AT) gmx (DOT) de> wrote: The problem that I have is that when these functions return, the focus goes back to the first form. gotfocus fires a second time. I do not want it to, or I want to avoid the save. In addition, anyButton.GotFocus() also runs when the user tabs thru the controls, doesn't it. I'd suggest not to use .GotFocus() at all in your scenario but rather put both parts into button.Click() (or .Valid()): If Thisform.SaveData() Thisform.ExternalXY() ... Arrgh! That makes perfect sense. I feel slightly ashamed that I did not think of it. It will be a bit awkward to implement considering the way that I currently have my classes set up, but it appears to be the way to go. Thank you. [snip] Sincerely, Gene Wirchenko Computerese Irregular Verb Conjugation: I have preferences. You have biases. He/She has prejudices. |
#54
| |||
| |||
|
|
"Stefan Wuebbe" <stefan.wuebbe (AT) gmx (DOT) de> wrote: The problem that I have is that when these functions return, the focus goes back to the first form. gotfocus fires a second time. I do not want it to, or I want to avoid the save. In addition, anyButton.GotFocus() also runs when the user tabs thru the controls, doesn't it. I'd suggest not to use .GotFocus() at all in your scenario but rather put both parts into button.Click() (or .Valid()): If Thisform.SaveData() Thisform.ExternalXY() ... Arrgh! That makes perfect sense. I feel slightly ashamed that I did not think of it. It will be a bit awkward to implement considering the way that I currently have my classes set up, but it appears to be the way to go. Thank you. [snip] Sincerely, Gene Wirchenko Computerese Irregular Verb Conjugation: I have preferences. You have biases. He/She has prejudices. |
#55
| |||
| |||
|
|
"Stefan Wuebbe" <stefan.wuebbe (AT) gmx (DOT) de> wrote: The problem that I have is that when these functions return, the focus goes back to the first form. gotfocus fires a second time. I do not want it to, or I want to avoid the save. In addition, anyButton.GotFocus() also runs when the user tabs thru the controls, doesn't it. I'd suggest not to use .GotFocus() at all in your scenario but rather put both parts into button.Click() (or .Valid()): If Thisform.SaveData() Thisform.ExternalXY() ... Arrgh! That makes perfect sense. I feel slightly ashamed that I did not think of it. It will be a bit awkward to implement considering the way that I currently have my classes set up, but it appears to be the way to go. Thank you. [snip] Sincerely, Gene Wirchenko Computerese Irregular Verb Conjugation: I have preferences. You have biases. He/She has prejudices. |
![]() |
| Thread Tools | |
| Display Modes | |
| |