From: Reboot327 on
I hope this is as simple as I think it is. I just can't figure it out.

Lets say I have three textboxes for a phone number maximum sizes are set for
3-3-4

What I want is when you enter the third char in the tbAreacode, it changes
the focus automaticlly to the tbPrefix, and after the third char is entered
it moves focus to the tbSubfix.

I have been looking in the event and I can not find an event that happens
when a textbox is full.(reached max char)

Also is there an (events window) that shows you what events are happen, when
you are debbugging??

Rob

From: Armin Zingler on
Reboot327 schrieb:
> I hope this is as simple as I think it is. I just can't figure it out.
>
> Lets say I have three textboxes for a phone number maximum sizes are set for
> 3-3-4
>
> What I want is when you enter the third char in the tbAreacode, it changes
> the focus automaticlly to the tbPrefix, and after the third char is entered
> it moves focus to the tbSubfix.
>
> I have been looking in the event and I can not find an event that happens
> when a textbox is full.(reached max char)

In the Textchanged event, check the length of the String. If maximum
length is reached, call the next' Textbox Focus method. Be aware that
the user may type new characters not at the end of the text or paste
from the clipboard, so maybe you also want to check the
SelectionStart/Selectionlength properties.

> Also is there an (events window) that shows you what events are happen, when
> you are debbugging??

I'm not sure what you mean.

--
Armin

From: Mike Williams on
"Alex Clark" <quanta(a)noemail.noemail> wrote in message
news:us53iz9MKHA.4964(a)TK2MSFTNGP06.phx.gbl...

> Handle the TextChanged event in tbAreaCode and check
> the length of it's text. If the length is 3, call tbPrefix.Focus.

The OP posted the same question both to the Classic VB group and to the
VB.Net group, making it quite clear that his question relates to VB.Net, and
yet you have ignored his post in the VB.Net group and instead posted your
response here in the Classic VB group.

The OP's post to the Classic VB group was a simple mistake, but your own
response to it in that same group was a deliberate act of annoyance. You are
a troll, Alex, and you are becoming a pain in the neck. But then of course
that it your purpose here, to infest the Classic VB newsgroup and to
deliberately disrupt it and annoy its members, so you will probably be very
pleased that it has had the desired effect.

I've copied this response to the dotnet newsgroup so the people there will
know what you are up to here. I really do wish Microsoft would police these
groups more thoroughly in order to get rid of deliberately destructive
idiots such as yourself.

Mike



From: Alex Clark on
"Mike Williams" <Mike(a)WhiskyAndCoke.com> wrote in message
news:uztINE%23MKHA.3284(a)TK2MSFTNGP06.phx.gbl...
> I really do wish Microsoft would police these groups more thoroughly

If they did, Mike, you and Kevin would be the first to get perma-banned. I
somehow doubt MS would take issue with me politely answering someone's
question, regardless of the group it was posted in.

Come to think of it, now that I know just how much it irks you that I'm
helping people in here, I think I'll continue to do so at every
opportunity...


From: Reboot327 on
Thank you very much ,that was the perfect jumping point that I needed.

What I was talking about when I mentioned the (event window) is: Are there
any ways to monitor the events that are called while running a program in
debug. Let say I am running the PHONENUM program, and I want a list of all
events that happen during the running of the program, stuff like mouseover,
got focus, lost focus, textchanged, and the like. That way I can get a
better feel of what is happening in the background.

Thanks
Rob

"Armin Zingler" <az.nospam(a)freenet.de> wrote in message
news:uS4HIm9MKHA.3284(a)TK2MSFTNGP06.phx.gbl...
> Reboot327 schrieb:
>> I hope this is as simple as I think it is. I just can't figure it out.
>>
>> Lets say I have three textboxes for a phone number maximum sizes are set
>> for
>> 3-3-4
>>
>> What I want is when you enter the third char in the tbAreacode, it
>> changes
>> the focus automaticlly to the tbPrefix, and after the third char is
>> entered
>> it moves focus to the tbSubfix.
>>
>> I have been looking in the event and I can not find an event that happens
>> when a textbox is full.(reached max char)
>
> In the Textchanged event, check the length of the String. If maximum
> length is reached, call the next' Textbox Focus method. Be aware that
> the user may type new characters not at the end of the text or paste
> from the clipboard, so maybe you also want to check the
> SelectionStart/Selectionlength properties.
>
>> Also is there an (events window) that shows you what events are happen,
>> when
>> you are debbugging??
>
> I'm not sure what you mean.
>
> --
> Armin
>

 |  Next  |  Last
Pages: 1 2
Prev: Sub definition
Next: Article Multiplier