D
D
DD-var2019-10-04 21:53:30
C++ / C#
DD-var, 2019-10-04 21:53:30

windows form method?

how to add method to windows form? but nothing happens
I write

void bla (){
label1.text="text";
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Stupenkov, 2019-10-05
@DD-var

For this method to work, it must first be called, let's say from the button click handler:

private void button1_Click(object sender, EventArgs e)
    {
      bla();
    }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question