|
-
Jul 7th, 2005, 10:17 AM
#41
Hyperactive Member
Re: Tips for moving from VB6 to VB.NET
 Originally Posted by Liadan23
I'm working on a program that I was originally doing in VB editor because I wanted to get a start on it while I waited for my VB2003.Net to come. I would like to somehow transfer this work from editor to .Net. Is there a way to do this? I have Window2000 Professional if that helps to understand what kind of editor I was using. I appreciate the help! Thanks!
same problem here...
i dunt want to write that code again...is there any way...
also Caption = "Form1"
ClientHeight = 4650
ClientLeft = 60
ClientTop = 345
ClientWidth = 6390
LinkTopic = "Form1"
ScaleHeight = 4650
ScaleWidth = 6390
StartUpPosition = 3
also when i began re-writing th eabove code written in excel's visual basic editor i cud not locate client Height etc in the .net platform. somebody help
asap.
thanks
-
Jul 7th, 2005, 10:40 AM
#42
Re: Tips for moving from VB6 to VB.NET
excel is VBA, which is like a consolidated version of VB6. You will find many differences between VBA and VB.NET
-
Jul 8th, 2005, 07:54 AM
#43
New Member
Re: Tips for moving from VB6 to VB.NET
hmmm.....alright. I guess I'll just re-write the program in .Net. Thanks.
-
Jul 8th, 2005, 08:10 AM
#44
Re: Tips for moving from VB6 to VB.NET
 Originally Posted by epixelman
One tip I suggest is...
.NET allows use to use old VB6 code in .NET by using the Microsoft.VisualBasic import declaration...
I suggest that you use true "VB code" using the frameworks VB syntx.
What I mean is... use the .NET framework's visual basic commands and not the VB6 commands. Convert all your VB6 code to true .NET framework code.
It will save you headaches in the future.
One thing that I have found out the hard-way is that you need to have admin rights / power user rights for the import statements to work. Also for the migration to work. That wasn't the case with VB6 earlier.
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
-
Jul 8th, 2005, 08:13 AM
#45
Re: Tips for moving from VB6 to VB.NET
Also, do not listen to people who tell you that migrating is a better option than re-writing. A complete rewrite is much cleaner compared to migrating and will save you a whole deal of time.
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
-
Jul 11th, 2005, 08:08 AM
#46
New Member
Re: Tips for moving from VB6 to VB.NET
Yea I think you're probably right. It actually wasn't that bad to just re-write. I had to re-do my form and everything, but then I just copied and pasted my code from editor and fixed the parts that .Net had problems with. It didn't take long at all. Thanks for all your suggestions.
-
Jul 26th, 2005, 07:09 AM
#47
Fanatic Member
Re: Tips for moving from VB6 to VB.NET
FREE BOOK - Upgrading from VB6 to VB.NET
This may have already been posted here...but here it is.....
Download from http://msdn.microsoft.com/vbrun/stay.../upgradingvb6/
Scroll to the bottom of the page to download the entire book.
Last edited by birthjay; Jul 26th, 2005 at 09:07 AM.
-
Aug 1st, 2005, 11:09 AM
#48
New Member
Visual Basic .Net 2003 Standard??
Hi,
Dunno, if this is the right place or not, but I currently program using VB 6.0 prof and want to go to .Net. I know that VB6.0 requires the prof edition to create distributable apps, but is the same true for VB .net??
The reason I ask is when I do searchs for VB.net, all I can find is the "Standard" edition not a professional one. I see there is a professional edition of the .net "studio", but neither mention the "distributable" aspect.
Any help would be appriciated.....thanks.
-
Aug 1st, 2005, 12:04 PM
#49
Re: Tips for moving from VB6 to VB.NET
The only version that you can't build redist app with (as far as I know) is the Beta for 2005. I have VB.NET Standard, and I'm able to redist just fine. The difference between Standard, Professional and Enterprise is the amount of tools & bells & whistles you get.
But I could be wrong about that.... it's been know to happen.
Tg
-
Aug 5th, 2005, 11:02 PM
#50
Addicted Member
Re: Tips for moving from VB6 to VB.NET
Is there any related E-Book for .Net programming for download?
-
Aug 10th, 2005, 05:18 AM
#51
-
Aug 10th, 2005, 05:21 AM
#52
Re: Tips for moving from VB6 to VB.NET
It's been the common advise and I would advise it to you also, don't use the Upgrade wizard. It would be better to completely re-write it from ground up...
-
Aug 10th, 2005, 10:14 AM
#53
Fanatic Member
Re: Tips for moving from VB6 to VB.NET
damn...
hopefully this won't take too much. i really do not know where to start.
When your car breaks down,
close all windows and retry 
=> please rate all users posts! <=
-
Oct 19th, 2005, 08:43 AM
#54
Re: Tips for moving from VB6 to VB.NET
MrPolite was Polite enough to find a link to some FREE books Microsoft is offering (they are for download in PDF format) that will help move from VB6 to VB.NET and also help learning .NET 2005
you can find the books Here
-
Oct 19th, 2005, 12:12 PM
#55
Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]
I'm not polite! stop insulting me
just a note, that link has a book for vb2005 too if you want to start with that right off
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jan 7th, 2006, 08:18 PM
#56
Some video show/tutorials you might find interesting
Some video show/tutorials you might find interesting:
My personal favourite: VBTV - too bad MS has stopped webcasting it.
The .NET show - Make sure to check the old archives. They have very good discussion on the framework, CLR, VB.NET etc. (Though the archived videos are old. They are still interesting.)
VB.NET Express Absolute Beginner's Video Series
Check http://www.learnvisualstudio.net/ for some free videos.
VB.NET for Beginners to Programming Workbook and Videos
IDE Proficiency Series for Visual Studio.NET 2003
C# for Beginners to Programming Workbook and Videos
DotNetRocks (audio only)
MSDN Channel 9 (Not very beginner friendly, but still interesting)
MSDN TV (Not very beginner friendly, but still interesting)
Last edited by RobDog888; Jan 8th, 2006 at 09:22 AM.
-
Jan 8th, 2006, 09:04 AM
#57
Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]
iPrank, a few of those links are already on the other sticky thread - VB.NET hints you might not know [updated 11-04-2005]. You may want to chack it out. But you do have some informative links too. 
Maybe it would be better for some of the links to go in that thread?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 8th, 2006, 09:18 AM
#58
Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]
 Originally Posted by RobDog888
iPrank, a few of those links are already on the other sticky thread - VB.NET hints you might not know [updated 11-04-2005]. You may want to chack it out. But you do have some informative links too. 
Maybe it would be better for some of the links to go in that thread?
Sorry. I didn't checked that thread. I'm just starting .NET, thought that thread may be for exprrienced .NET guys. 
Will you please move/moderate the links. (that thread is closed/locked I guess.)
-
Jan 23rd, 2006, 03:46 AM
#59
Addicted Member
Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]
Hi,
I would like to ask...VB 6 is structured language right? How about Visual Basic 2005..???...Because I have Visual Studio 2005 and Visual Studio.NET 2003, which both are object oriented language....so, in short, VB 2005 and VB 6 has different coding style...is that correct?
-
Mar 25th, 2006, 03:09 AM
#60
Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]
I thought it would be worthwhile to post a link to the conversion chart I made.
Thread
Visual Basic 6 to .NET Function Equivalents
I hope people find this useful.
-
Apr 3rd, 2006, 11:59 AM
#61
Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]
 Originally Posted by tr333
brilliant link, just what I needed
VB.NET <3
-
Jun 7th, 2006, 07:32 AM
#62
Member
Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]
Is there a equivalent to objptr function in VB 2005.
I'm converting code from vb 6 to vb 2005.
gcTimerObjects.Add(ObjPtr(Me), mnTimerID) - converted vb 6 code.
ObjPtr is deprecated and it can no more be used. So is there any substitute for it in VB 2005.
how can we find the address of a object??
Thanks,
Sugan
-
Jun 7th, 2006, 08:40 AM
#63
Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]
 Originally Posted by vsugan_work
Is there a equivalent to objptr function in VB 2005.
I'm converting code from vb 6 to vb 2005.
gcTimerObjects.Add(ObjPtr(Me), mnTimerID) - converted vb 6 code.
ObjPtr is deprecated and it can no more be used. So is there any substitute for it in VB 2005.
how can we find the address of a object??
Thanks,
Sugan
Did you try just removing it and seeing if it works?
-
Jun 8th, 2006, 12:14 AM
#64
Member
Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]
 Originally Posted by kleinma
Did you try just removing it and seeing if it works?
If i remove the ObjPtr function , the following is the error i get.
"Value of type 'vbuSoftButton.objTimer' cannot be converted to 'Integer'."
The function add requires the first argument as integer, which is the address of the object that requires to be passed. So if the objptr function is removed, "Me" refers to a objTimer which cannot be converted to integer.
So pls help how to proceed with this issue.
Thanks,
Sugan
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
|