Visual Basic/VB >> New to VB

by Jay » Sun, 12 Sep 2004 02:01:30 GMT



Hi Folks,

I am new to VB. I have 3 books on it but they seem to jump around between
making forms and attempting to explain the code that is under each object.My
last coding project was Dbase III so I am real rusty. The books are more of
a load to me then an assist but that could be due to my first attempts at
seeing what in the world is going on.

If someone could take the time, could someone go thru a step by step on just
how to put the date on a label object. I think there is a status bar that
can be automatically added but I want to see how the variables, forms and
modules are related.

I am trying to buy VB6 on eBay and I think it should be VB6 Professional.

Are there any good websites for beginners?

Thanks so much
pcb4



Visual Basic/VB >> New to VB

by Steve Gerrard » Sun, 12 Sep 2004 03:42:19 GMT



|
|
| Hi Folks,
|
| I am new to VB. I have 3 books on it but they seem to jump around
between
| making forms and attempting to explain the code that is under each
object.My
| last coding project was Dbase III so I am real rusty. The books are
more of
| a load to me then an assist but that could be due to my first attempts
at
| seeing what in the world is going on.
|
| If someone could take the time, could someone go thru a step by step
on just
| how to put the date on a label object. I think there is a status bar
that
| can be automatically added but I want to see how the variables, forms
and
| modules are related.
|
| I am trying to buy VB6 on eBay and I think it should be VB6
Professional.
|
| Are there any good websites for beginners?
|
| Thanks so much
| pcb4
|

Make a new Std Exe project.
Place a label on Form1.
Double-click on the form (not the label).
Place this code in the form load event:

Private Sub Form_Load()
Label1.Caption = Date
End Sub

Run it.

The Form Load event fires when the form is loaded, just before it is
shown.
The Date function returns today's date. You can format if you like using
the Format function, or accept the default format.
The caption property of a label is the text that the label displays.


Visual Basic/VB >> New to VB

by Jay K » Sun, 12 Sep 2004 09:03:42 GMT


Thanks Steve..that makes sense. Now if I wanted to add "Todays date is"
on Form1 in front of the date, I added--> Form1.Print "Today date is "
Date

This didn't work

Jay

Visual Basic/VB >> New to VB

by Jay K » Sun, 12 Sep 2004 09:06:25 GMT


Steve

I just figured out how to add text in front of date...disregard my last
post...this is kinda neat

Jay

Visual Basic/VB >> New to VB

by Jay K » Sun, 12 Sep 2004 09:15:00 GMT


Thanks for the info...maybe later it will all make sense!

Jay

Visual Basic/VB >> New to VB

by Jay K » Sun, 12 Sep 2004 09:17:06 GMT


Steve,

Now one more favor for the day!

I want to use a push button to launch the form which will then display
the date and the time I just added

Your sample gave me some insight to this level of structuring

Jay

Visual Basic/VB >> New to VB

by Steve Gerrard » Sun, 12 Sep 2004 09:35:06 GMT


| Steve,
|
| Now one more favor for the day!
|
| I want to use a push button to launch the form which will then display
| the date and the time I just added
|
| Your sample gave me some insight to this level of structuring
|
| Jay

I think you mean:

Click the menu Project/Add Form, adding another regular form called
Form2.

Put the label and Form_Load code from before on Form2.

On Form1, put a command button (Command1). Double-click it, and write:

Private Sub Command1_Click()
Form2.Show
End Sub

Visual Basic/VB >> New to VB

by Jay K » Sun, 12 Sep 2004 09:47:03 GMT


Ahhhhhhhhhhh I see the linking and technique...back to it!

Thanks for the help..I have a huge project at work and it requires me to
get into VB. I need to take over 100 files (ASCII text) into a number
of databases then start querying the databases to create output
information. The program also needs to be able to tell the differences
from the old databases to the new databases. In other words, it has to
be very dynamic.

I sure got a way to go!

Thanks again..I'm sure I'll be back!

Jay

Visual Basic/VB >> New to VB

by Randy Birch » Sun, 12 Sep 2004 11:03:24 GMT

Just a note ... my site's URL has changed from mvps.org/vbnet to
http://vbnet.mvps.org/. I suspect the current redirect from the old name
will work forever, but you never know.


Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/



: Here are some links. They're not beginner info.
: but good for source code and samples:
:
: http://www.vbip.com VB Internet Programming
: http://www.zarr.net/vb/download/default.asp Zarr 's VB Website -
Source
: http://www.programmersheaven.com/ A Programmers Heaven
: http://www.vbthunder.com/ Visual Basic Thunder
: http://www.vbdiamond.com/ VB Diamond
: http://www.coderoom.com/misc/misc5.html Code Room -source
: http://vbaccelerator.com vbAccelerator - source
: http://www.mvps.org/vb/hardcore/ Hardcore Visual Basic -book
: http://www.mvps.org/vb/index2.html?samples.htm Karl Peterson 's
site
: http://www.mvps.org/emorcillo/ Eduardo Morcillo site
: http://www.vb-helper.com/ VB Helper
: http://www.codehound.com/vb/ CodeHound - VB Search Engine
: http://www.freevbcode.com/ FreeVBCode.com
: http://www.vb-world.net/ VB-World.net
: http://www.mvps.org/vb/apixref.htmMVPS.Org API index
: http://www.fawcette.com/archives/nav.asp?pubid=1VBPJ downloads -
: Fawcette Publishing
: http://www20.brinkster.com/EDais/ConstSearch.aspWin32 API
constants
: search
: http://www.mvps.org/vbnet/ VBnet - Randy Birch website
: http://www.xbeat.net/vbspeed/VBspeed
:
:
: --
: --


: >
: >
: > Hi Folks,
: >
: > I am new to VB. I have 3 books on it but they seem to jump around
between
: > making forms and attempting to explain the code that is under each
: object.My
: > last coding project was Dbase III so I am real rusty. The books are more
: of
: > a load to me then an assist but that could be due to my first attempts
at
: > seeing what in the world is going on.
: >
: > If someone could take the time, could someone go thru a step by step on
: just
: > how to put the date on a label object. I think there is a status bar
that
: > can be automatically added but I want to see how the variables, forms
and
: > modules are related.
: >
: > I am trying to buy VB6 on eBay and I think it should be VB6
Professional.
: >
: > Are there any good websites for beginners?
: >
: > Thanks so much
: > pcb4
: >
: >
:
:

Visual Basic/VB >> New to VB

by mayayana » Sun, 12 Sep 2004 22:05:30 GMT


Oh, thanks. Does that mean that others will also be changing in
the same way, like morcillo.mvps.org and peterson.mvps.org?
I haven't checked my links for validity recently.

Visual Basic/VB >> New to VB

by Randy Birch » Sat, 25 Sep 2004 08:11:31 GMT

Yes, eventually, but with the site names first, not the owner, eg
http://ccrp.mvps.org instead of www.mvps.org/ccrp/

--


Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/




:
: > Just a note ... my site's URL has changed from mvps.org/vbnet to
: > http://vbnet.mvps.org/. I suspect the current redirect from the old name
: > will work forever, but you never know.
:
: Oh, thanks. Does that mean that others will also be changing in
: the same way, like morcillo.mvps.org and peterson.mvps.org?
: I haven't checked my links for validity recently.
:
:

Similar Threads

1. vb.net Setup Issue New to VB - VB.Net

2. VB.Net String MID$ Question - New to vb.net

I am passing in a string of varied length
    Example1: mil2345_23.lst
    Example2: mil23456_1.lst
    Example3: mil5567_1234.lst

What I need is to parse out all text after the _ (underscore) and before the
.)
    From example 1 I need "23" returned
    From example2 I need "1" Returned
    From Example3 I need "12345" returned

I was think that MID$ would work but I am not sure how to do this.

Thanks in advance for all your help


3. VB project, iam new to vb - Visual Basic/VB

4. I'm New to VB, I wish to Pass 2 strs to a VB Function

5. New to VB code - Help with attached code

6. VERY NEW to VB .NET need help with a dll

refLateChargesTableAdapterI am very new to VB .NET and I am having some 
trouble.  I want to create a DLL file that will house functions that other 
systems can call.  My major problem is that these functions need to use 
tables to do their processing and I want the tables to be in the dll so that 
I can distribute the dll to the  various networks that are in my company.  I 
read that DLL files can contain tables as well as code and I have 
successfully put tables in the dll project I created but I have no ideal how 
to connect to these tables from my functions.  

The tables are in a dataset called 'Dataset1'.  The first table I am trying 
to access is called 'refLateChargesTable'.  I don't know what a 
connectionstring would look like for these tables.

Any help would be appreciated. 

Thanks,
Randy

7. DataList adding new Items VB - ASP.NET Web Controls