Re: New to .NET
- From: Jack Leach <dymondjack at hot mail dot com>
- Date: Thu, 13 Aug 2009 09:46:01 -0700
Thanks for the feedback. My favorite VBA book was published by WROX as well,
and I've been through a few, so I'll take a look at this one, they seem to do
well.
I have taken a peek at the framework in the past, but it is very foreign to
me. I'm not quite sure where to start (or wasn't about a year ago when I got
curious about it). I'll take your advice and try my best to keep these two
languages seperate (I've seen many articles, etc., describing the
similarities or differences between VBA and .NET, and have gotten the
impression that they are acutally nothing alike, despite some people's
attempts to make it seem so. Hearing this from someone who has been through
it takes a lot of the question of how much I can rely on already knowing).
Thanks,
--
Jack Leach
www.tristatemachine.com
"I haven't failed, I've found ten thousand ways that don't work."
-Thomas Edison (1847-1931)
"Scott M." wrote:
There are many books out there, but I like "Professional Visual Basic 2008".
by Bill Evjen, et all. WROX.
As an IT technical trainer that myself came from a VBA/VB 6 background when
..NET first came out, I can tell you to forget everything you know about VB
6/VBA. VB .NET is 200% different. Learning it will require an
understanding of the underlying Framework that your code is actually
executed within (the .NET Framework).
In my experience with .NET since its early betas, I've seen time and time
again folks who are coming from VB 6/VBA backgrounds and have seen some VB
..NET and recognize some of the syntax and believe that VB .NET just has some
new stuff added to what they already know. This couldn't be farther from
the truth. Because of that, your two questions below don't really have any
meaning in .NET.
..NET doesn't use "data types" like VB/VBA used to. Everything is an object
of one type or another. Textboxes hold String object data, period. They
show the String object data you give them. If you want that String object
data formatted, you don't format the textbox, you format the data.
Be prepared to throw everything you know about VBA out and to start learning
from scratch. The minute you make an assumption that something works the
same in .NET as it did in VBA is the minute that your code won't work as it
should.
-Scott
"Jack Leach" <dymondjack at hot mail dot com> wrote in message
news:5502F8D9-0878-4947-BD2A-008CAD715F76@xxxxxxxxxxxxxxxx
Hello and thanks in advance...
I've download Visual Basic 2008 Express edition with the intent to create
some glorified calculators, and was wondering if someone may be able to
supply any links or recommended books for learning the basics of VB.
I'm (fairly) fluent in VBA, having written a few data management
applications with MS Access, so I'm not a complete dunce with programming.
Aside from that, there's two things I'm wondering about at the moment,
maybe
someone could help with (building a labor cost calculator):
1) Datatypes for text in a textbox... With VBA in Access, a bound textbox
is set to a specific datatype. My textboxes in VB are unbound, and
therefor
do not seem to have a specific datatype (they all default to a string?).
Is
there a default setting that I can use to make sure that a numberic value
is
entered into the textbox, or do I need to check validate this using the
IsNumeric function for each textbox...
2) Formats in a textbox... in my control txtLaborRate, I would like this
to
be formatted as currency. I perused the properties of the control but
haven't come across anything I recognize to set a default format. So I
tried
putting some code behind the control using the
FormatCurrency(Me.txtLaborRate.Text) function, but haven't gotten the
results
I was looking for. In the meantime I'll continue playing around with it.
Any help would be great!
Thanks,
--
Jack Leach
www.tristatemachine.com
"I haven't failed, I've found ten thousand ways that don't work."
-Thomas Edison (1847-1931)
- References:
- New to .NET
- From: Jack Leach
- Re: New to .NET
- From: Scott M.
- New to .NET
- Prev by Date: Re: New to .NET
- Next by Date: Re: New to .NET
- Previous by thread: Re: New to .NET
- Next by thread: Re: New to .NET
- Index(es):
Relevant Pages
|