Just nu i M3-nätverket
Jump to content

VB.NET Farg


Cream

Recommended Posts

hur kan man göra detta

t ex.. om jag skriver in <html> i en textbox

så vill jag att den ska bli en annan färg t ex röd

hur kan man göra detta i VB.NET

Link to comment
Share on other sites

  • 2 weeks later...
Stefan B Karlsson

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged

If TextBox1.Text = "<html>" Then

TextBox1.ForeColor = Color.Red

End If

End Sub

 

som man ropar får man svar.. ;-)

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...