Print on the Form

  • Thread starter Thread starter Prateek
  • Start date Start date
P

Prateek

Hi,

The Print statement in VB used to print text on the Form. Is there an equivalent in VB.NET
 
found it..
DrawString method of Graphics object...

Hi,

The Print statement in VB used to print text on the Form. Is there an equivalent in VB.NET
 
Why not just display your text in a label on the form
using something along the lines of:

me.lblMyLabel.text = "Hello World"

Regards Steve
 
* "Prateek said:
The Print statement in VB used to print text on the Form. Is there an equivalent in VB.NET

Why not use a label control?

- or -

\\\
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
e.Graphics.DrawString("Hello World", Me.Font, Brushes.Red, 10, 10)
End Sub
///
 
Back
Top