Answer the question
In order to leave comments, you need to log in
How to raise a webhook relay?
Has anyone raised a webhook relay?
I would like to accept hooks from a public Internet, so as not to pour turnips.
But not to open their ports.
Can anyone recommend what?
Answer the question
In order to leave comments, you need to log in
b1_click
You cannot use a variable
in a function b1
, because it is only available inside the function MyButton
.
I can offer 2 options.
1) Declare Button b1
inside the class, for example before . In the delete function to leave .
2) In the function , use a link to the button that was clicked. That is . This will allow you to use the function for any button, not just the one created in .public Form1()
MyButton
Button
b1 = new Button();
Button b = (Button) sender;
b.Text = "Зачем нажал?";
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question