By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,537 Members | 1,750 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,537 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.