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
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top