User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 402,509 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,818 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser: Programming Forums
Views: 628 | Replies: 3
Reply
Join Date: Jan 2008
Posts: 4
Reputation: jimmer12 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jimmer12 jimmer12 is offline Offline
Newbie Poster

Validation vb

  #1  
Jan 8th, 2008
hi
i have 7 textboxes and 2 drop down boxes i need to write a while loop statement to validate them. thanxs
Last edited by jimmer12 : Jan 8th, 2008 at 8:02 am.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2007
Posts: 287
Reputation: ericstenson is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 28
Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: Validation vb

  #2  
Jan 8th, 2008
please be more specific. "validate" in what sense?
--
"Dummy."
Reply With Quote  
Join Date: Dec 2007
Posts: 287
Reputation: ericstenson is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 28
Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: Validation vb

  #3  
Jan 8th, 2008
and i don't know how well a loop statement will help you out. a loop does something until it is "told" to end...
--
"Dummy."
Reply With Quote  
Join Date: Dec 2002
Location: West Virginia
Posts: 375
Reputation: waynespangler is on a distinguished road 
Rep Power: 6
Solved Threads: 37
waynespangler waynespangler is offline Offline
Posting Whiz

Re: Validation vb

  #4  
Jan 9th, 2008
As Eric said "Validate how"?
To go thru all your controls use something like this:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim ctrl As Control
        For Each ctrl In Me.Controls
            If TypeOf (ctrl) Is TextBox Then
                ctrl.Text = ctrl.Name & " validated"
            ElseIf TypeOf (ctrl) Is ComboBox Then
                ctrl.Text = ctrl.Name & " validated"
            End If
        Next
    End Sub
Wayne

It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb VB.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 5:58 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC