how to disable a button with another button in another form that hasn't been opened yet in visual basic 2008?
cheesepotato 0 Newbie Poster
Recommended Answers
Jump to PostHow do you propose to click a button in a form that has not yet been opened? And why would you want to?
Jump to PostYou can declare a private boolean variable and a public property like so:
Private buttonEnabled As Boolean = True Public Property EnableButton As Boolean Get Return Me.buttonEnabled End Get Set(value As Boolean) Me.buttonEnabled = value End Set End Property
Then in the form's load event handler …
All 5 Replies
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Cronicle8 0 Newbie Poster
Begginnerdev 256 Junior Poster
M.Waqas Aslam 67 Posting Pro in Training Featured Poster
cheesepotato 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.