Computing.Net > Forums > Programming > Cleat textBoxex in vb.net

Cleat textBoxex in vb.net

Reply to Message Icon

Original Message
Name: imtiaz
Date: February 10, 2004 at 08:50:12 Pacific
Subject: Cleat textBoxex in vb.net
OS: 2000
CPU/Ram: 128
Comment:

Hi friends
I have a lot of textBoxes on a form in VB.NET . I have a button of Clear which will empty the text boxes existing on the form. My coding is(which is not proper working)
Dim ctl As Control
For Each ctl In frmCS.Controls
If TypeOf ctl Is TextBoxBase Then
ctl.Text = ""
End If
Next
frmCS is declared in module as
Public frmCS As New CS()
CS is the Name of Form
My above code works properly in VB 6 but not in VB.NET.
Plz help me. I will be very thankful to u.



Report Offensive Message For Removal








Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Cleat textBoxex in vb.net

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 5 Days.
Discuss in The Lounge