I have a transparent form and am displaying text via the Paint Sub on a Timer.
Here is my code:
This works well. However, if another application has the focus (other than my own form), the string is not visible when the Paint Sub is called.
How can I get the sting to be drawn 'On Top' of all open windows?
Here is my code:
Code:
Private Sub TextForm_Paint(sender As Object, e As System.Windows.Forms.PaintEventArgs) Handles TextForm.Paint
e.Graphics.DrawString("Test string", New Font(Me.Font.FontFamily, 25, FontStyle.Regular), Brushes.Red, xCoord, yCoord)
End Sub
How can I get the sting to be drawn 'On Top' of all open windows?