Hi all,
Me...again
My next problem is the following one...I have a ToolStripStatusLabel and it is set to ImageAndText. But I want to change the image at runtime.
Depending whether the data is up-to-date or not.
So if the data is up-to-date I want to see a green V , if not a ! sign
At this moment I have this, but it doesn't seem to work
Thanks in advanceCode:Select Case diffday Case Is < 0 Main.DAFIF_txt.ForeColor = Color.Red Main.DAFIF_txt.Text = "DAFIF Outdated" Main.DAFIF_txt.Image = Image.FromFile(domain_path & "Grafix\DAFIF_NOK.png") Case Else Main.DAFIF_txt.ForeColor = Color.Green Main.DAFIF_txt.Text = "DAFIF valid till " & DateTime.FromOADate(enter_datum) Main.DAFIF_txt.Image = Image.FromFile(domain_path & "Grafix\DAFIF_OK.png") End Select






Reply With Quote