Poy

Hi Everyone...

below doesn't work! any ideas

so frustating!!!

Code Block

If txtCompleted.Text = "Yes" Then

lblCompleted.DefaultForeColor.Red()

End If



Re: ClickOnce and Setup & Deployment Projects text change colour??

Gavin Jin - MSFT

Hi,

Please check following code

Code Block

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

If Me.TextBox1.Text = "yes" Then

Me.Label1.ForeColor = Color.Blue

End If

End Sub

If you have any further questions, feel free to let me know.

Best Regards

Gavin






Re: ClickOnce and Setup & Deployment Projects text change colour??

Poy

Thanks Gavin - just another similar question...

how do i make the label also BOLD..

i tried a few things along the above lines - but no such luck...

Thanks

Poy





Re: ClickOnce and Setup & Deployment Projects text change colour??

Gavin Jin - MSFT

Hi,you can try following code

Code Block
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Me.TextBox1.Text = "yes" Then
Me.Label1.ForeColor = Color.Blue
Me.Label1.Font = New System.Drawing.Font(Label1.Font, FontStyle.Bold)
End If
End Sub

Hope it helps

Gavin






Re: ClickOnce and Setup & Deployment Projects text change colour??

Poy

thanks Gavin - unfortunately that font didn't change,

nevermind though, i'm happy with what i have now...

thanks for all your help!

Poy





Re: ClickOnce and Setup & Deployment Projects text change colour??

Gavin Jin - MSFT

Hi,Poy

I think there is something wrong in your code, if you want to make the text bold,check this for more information

http://msdn2.microsoft.com/en-us/library/system.drawing.font.aspx

Hope it helps

Gavin






Re: ClickOnce and Setup & Deployment Projects text change colour??

Poy

Yeah for sure -- i didn't know the library existed !!

thanks Gavin -

appreciate the help

Poy