VB School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB Expert!

Join 306,933 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,757 people online right now. Registration is fast and FREE... Join Now!




VB6 or VB.Net?

2 Pages V  1 2 >  

VB6 or VB.Net?, Ways of telling in the code.

AdamSpeight2008

19 Jul, 2008 - 10:50 AM
Post #1

The Bandido Coder
Group Icon

Joined: 29 May, 2008
Posts: 2,732



Thanked: 160 times
Dream Kudos: 3925
Expert In: vb.net, LINQ

My Contributions
Labels
You have a label on a form and
If you're using
vb

Label1.Caption = "Text for label"

it's VB6

If you're using
vb

Label1.Text= "Text for label"

it's VB.Net

Buttons
You have a button on a form.
To set the text on the button.

You're using
vb

Button.Caption="Text on button"

it's VB6

You're using
vb

Button.Text="Text on button"

it's VB.Net

This post has been edited by AdamSpeight2008: 19 Jul, 2008 - 01:15 PM

User is offlineProfile CardPM
+Quote Post


Locke

RE: VB6 Or VB.Net?

19 Jul, 2008 - 01:23 PM
Post #2

Treasure Hunter
Group Icon

Joined: 20 Mar, 2008
Posts: 4,020



Thanked: 299 times
Dream Kudos: 325
Expert In: Java

My Contributions
Subs

If you're using
vb
Private Sub btnButton_Click()

'stuff

End Sub

it's VB6

If you're using
vb
Private Sub btnButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnButton.Click

'stuff

End Sub

it's VB.Net

This post has been edited by Locke37: 19 Jul, 2008 - 07:55 PM
User is offlineProfile CardPM
+Quote Post

Zhalix

RE: VB6 Or VB.Net?

19 Jul, 2008 - 05:40 PM
Post #3

D.I.C Regular
***

Joined: 7 May, 2008
Posts: 259



Thanked: 19 times
My Contributions
It'd be cool if first-time posters in the VB section had to read this before posting. Would probably save the moderators a lot of time. icon_up.gif
User is offlineProfile CardPM
+Quote Post

Locke

RE: VB6 Or VB.Net?

19 Jul, 2008 - 07:24 PM
Post #4

Treasure Hunter
Group Icon

Joined: 20 Mar, 2008
Posts: 4,020



Thanked: 299 times
Dream Kudos: 325
Expert In: Java

My Contributions
QUOTE(Zhalix @ 19 Jul, 2008 - 06:40 PM) *

It'd be cool if first-time posters in the VB section had to read this before posting. Would probably save the moderators a lot of time. icon_up.gif


Agreed.
User is offlineProfile CardPM
+Quote Post

no2pencil

RE: VB6 Or VB.Net?

19 Jul, 2008 - 07:28 PM
Post #5

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,488



Thanked: 303 times
Dream Kudos: 2875
Expert In: Goofing Off

My Contributions
** Pinned **
Although, little can be done to force anyone to read this.

But it's a great topic. icon_up.gif
User is offlineProfile CardPM
+Quote Post

Locke

RE: VB6 Or VB.Net?

19 Jul, 2008 - 07:47 PM
Post #6

Treasure Hunter
Group Icon

Joined: 20 Mar, 2008
Posts: 4,020



Thanked: 299 times
Dream Kudos: 325
Expert In: Java

My Contributions
QUOTE(no2pencil @ 19 Jul, 2008 - 08:28 PM) *

** Pinned **
Although, little can be done to force anyone to read this.

But it's a great topic. icon_up.gif


HOO-RAY!

Maybe some people will read this before they post. I don't think it'll keep them ALL organized...but it'll cut down on some of the wrong posting...I hope.
User is offlineProfile CardPM
+Quote Post

born2c0de

RE: VB6 Or VB.Net?

19 Jul, 2008 - 10:41 PM
Post #7

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 4,550



Thanked: 98 times
Dream Kudos: 2825
Expert In: J2ME, 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
There are far too many changes to mention here.
But I'll add another one:

VB.NET:
Control events usually have two parameters, the first one being an instance of the Object Class and the second one being a derived class of EventArgs. They are also followed by Handles <event>

Eg.
vb

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load


VB6:
Control Events either have no parameters or parameters of basic data types such as Integer, String etc.

vb
Private Sub Form_Activate()

End Sub

Private Sub Form_DblClick()

End Sub

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)

End Sub

Private Sub Form_Load()

End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)

End Sub

User is offlineProfile CardPM
+Quote Post

mineeric123

RE: VB6 Or VB.Net?

23 Nov, 2008 - 08:41 PM
Post #8

New D.I.C Head
*

Joined: 12 Nov, 2008
Posts: 36



Thanked: 1 times
My Contributions
Hello Everyone,


For a Rookie this was very helpful, because with out it, I may have been one of the people posting in the wrong place. Until now I had never really seen any VB6 code, or understood if it was really different.

Thanks

User is offlineProfile CardPM
+Quote Post

JerwinM

RE: VB6 Or VB.Net?

3 Dec, 2008 - 10:59 PM
Post #9

New D.I.C Head
*

Joined: 3 Dec, 2008
Posts: 2

QUOTE(Zhalix @ 19 Jul, 2008 - 05:40 PM) *

It'd be cool if first-time posters in the VB section had to read this before posting. Would probably save the moderators a lot of time. icon_up.gif

gud day...im jerwin 18yrs old,2nd year bsit...i just need some help from you...can u help me of making basic calculator using vb6? please...what codes will i use to the numbers 0-9, the +,-,*,/ and =...etc....hoping you can help me.tnks.
User is offlineProfile CardPM
+Quote Post

Zooms

RE: VB6 Or VB.Net?

6 Dec, 2008 - 05:53 AM
Post #10

D.I.C Head
**

Joined: 4 Dec, 2008
Posts: 63



Thanked: 2 times
My Contributions
Oh, so the programs you make in, for example, visual basic 2008 can only be used in Windows?
Because the codes you have written are the "defaults" in it.
User is offlineProfile CardPM
+Quote Post

Locke

RE: VB6 Or VB.Net?

8 Dec, 2008 - 09:56 AM
Post #11

Treasure Hunter
Group Icon

Joined: 20 Mar, 2008
Posts: 4,020



Thanked: 299 times
Dream Kudos: 325
Expert In: Java

My Contributions
Correct, it's used with the .Net Framework. Only with Windows as far as I know. I'm sure SOMEONE has figured out how to ninja it onto another system.
User is offlineProfile CardPM
+Quote Post

PsychoCoder

RE: VB6 Or VB.Net?

8 Dec, 2008 - 10:01 AM
Post #12

I Code, Therefore I am
Group Icon

Joined: 26 Jul, 2007
Posts: 14,919



Thanked: 517 times
Dream Kudos: 11525
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

My Contributions
The true .Net Framework will run only on Windows. There is now a version called Mono that will run on *Nix
User is offlineProfile CardPM
+Quote Post

Locke

RE: VB6 Or VB.Net?

9 Dec, 2008 - 05:49 PM
Post #13

Treasure Hunter
Group Icon

Joined: 20 Mar, 2008
Posts: 4,020



Thanked: 299 times
Dream Kudos: 325
Expert In: Java

My Contributions
QUOTE(PsychoCoder @ 8 Dec, 2008 - 10:01 AM) *
There is now a version called Mono that will run on *Nix


<off-topic>
Speaking of which...I still don't see that li'l penguin as your preferred operating system yet...smile.gif
</off-topic>

This post has been edited by Locke37: 9 Dec, 2008 - 05:49 PM
User is offlineProfile CardPM
+Quote Post

mailderemi

RE: VB6 Or VB.Net?

27 Jan, 2009 - 10:55 PM
Post #14

New D.I.C Head
*

Joined: 27 Jan, 2009
Posts: 1


My Contributions
VB6 or VB.Net?
I am using VB for about 10 years... tested VB.Net 2003,2005,2008 and 2010 (beta)...
I think one of the FULL BUG program is Visual Studio .Net . Of course VS2008 is one of the bests but because of those bugs I prefer VB6...

I don't know if I put a link here, admin user makes me banded or...
This shows how powerful is VB6 !!
User is offlineProfile CardPM
+Quote Post

firebolt

RE: VB6 Or VB.Net?

4 Apr, 2009 - 12:53 AM
Post #15

D.I.C Lover
Group Icon

Joined: 20 Feb, 2009
Posts: 5,476



Thanked: 77 times
Dream Kudos: 1675
My Contributions
Great document which has the differences.



User is online!Profile CardPM
+Quote Post

eyes_angel

RE: VB6 Or VB.Net?

4 Apr, 2009 - 01:57 AM
Post #16

New D.I.C Head
*

Joined: 1 Apr, 2009
Posts: 2

QUOTE(firebolt @ 4 Apr, 2009 - 12:53 AM) *

Great document which has the differences.


hi i want to kno if i hv to make a simple graphical interface to control the industrial system then which is better VB6 or VB .Net?i know VB .Net is gud ,having more features but wats good in VB6.i want to make it in Vb6 and want to kno y VB6.i m choosing VB6 as i hv learnt dis language and dont kno VB.Net.pls help me .reply sonn pls....

User is offlineProfile CardPM
+Quote Post

firebolt

RE: VB6 Or VB.Net?

4 Apr, 2009 - 02:00 AM
Post #17

D.I.C Lover
Group Icon

Joined: 20 Feb, 2009
Posts: 5,476



Thanked: 77 times
Dream Kudos: 1675
My Contributions
vb6 is easier to understand and use by a factor of 4 compared to VB.NET but i muset agree, VB.NET had much better and more features than VB6
User is online!Profile CardPM
+Quote Post

PsychoCoder

RE: VB6 Or VB.Net?

4 Apr, 2009 - 08:42 AM
Post #18

I Code, Therefore I am
Group Icon

Joined: 26 Jul, 2007
Posts: 14,919



Thanked: 517 times
Dream Kudos: 11525
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

My Contributions
QUOTE(mailderemi @ 27 Jan, 2009 - 09:55 PM) *

VB6 or VB.Net?
I am using VB for about 10 years... tested VB.Net 2003,2005,2008 and 2010 (beta)...
I think one of the FULL BUG program is Visual Studio .Net . Of course VS2008 is one of the bests but because of those bugs I prefer VB6...

I don't know if I put a link here, admin user makes me banded or...
This shows how powerful is VB6 !!


I'm not understanding what you're saying. What bugs are you referring to? And if you've truly been using VB for 10 years you would know just how powerful VB (not VB.NET) is not. VB6 (and older) were good for rapid deployment, and for new programmers to cut their teeth with, but it really never had a place with the real programming languages simply because of it's lack of functionality and power

User is offlineProfile CardPM
+Quote Post

firebolt

RE: VB6 Or VB.Net?

5 Apr, 2009 - 04:33 AM
Post #19

D.I.C Lover
Group Icon

Joined: 20 Feb, 2009
Posts: 5,476



Thanked: 77 times
Dream Kudos: 1675
My Contributions
whats a full bug program??
haha 300th post. how ironic!

This post has been edited by firebolt: 5 Apr, 2009 - 04:34 AM
User is online!Profile CardPM
+Quote Post

eyes_angel

RE: VB6 Or VB.Net?

5 Apr, 2009 - 06:21 AM
Post #20

New D.I.C Head
*

Joined: 1 Apr, 2009
Posts: 2

QUOTE(firebolt @ 4 Apr, 2009 - 02:00 AM) *

vb6 is easier to understand and use by a factor of 4 compared to VB.NET but i muset agree, VB.NET had much better and more features than VB6

yup vb .net is better but it is true only wen i need to use its all features.i want to know wen i m going to design a simple interface then y i should choose vb .net y nt vb6 wen it is simple to use and understand.pls reply if u hv proper ans, y to go wid vb6 while designing a simple interface.
User is offlineProfile CardPM
+Quote Post

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 03:14AM

Live VB Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month