Upgraded VB6 to .NET . . a few problems

Posted on 2005-03-10
Medium Priority
Last Modified: 2010-04-23
Upgraded VB6 to .NET . . a few problems.
I need the correct code where there is "'UPGRADE_NOTE:":

'UPGRADE_ISSUE: Load statement is not supported.

If rsNewType.State = ADODB.ObjectStateEnum.adStateOpen Then
  'UPGRADE_NOTE: Object rsNewType may not be destroyed until it is garbage collected.
  rsNewType = Nothing
End If

Question by:MikeMCSD
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 44

Accepted Solution

Arthur_Wood earned 2000 total points
ID: 13513335
1) forms in VB.NET are classes that you do not LOAD, but rather create an instance of:

Dim frm as New frmSupp

and then show the form as a Dialog (modal form):


tghere is no underlying Forms collection as there was in VB 6.

2) is simply advising you that .NET does NOT have DETERMINISTIC object release.  In vb 6, when you set an object reference to Nothing, the object was removed from memory.  In .net, the object is not removeds from memory until Garbage Collection takes place, and you have no direct control over when that happens - but the refenercve is gone, so whether the object is still in memory or not is irrelevant - you cannot access the object once it is set to Nothing.  The memory will be released when the application needs to make use of the memory for other purposes (that is what GC -Garbage Collection- is all about).

#2 is not a error, just advising you about how .NET is different from VB 6.

#1 IS an ERROR - the method does not exist any longer.

LVL 16

Author Comment

ID: 13513424
Thank you Mr. Wood!

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question