Home > Net >  Refer to the c #
Refer to the c #

Time:09-20

Excuse me, how can you make after clicking the button, shown below underlined text

CodePudding user response:

Mr Label1. Text=textBox1. Text + "! Congratulations, you have learned c # programming!" ;

CodePudding user response:

Type the code under the Click event of the button label1. Text=textBox1. Text + "Sir! Congratulations, you have learned c # programming!" ;

CodePudding user response:

Need to display the font in the first place to hide or empty "" : label1. Visible=true;
Then the button Click event (double Click on the button Click event) write: label1. Visible=false;//not hide. Don't need to add label1 Text=textBox1. Text + "Sir! Congratulations, you have learned c # programming!" ;

CodePudding user response:

Can start to write good below the line (with what controls as you write the Label, what TextBlock), and then set it in a hidden, it is displayed in the button click event
  •  Tags:  
  • C#
  • Related