private sub command1_click() if text1.fontbold=true then text1.fontbold=false else text1.fontbold=true endif end sub private sub command2_click() if text1.fontitalic=true then text1.fontitalic=false else text1.fontitalic=true endif end sub
追问
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Textbox1.Font = New Font("斜体", 15, FontStyle.Italic) End Sub 写在哪????怎样写??? 能告诉我的话加20分!