Hi, how do i set the value of a check box with out firing the click_event? Many thanks Nick
www.vb-tech.com .Net Freelance Development http://weblog.vb-tech.com/nick My blog
What event would you like to use to change the value?
Place Your VBForums Ad Here
Originally posted by nswan Hi, how do i set the value of a check box with out firing the click_event? Many thanks Nick That's how you can stop it .. VB Code: Option Explicit Dim m_blnStopFire As Boolean Private Sub Check1_Click() If m_blnStopFire Then m_blnStopFire = False: Exit Sub MsgBox "I will never fire unless you click on checkbox itself ... " End Sub Private Sub Command1_Click() m_blnStopFire = True Check1.Value = vbChecked End Sub
Option Explicit Dim m_blnStopFire As Boolean Private Sub Check1_Click() If m_blnStopFire Then m_blnStopFire = False: Exit Sub MsgBox "I will never fire unless you click on checkbox itself ... " End Sub Private Sub Command1_Click() m_blnStopFire = True Check1.Value = vbChecked End Sub
Forum Rules