473,326 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Best Resource for learning .NET (from a VB6 User's point of view)

Trying to learn VB .NET is proving to be an extremely slow & tedious
adventure. For example...

VB .NET won't let me add my own SUBS or FUNCTIONS to Form1.vb. So I created
a module and put my SUBS in there. I can call the SUBS from the Form1.vb,
but I can't reference the controls in Form1.vb from the Module. For
example, I have a label on the form I want to change from a SUB in the
Module. In VB6, it was easy:

Form1.Label1.Caption = "MyText"

I can't seem to be able to accomplish this in VB .NET. It seems like every
line of code I write must be researched before I get a successful result.

1. Can anyone tell me quick the answer to my problem?
2. What is the best resource (book, web site, etc) for questions like this?

Thanks!
Nov 20 '05 #1
2 1060
Grab a good book such as:"Mastering Visual Basic.NET" by: Evangelos
Petroutsos
ISBN#0-7821-2877-7

All you need to do to add a SUB or Function is type:
Private Function............... And you are on your way.
Same with your own Sub.

Just grab that book I mentioned or any of several other's (checkout your
local bookstore) and you will see that what you are wanting to do is easy.
It's not a Project.....Add thing but, not any harder to do.
james
"Terry Olsen" <to******@hotmail.com> wrote in message
news:#I**************@TK2MSFTNGP10.phx.gbl...
Trying to learn VB .NET is proving to be an extremely slow & tedious
adventure. For example...

VB .NET won't let me add my own SUBS or FUNCTIONS to Form1.vb. So I created a module and put my SUBS in there. I can call the SUBS from the Form1.vb,
but I can't reference the controls in Form1.vb from the Module. For
example, I have a label on the form I want to change from a SUB in the
Module. In VB6, it was easy:

Form1.Label1.Caption = "MyText"

I can't seem to be able to accomplish this in VB .NET. It seems like every line of code I write must be researched before I get a successful result.

1. Can anyone tell me quick the answer to my problem?
2. What is the best resource (book, web site, etc) for questions like this?
Thanks!

Nov 20 '05 #2
Cor
Hi Terry,

Until now I needed nothing more than MSDN.microsoft.com and this.

http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

And if you have problems installing it

http://msdn.microsoft.com/vbasic/vbr...q/#installvdir
I hope this helps a little bit?

Cor
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

131
by: Peter Foti | last post by:
Simple question... which is better to use for defining font sizes and why? px and em seem to be the leading candidates. I know what the general answer is going to be, but I'm hoping to ultimately...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
26
by: mfasoccer | last post by:
I am sorry if this is an inappropriate place to put this post, if so please delete it. I am wondering about a few things. Do you guys recommend learning C as a second language, as someone who...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.