|
-
Apr 25th, 2004, 12:25 PM
#1
Thread Starter
Lively Member
(resolved)Why is printer.**** command not recoginiesed by vb.net
Hi. I am migrating rather unsuccessfully from VB. 6 to VB. net
I have problems at printing. in vb 6. I used something like this.
Printer.print "Hello!"
printer.enddoc
How is this code in VB.net
and also I noticed vbscalecentimetres is not understood. I hope there is a book or a web page on "migrating" from VB6 to VBNET.
Thanks for your help.
Last edited by 3rd_newton_law; Apr 29th, 2004 at 02:53 AM.
-
Apr 26th, 2004, 02:10 AM
#2
Dude, VB.net is a totally new game. There is a conversion utility that automatically converts a VB6 project to VB.net but its not great. Check in the File menu to see if you have it.
Printing is completely revamped too, look up PrintDocument in MSDN for details. Hope you know oop programming
I don't live here any more.
-
Apr 26th, 2004, 08:38 AM
#3
Thread Starter
Lively Member
Soo I have noticed VB .net is totally different from VB 6. The coversion utility takes like ages do the job and usually zillion things become "unsupoted" in the "next" version. I will go back to VB 6.
-
Apr 26th, 2004, 08:42 AM
#4
Originally posted by 3rd_newton_law
I will go back to VB 6.
I said the same thing a few months ago. I wouldn't say it now.
I don't live here any more.
-
Apr 26th, 2004, 01:36 PM
#5
Frenzied Member
learning the new way of things IS pretty frustrating but well worth it. I was learning vb6 a few years ago and I had to start from scratch to learn vb.net mainly because I forgot how vb6 worked lol. I agree, the .net way IS much better.
-
Apr 29th, 2004, 02:51 AM
#6
Thread Starter
Lively Member
I don't see anything in VB .net that cannot be done with VB 6. Soo If I know VB6 why learning a different language. VB 6 to VB .net like changing from Dutch to German. Or Italian to Spanish. I don't have time for this. I imagined VB .net wouldnt not be that different. BTW 25% of my 4000 lines of code project is using "unsuported" features in VB .net. Soo I am not going to rewrite 1/4 of my project.
-
Apr 29th, 2004, 05:09 AM
#7
Originally posted by 3rd_newton_law
I don't see anything in VB .net that cannot be done with VB 6.
Then you aren't looking very hard (or dont know where to look!).
VB.net is 100% Object Orientated. VB6 is a joke in this respect, its classes don't even have parameter'd constructors 
Classes make programming easier and more robust. VB6 just wasn't up to it.
I wish I'd never learned VB6 because I'm still struggling to leave its bad habits behind.
ps.
"So" only has one "o" in it.
I don't live here any more.
-
Apr 29th, 2004, 05:22 AM
#8
PowerPoster
Hi,
"I don't see anything in VB .net that cannot be done with VB 6. Soo If I know VB6 why learning a different language. VB 6 to VB .net like changing from Dutch to German. Or Italian to Spanish. I don't have time for this. "
When I moved from DOS programmes to VB6 I found the printing requirements onerous!! Now I don't. When I moved to VB.NET I found the same thing, but I am sure that will also become natural.
Yes, you may consider you do not have the time to change (I confess I have given up trying to convert my VB6 applications and have left them intact) but when you find your programming colleagues ( or worse, your competitors) finishing their applications five times quicker than you, your understanding of having no time will change. Also, if you ever have to use advanced arithmetical formulae, you will much appreciate .NET.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
-
Apr 30th, 2004, 04:27 AM
#9
Thread Starter
Lively Member
How about that framework. If you make a program in VB .net will it run on a Win 98 that doesnt have framework installed?. I want to programm in .net but I have time to learn 1 new language. How about that C++ or C# ? Is it better to program there than in VB .net? And if you make a program in C++ .net do you need to have the framework installed?
-
Apr 30th, 2004, 04:38 AM
#10
PowerPoster
HI,
"How about that C++ or C# ? Is it better to program there than in VB .net?"
C++ no way.
C#, possibly. It will give you a marketing edge with possible employers as it is an indication that you are a "serious" professional. Search this forum on the topic for full pros & cons.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|