For my program, I want to disable the a menu option (eg. Menu --> Exit) until text has been typed into a textbox. However, i cant achieve this with my code, can anyone help?
Private Sub mnuFileGraph_Click() If txtInv.text = "" then mnuFileGraph.enabled = false Else: mnuFileGraph.enabled = true End If If mnuFileGraph.enaabled = true then Form2.Show End If End Sub

New Topic/Question
Reply



MultiQuote




|