|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Control with previous focusHi, I have a textbox on my form along with several other textbox, labels
and buttons. When the textbox of interest gets focus, how can I tell which control had focus prior to it receiving focus? Thanks. "Dale" <dale0***@hotmail.com> wrote in message You'd have to keep track of that yourself.news:%23QjTW3WZFHA.2420@TK2MSFTNGP12.phx.gbl > Hi, I have a textbox on my form along with several other textbox, > labels and buttons. When the textbox of interest gets focus, how can > I tell which control had focus prior to it receiving focus? Thanks. -- Reply to the group so all can participate VB.Net: "Fool me once..." Dale <dale0***@hotmail.com>'s wild thoughts were released on
Mon, 30 May 2005 16:18:42 -0700 bearing the following fruit: >Hi, I have a textbox on my form along with several other textbox, labels Just out of interest, why?>and buttons. When the textbox of interest gets focus, how can I tell >which control had focus prior to it receiving focus? Thanks. Jan Hyde (VB MVP) Hi Jan,
A customer wants some warning messages on a few spots on a data entry screen depending on the previously focussed control in some cases. Bob, I thought I'd have to check it myself. Thanks. Show quoteHide quote > Dale <dale0***@hotmail.com>'s wild thoughts were released on > Mon, 30 May 2005 16:18:42 -0700 bearing the following fruit: > > >>Hi, I have a textbox on my form along with several other textbox, labels >>and buttons. When the textbox of interest gets focus, how can I tell >>which control had focus prior to it receiving focus? Thanks. > > > Just out of interest, why? > > > > Jan Hyde (VB MVP) > "Dale" <dale0***@hotmail.com> wrote in message You *may* be able to use the LostFocus and/or Validate events of thenews:Ox5MOsfZFHA.2884@tk2msftngp13.phx.gbl > Hi Jan, > > A customer wants some warning messages on a few spots on a data entry > screen depending on the previously focussed control in some cases. "previously focused controls". Watch out for menus, toolbar buttons and 'default' command buttons as they are notorious for bypassing sch code. -- Reply to the group so all can participate VB.Net: "Fool me once..." Thanks Bob. I was thinking of the LostFocus too, and I'll keep your
tips in mind. Show quoteHide quote > "Dale" <dale0***@hotmail.com> wrote in message > news:Ox5MOsfZFHA.2884@tk2msftngp13.phx.gbl > >>Hi Jan, >> >>A customer wants some warning messages on a few spots on a data entry >>screen depending on the previously focussed control in some cases. > > > You *may* be able to use the LostFocus and/or Validate events of the > "previously focused controls". Watch out for menus, toolbar buttons and > 'default' command buttons as they are notorious for bypassing sch code. >
Using "Include" Approach for Repetitive Code...
VBclassic petition Draw line on picture; change width determining a rising\falling trend Class_Terminate problem & Run-time error'424': Object required Search box at bottom of screen loop Duplicate forms Working application - Now generates error help with passing values from an aspx page? |
|||||||||||||||||||||||