472,803 Members | 1,022 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,803 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 1048
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.