|
-
September 24th, 2002, 12:14 PM
#1
GDI plus how to ?
Ok I know how to use GDI + to put text into any control when the form loads by using this.
Private Sub test(ByVal sender As System.Object, ByVal pe As _ System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint
Dim g As Graphics = pe.Graphics
Dim mybrush As New Drawing2D.LinearGradientBrush(ClientRectangle, _
Color.Blue, Color.Black, Drawing2D.LinearGradientMode.Vertical)
Dim myFont As New Font("arial", 24)
g.DrawString("text here", myFont, mybrush, 300, 260)
End Sub
What I don't know how to do is get this to happen on command(i.e. when I press a button)
Any help on this matter would be greatly appritiated.
thank you
Thank you,
Dave Lenwell
Software Developer
Unlimited Cash inc.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|