Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Ok so I have a form with a Button on it. ( let's call it button1 )

 

When the user clicks it , I want to check a condition :

 

a = true ? > then cancel the click

Else > Continue as if there was no condition

 

it was something like e.handled = false but I forgot and I don't seem to remember exactly

Development & Research Department @ Elven Soft
Posted
Theoretically I could easily use an "Exit Sub" statement, but the problem is that this button has the property "DialogResult = OK" so if I click it, it closes my form.
Development & Research Department @ Elven Soft
Posted
e.Handled = True It was the command to block a keystroke ... How about the click of an button with DialogResult = OK . Does any1 know ? :(
Development & Research Department @ Elven Soft

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...