Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

windows forms add onclick

button.Click += (sender, e)=> {
  // In here, you can access prodData1 and prodData2
};

// Or

button.Click += ClickMethod;

// Or 

string extraParamenter = ""; // This extra paremeter can be any type
button.Click += ClickMethod(sender, e, extraParamenter);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #windows #forms #add #onclick
ADD COMMENT
Topic
Name
8+6 =