Re: New to .NET

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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)




.



Relevant Pages

  • Re: New to .NET
    ... Textboxes hold String object data, ... 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 ... Datatypes for text in a textbox... ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Resize shape(s) with text
    ... Look in the Format> Behavior dialog at the group settings. ... "Joe" wrote in message ... When the textbox shape of the textbox-bitmap ... Is is possible (with VBA) to break the group, ...
    (microsoft.public.visio.developer)
  • Re: PPT VBA - Clicking on non-existent textbox?
    ... Monsieur Ziggie, bon soir. ... This bit of appears to be VBA has a SNOBOL's chance of helping you do the deed, ... > is fine until I have more text than I can reasonably show in the textbox. ... Steve Rindsberg, PPT MVP ...
    (microsoft.public.powerpoint)
  • Re: Date Formatting Woes
    ... What is putting the text in the textbox? ... So you'll either have to parse out the date or use a different date format ... that is recognizable by VBA. ... > going past the date1 segment of code. ...
    (microsoft.public.excel.programming)
  • Datumskonvertierung: VBA macht probleme
    ... In VBA packe ich das dann in eine Textbox. ... aber nicht genau für 12 Uhr. ... Textbox allerdings das Format Zeit Format mit folgendem Code ...
    (microsoft.public.de.excel)