(VB.NET)clearing all controls in the form by calling a function
-
function which will clear all controls in the form when it is called. appreciated for ur help.thank u
-
function which will clear all controls in the form when it is called. appreciated for ur help.thank u
Hi You Must Write The Function Yourself. For Example I Have 2 TextBox;2 CheckBox&.... I Write a Sub or function Such This: Sub ClearMyForm() Text1.text=Dafault Text1 Text2.text=Dafault Text2 Checkbox1.Value=0 'Default Is UnChecked checkbox2.value=1 'Default Is Checked . . . End Sub Good Luck. Mogtabam
-
function which will clear all controls in the form when it is called. appreciated for ur help.thank u
Use control collection... For Each ctl As Control In Me.Controls ctl.text="" '''''''''get each control one by one Next
Parwej Ahamad g_parwez@rediffmail.com