MedVision ad

URGENT: VB .NET Help! (1 Viewer)

SW220

New Member
Joined
Oct 8, 2003
Messages
28
Gender
Male
HSC
2003
Ok, well ive used visual basic 6 for a while now and thats all good and well, but now i have to learn how to use .net. If you have used visual basic 6 before, you would know you are able to directly print to a form, without the need for a label, but on .net i dont know how to!

Does anyone know how!
 

Winston

Active Member
Joined
Aug 30, 2002
Messages
6,128
Gender
Undisclosed
HSC
2003
What do you mean print to a form? :S...
 

J0n

N/A
Joined
Aug 28, 2003
Messages
410
Gender
Male
HSC
2004
Originally posted by Winston
What do you mean print to a form? :S...
I think he means how in VB6 you can just go From1.Print "Some text" but i've never used .NET before, so eh??
 

Winston

Active Member
Joined
Aug 30, 2002
Messages
6,128
Gender
Undisclosed
HSC
2003
Originally posted by J0n
I think he means how in VB6 you can just go From1.Print "Some text" but i've never used .NET before, so eh??

Hmmm i see i'm not sure if VB.NET has it anymore, i mean not even VB6 itself supported it inside intellisense menu, it wasn't listed. But there's a way where u could draw a string onto the form,under the paint event, and i mean it's quite flexible you can draw the string with as many characteristics as you desire.


Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint

Dim bigFont As New Font("Comic Sans MS", 60, FontStyle.Bold, GraphicsUnit.Pixel)
Dim brushes As Brushes
e.Graphics.DrawString("hey", bigFont, brushes.Black, 2, 3)

End Sub
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top