hi
i have 7 textboxes and 2 drop down boxes i need to write a while loop statement to validate them. thanxs

please be more specific. "validate" in what sense?

and i don't know how well a loop statement will help you out. a loop does something until it is "told" to end...

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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.