Home All Groups Group Topic Archive Search About

vb.2003 Formatting Text Boxes

Author
12 Oct 2006 2:38 PM
Peter Newman
Firstly i would like to tank the helpful posts in the past regarding
formatting...

the scenario is that i ahve a form created by the data wizard.  I have
created a private sub to handle the validating for TextBoxes ,, and it works
like a dream,  however  im still stuck as to doung the same when the form
loads. 

Data in the table  = 0.00
When the form lloads the data in the text boxes = 0

using     Private Sub Handles_Validating(ByVal source As Object, ByVal e As
EventArgs) HANDLES (  textbox1.validated  ... etc  _

i can do formatting on the Textboxes validated , .  how do i do the same for
when the form first loads

Author
12 Oct 2006 2:55 PM
pvdg42
Show quote Hide quote
"Peter Newman" <PeterNew***@discussions.microsoft.com> wrote in message
news:73DC59D5-B742-41B1-953B-236A0728E683@microsoft.com...
> Firstly i would like to tank the helpful posts in the past regarding
> formatting...
>
> the scenario is that i ahve a form created by the data wizard.  I have
> created a private sub to handle the validating for TextBoxes ,, and it
> works
> like a dream,  however  im still stuck as to doung the same when the form
> loads.
>
> Data in the table  = 0.00
> When the form lloads the data in the text boxes = 0
>
> using     Private Sub Handles_Validating(ByVal source As Object, ByVal e
> As
> EventArgs) HANDLES (  textbox1.validated  ... etc  _
>
> i can do formatting on the Textboxes validated , .  how do i do the same
> for
> when the form first loads
>
>
Look into the Activated event as a possibility:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWindowsFormsFormClassActivatedTopic.asp
Author
12 Oct 2006 3:06 PM
Peter Newman
That's ponted me in the right direction  Thank you

Show quoteHide quote
"pvdg42" wrote:

>
> "Peter Newman" <PeterNew***@discussions.microsoft.com> wrote in message
> news:73DC59D5-B742-41B1-953B-236A0728E683@microsoft.com...
> > Firstly i would like to tank the helpful posts in the past regarding
> > formatting...
> >
> > the scenario is that i ahve a form created by the data wizard.  I have
> > created a private sub to handle the validating for TextBoxes ,, and it
> > works
> > like a dream,  however  im still stuck as to doung the same when the form
> > loads.
> >
> > Data in the table  = 0.00
> > When the form lloads the data in the text boxes = 0
> >
> > using     Private Sub Handles_Validating(ByVal source As Object, ByVal e
> > As
> > EventArgs) HANDLES (  textbox1.validated  ... etc  _
> >
> > i can do formatting on the Textboxes validated , .  how do i do the same
> > for
> > when the form first loads
> >
> >
> Look into the Activated event as a possibility:
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWindowsFormsFormClassActivatedTopic.asp
>
>
>