TwoWing
Well-known member
Hi.
I found in a book by Clayton Walnum a basic thing to do that I hadn't come across before - it is writing on a Form. I shall give the Coding after this writing. OK! I can do this and can change color, font and so on......... BUT, how can it be deleted or erased. I suppose this is the same with all Graphics?
I have no idea at all. How can you delete something that has been created with Graphics. Please, someone, show me how.
Dim g As Graphics = CreateGraphics()
Dim f As Font = Form1.DefaultFont
Dim B As New SolidBrush(Color.Black)
g.DrawString("Here's some text output.", f, B, 20, 10)
g.DrawString("Here's some more text output.", f, B, 20, 30)
g.DrawString("Here's still some more text output.", f, B, 20, 50)
Cheers, TwoWing
I found in a book by Clayton Walnum a basic thing to do that I hadn't come across before - it is writing on a Form. I shall give the Coding after this writing. OK! I can do this and can change color, font and so on......... BUT, how can it be deleted or erased. I suppose this is the same with all Graphics?
I have no idea at all. How can you delete something that has been created with Graphics. Please, someone, show me how.
Dim g As Graphics = CreateGraphics()
Dim f As Font = Form1.DefaultFont
Dim B As New SolidBrush(Color.Black)
g.DrawString("Here's some text output.", f, B, 20, 10)
g.DrawString("Here's some more text output.", f, B, 20, 30)
g.DrawString("Here's still some more text output.", f, B, 20, 50)
Cheers, TwoWing