Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21993

DTPicker1.value clear in form load event

$
0
0
Hai everybody especially senior members

I wrote a clear sub function

requirement: when I click the add commend button which calls clearall sub function

DTPicker1.Value is not cleared
DTPicker2.Value is not cleared
I have to clear these two object when i click the add commend.
To avoid error i put the two DTPicker objects in comment mode in clearall function

my code is :
Code:

Public Sub clearall()
cmdUpdate.Enabled = False
cmdDelete.Enabled = False
cmdSave.Enabled = True
    txtMemID.Text = ""
    txtMemNo.Text = ""
    cmbDeposit.Text = ""
    txtMemName.Text = ""
    txtFatherName.Text = ""
    'DTPicker2.Value = ""
    txtResAdd.Text = ""
    txtOffAdd.Text = ""
    cmbGender.Text = ""
    cmbDesign.Text = ""
    txtTelNo.Text = ""
    'DTPicker1.Value = ""
    txtStatus.Text = ""
    txtSurity.Text = ""
txtMemNo.SetFocus
End Sub

Thanks in advance

Viewing all articles
Browse latest Browse all 21993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>