NegativeZero Posted February 3, 2005 Posted February 3, 2005 ive been playing with Dim BrPen As Pen = New Pen(Color.Brown, 4) e.graphics.drawstring("test", ?????, brpen,10,10) i dont know what to put for the font, and if i figure it out im not sure if the rest is right, can someone help me out =D thanks in adnvance Quote
Talyrond Posted February 3, 2005 Posted February 3, 2005 This should do the trick Dim fnt As New Font("Arial", 20, FontStyle.Bold) e.Graphics.DrawString("test", fnt, Brushes.Black, 10, 10) Quote
Leaders Iceplug Posted February 3, 2005 Leaders Posted February 3, 2005 My cheap solution (you don't have a create a new font for) would be just to pass the form's Font to .DrawString e.Graphics.DrawString("test", Me.Font, Brushes.Black, 10F, 10F) :) This would be better than creating a new font everytime you use drawstring though, but you could keep fnt in a public place so that you don't have to recreate it as well. Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.