-
Jan 14th, 2019, 03:57 PM
#1
Thread Starter
New Member
Working on a old Program made in VB6 and update VB.Net
Hey.
In VB. 6 there is a method Forms.GrdListe.Row this method is not supported in VB.Net
Is there any one that knows what the new name of the same method in VB.Net?
Best Regards Bloodaxe
-
Jan 14th, 2019, 04:06 PM
#2
Re: Working on a old Program made in VB6 and update VB.Net
Welcome to VBForums
Thread moved from the 'CodeBank VB.Net' forum (which is for you to post working code examples, not questions) to the 'VB.Net' forum
Based on what little you have told us, it seems that GrdListe is probably a form, and that it has a property called Row.
That isn't a standard property of a VB6 form, so it might be one that is added in the code of the form, or it might be some kind of VBA form (if you used a VB Editor inside another program such as Excel). Unfortunately at the moment we can't tell, so we can't yet tell what the equivalent might be.
-
Jan 14th, 2019, 04:36 PM
#3
Thread Starter
New Member
Re: Working on a old Program made in VB6 and update VB.Net
The method starts like this
Public Sub Mylist(ByVal form As System.Windows.Forms.Form)
forms.GrdListe.Row
Sow there is now excel commands in the program.
-
Jan 14th, 2019, 05:22 PM
#4
Re: Working on a old Program made in VB6 and update VB.Net
I'm afraid that hasn't made things any clearer for us.
The first line (with Public Sub) is .Net code, but the second line isn't yet... and we still have no idea what your VB6 equivalent was, because you haven't given us anything to go on.
Mentioning Excel has just added to the confusion, because there is no indication of what that is about, or how it is relevant.
-
Jan 14th, 2019, 05:47 PM
#5
Re: Working on a old Program made in VB6 and update VB.Net
I think the mention of Excel was a bit of a typo. Since so got an extra w added to it, then no may have as well, which would mean that the sentence would be "So, there is no Excel commands in the program."
Still, there isn't enough to go on. If GrdLste is a form, then how could it have a .Rows property?
My usual boring signature: Nothing
-
Jan 14th, 2019, 06:13 PM
#6
Re: Working on a old Program made in VB6 and update VB.Net
Originally Posted by Tor_Bloodaxe
Is there any one that knows what the new name of the same method in VB.Net?
No there isn't, because the same method doesn't exist (if it's even a method) so there is no new name. It sounds like you are trying to access a row of a grid so exactly how you do that depends on exactly which grid control you are using. The standard for VB.NET is the DataGridView, but there are other options. VB.NET is not VB6 so don't expect there to be direct, 1:1 relationships between what you did and what you need to do. If you want to write VB.NET code then the first thing to do is to consider the functionality you want to implement. That means considering that functionality in your VB6 app and not specifically each line of code. Some things will be very similar in VB.NEt and some may be quite different. If you want our help then you need to provide a FULL and CLEAR explanation of the problem, not some vague description with no context.
-
Jan 15th, 2019, 08:57 PM
#7
Re: Working on a old Program made in VB6 and update VB.Net
Originally Posted by Tor_Bloodaxe
In VB. 6 there is a method Forms.GrdListe.Row
You need to be clear. What class does this member belong to and what does it do?
-
Jan 16th, 2019, 05:18 PM
#8
Thread Starter
New Member
Re: Working on a old Program made in VB6 and update VB.Net
If VB.Net and VB6 hade a good webpage for API, Like Java. You can say bad things about Java, but one thing Java has is good documented API with method and what the method does. If there is a good website where I can look up method from VB 6 and check what changes they have done to VB.net. That have been very helpful for me..
I need to know what changes the have done to System.Windows.Forms.Front
Niya you do not need to tell me that I need to be more clear and if you do not understand that this method is under the class From in VB6. You need to learn to read..
-
Jan 16th, 2019, 05:31 PM
#9
Re: Working on a old Program made in VB6 and update VB.Net
Niya you do not need to tell me that I need to be more clear and if you do not understand that this method is under the class From in VB6. You need to learn to read..
No one here is obligated to help you, and posts like that will likely make anyone who was willing to try to help you less willing or even completely unwilling to do so, and rightly so.
In VB. 6 there is a method Forms.GrdListe.Row
There certainly isn't in my install of VB 6.
I need to know what changes the have done to System.Windows.Forms. Front
That doesn't exist (.Front) and I don't believe it ever has. The link below is everything to know about System.Windows.Forms
https://docs.microsoft.com/en-us/dot...ramework-4.7.2
Good luck.
Last edited by OptionBase1; Jan 16th, 2019 at 05:39 PM.
-
Jan 16th, 2019, 05:36 PM
#10
Re: Working on a old Program made in VB6 and update VB.Net
Originally Posted by Tor_Bloodaxe
If VB.Net and VB6 hade a good webpage for API, Like Java. You can say bad things about Java, but one thing Java has is good documented API with method and what the method does. If there is a good website where I can look up method from VB 6 and check what changes they have done to VB.net. That have been very helpful for me..
The VB.Net documentation is here: https://docs.microsoft.com/en-us/dot...age-reference/
As for pages detailing VB6 to VB.Net changes, I'm not aware of any myself (and suspect any Microsoft ones have been removed, as VB6 was replaced 18 years ago) but there should be lots of web pages you can find.
I need to know what changes the have done to System.Windows.Forms.Front
Easy... System.Windows.Forms didn't exist in VB6, but does in VB.Net
Niya you do not need to tell me that I need to be more clear and if you do not understand that this method is under the class From in VB6. You need to learn to read..
I'm afraid we do need to tell you to be more clear (which is why all of us have), because you are currently not giving enough information for anyone to be able to help.
The code you are asking about is not standard VB, it is something specific to your project - so we can't tell what it is unless you give us the appropriate information.
The best I can suggest is in the VB6 project right-click on the word Row in forms.GrdListe.Row and select "Definition", then tell us what you find.
-
Jan 16th, 2019, 05:38 PM
#11
Re: Working on a old Program made in VB6 and update VB.Net
Originally Posted by OptionBase1
No one here is obligated to help you, and posts like that will likely make anyone who was willing to try to help you less willing or even completely unwilling to do so, and rightly so.
Count me amongst them.
-
Jan 16th, 2019, 05:52 PM
#12
Re: Working on a old Program made in VB6 and update VB.Net
Originally Posted by Tor_Bloodaxe
If VB.Net and VB6 hade a good webpage for API, Like Java. You can say bad things about Java, but one thing Java has is good documented API with method and what the method does. If there is a good website where I can look up method from VB 6 and check what changes they have done to VB.net. That have been very helpful for me..
There is excellent documentation for the .NET Framework and, if I'm not mistaken, there was pretty reasonable documentation for VB6 too. To suggest that there should be documentation for changes between VB6 and VB.NET is like saying that there should be documentation for changes between C++ and Java. As I stated earlier, you should not be looking for a 1:1 translation but rather considering what functionality your VB6 code implements and then looking for the best way to implement that same functionality in VB.NET. It seems like you completely ignored that, probably because it seems like too much trouble.
-
Jan 16th, 2019, 06:40 PM
#13
Re: Working on a old Program made in VB6 and update VB.Net
And if you're already familiar with Java, then perhaps going from VB6 to Java would be a better choice for you. Despite the similar name, the difference between using components, controls and libraries is quite different between VB6 and VB.Net so should be considered two different languages in those regards. The core BASIC statements (as they were called) of the language are what gives the two VBs their B, and that bit of logical code can be portable between the two languages, but that is a small part of the each of those two languages universe.
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
|