we use Print
to print text to form in vb6
and dont know how to print text to window form in vb.net
please explain how to achieve it . . .
Learner010 99 Posting Whiz in Training
Recommended Answers
Jump to PostThere a couple methods you can use:
Printform sends an image of the active form to the printer. (Simple output)
PrintDocument sends the output to the printer, …
Jump to Posti dont want to use label
I don't know why not. It's so simple. You don't even have to name the label unless you want to modify the text after you place it.
Dim lbl As New Label lbl.Font = New Font("Arial", 12.0!, FontStyle.Regular, GraphicsUnit.Point, …
Jump to PostIn the Graphics class you would want to use the DrawString method. But beware, this can get heavy in the beginning. But total control on how to draw
a string is your reward. If you are looking to print just plain text, I …
Jump to PostIf you can see you code editor window, do you also see a Toolbox window Solutution explorer window and a Properties window? If not open, open them through the View menu. VS 2008 and VS 2010 make no difference. In the Solution Explorer window you shoud see the files.
Jump to PostYou are correct.
But try the following:
In the code editor there are two drop down lists at the top. In the right list choose InitializeComponent and you should see code for your designed labels,buttons etc.
All 21 Replies
Begginnerdev 256 Junior Poster
Learner010 99 Posting Whiz in Training
Eternal Newbie 30 Newbie Poster
Learner010 99 Posting Whiz in Training
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Learner010 99 Posting Whiz in Training
Begginnerdev 256 Junior Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
Begginnerdev commented: Nice example! +8
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Learner010 99 Posting Whiz in Training
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Learner010 99 Posting Whiz in Training
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Learner010 99 Posting Whiz in Training
ddanbe 2,724 Professional Procrastinator Featured Poster
Learner010 99 Posting Whiz in Training
ddanbe 2,724 Professional Procrastinator Featured Poster
Learner010 99 Posting Whiz in Training
ddanbe 2,724 Professional Procrastinator Featured Poster
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
munawer_1 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.