home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

VB.Net

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2635
Discussions: 201,005, Posts: 2,380,078, Members: 246,373
Old May 23rd, 2002, 01:39 AM   Digg it!   #1 (permalink)
Senior Member
 
Rhino's Avatar
 
Join Date: Oct 2001
Posts: 552
VB.Net

Tried to make a simple Windows app w/ it. Wayyyy different than ver. 6. Resembles J++ 6. All I was trying to do was change the form's bg color in the change event of a date time picker. Anyone used this version yet?
__________________
It's like that, and it's like this....
Rhino is offline   Reply With Quote
Old May 23rd, 2002, 04:23 AM     #2 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,402
I've converted a small app that I have from VB6, to VB.NET ... the conversion wasn't too bad, you have to make sure to get rid of Variants though... they're a no no
Also no default properties for objects... before you could say lblValue1 = "blahblahblah"
Now you have to explicitly say lblValue1.Text = "Stuff" or it complains

DoEvents is now
System.Windows.Forms.Application.DoEvents()
There are a number of things like that, that make the code REALLLLLY long ... kinda like Java..
They can't control java so they created C#, and they wanted to escape the limitations of VB so they made it look like Java lol


--- edit ---
Doh, just realized it is now lblValue1.Text not caption
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.

Last edited by vass0922 : May 23rd, 2002 at 04:46 AM.
vass0922 is offline   Reply With Quote
Old May 23rd, 2002, 11:00 AM     #3 (permalink)
ph34r t3h g04t
 
Whir's Avatar
 
Join Date: Oct 2001
Location: Kingsford, MI
Posts: 19,594
Blog Entries: 7
Not to mention you have to Dim forms?? What's up with that?! Although I'll say one thing, creating a DAL is way way easier once you get how the IDE works. Good thing I don't do anything else with it, I might have to learn stuff. <shudder>

-Whir
Whir is online now   Reply With Quote
Old May 23rd, 2002, 09:12 PM     #4 (permalink)
Senior Member
 
Rhino's Avatar
 
Join Date: Oct 2001
Posts: 552
DIM forms? Why? Or are you saying that the Windows genereated code does this?

I bought a dummies book today, hopefully it will help.

The part where I'm most confused is that the events are looking like methods. Now in Java, you would have one event method, and let each control listen for an event, then when an event on the method occured, in the event method code, you would say that if e = Button.press or whatever, then do whatever.

And in VB6, it was kinda like you didn't have to worry about any of that.

But in .Net, its looking like each control event gets some action event brought into it, so I'm lost there.

And what about changing the form bgproperty? When I type "Form1......", there is hardly any attributes of it to change..

I've only messed with it for about an hour, so I'm sure I'll get more into.
Rhino is offline   Reply With Quote
Old May 23rd, 2002, 10:59 PM     #5 (permalink)
Senior Member
 
Rhino's Avatar
 
Join Date: Oct 2001
Posts: 552
I get it now, kind of anyways.

The Click event, or other events are all kind of like main methods. You write you own method and call that method in the event [mani methods]. I wonder if it matters wherein you write the other methods?
Rhino is offline   Reply With Quote
Old May 23rd, 2002, 11:01 PM     #6 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,402
I believe it would be something like Form.Control.blahblahblah everything is like really long now so you gotta sort through the tree :/
vass0922 is offline   Reply With Quote
Old May 23rd, 2002, 11:04 PM     #7 (permalink)
Where's the beef?
 
Scott Tiger's Avatar
 
Join Date: Mar 2002
Location: Southwest, VA
Posts: 3,585
I've got to try that. I had a VB class for one semester (had a big class load though and didn't pay attention in that class too much) and I'm just try to imagine how they made VB an OO language. I was told that there was some OO stuff in 6.0 but I didn't pay attention enought to ever see it.
__________________
Where's Lunch?
Scott Tiger is offline   Reply With Quote
Old May 23rd, 2002, 11:15 PM     #8 (permalink)
Where's the beef?
 
Scott Tiger's Avatar
 
Join Date: Mar 2002
Location: Southwest, VA
Posts: 3,585
Did the dummies book come with a demo version of VB.net. There's no way I'm going to pay what they want for it just to try it out
Scott Tiger is offline   Reply With Quote
Old May 24th, 2002, 12:02 AM     #9 (permalink)
Senior Member
 
Rhino's Avatar
 
Join Date: Oct 2001
Posts: 552
Vass--I'll find it eventually!

Scott--.Net lets you inherit stuff, so its like if you have a form--it's a class, and you can make another form that inherits from that class. I haven't got too much into it as far as abstract objects. But my guess is that you could kind of use the forms for that. For example, Object Baseball Player may have attributes like Position, Height, Age, etc. I dunno how one would really go about plugging that into VB.

Scott--No cd. The book I got was "7 books in 1." It was for the whole visual studio. Really thick, and I'm just working in the VB section right now. They didn't have a just VB.Net book at this store. I paid $60 for the full standard edition, being a college student.

The thing that seems real neat about it is the common interface. I guess they use the same interface and windows contols, etc. for all the languages. Kinda like you open up VS and just pick which language you want to use based on your needs.
Rhino is offline   Reply With Quote
Old May 24th, 2002, 01:03 PM     #10 (permalink)
Where's the beef?
 
Scott Tiger's Avatar
 
Join Date: Mar 2002
Location: Southwest, VA
Posts: 3,585
Rhino thanks for the info; that does sound cool. I'll eventually get around to playing with that but unfortunately it's going to have to take a back burner for now. All the big players around here are running Java shops and that's what I going to spend the most time learning right now (aside from Linux).

I will definitely have to play with that though...

BTW...Student discounts rock! I got a copy of Visual Age professional with the workbook for < $60. Too bad it's being replaced; it was a great tool and had an incredible debugger. Not a huge loss I guess though since it's being replaced by WSAD, which is based on the open source project Eclipse.

Thanks for the info.

ST
Scott Tiger is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3136)
‘Rogue’ or ‘Rouge’? (10)
Charges against non-tippers dropped.. (22)
Foxconn Blackops x48 MoBo (5)
Nvidia GTX 260 problem (14)
Delete an OS (18)
Laptop with wireless problem. (14)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (9)
windows vista security holes (19)
[F@H SPAM 11/16/09] ! 1/2 months to.. (42)
windows 7 problem (7)
Recent Discussions
Computer shutting down on its own (7)
Hp Artist Edition + Matching Bag (1)
cant access the internet (1)
COD radeon problems (0)
Browsers wont load websites (4)
Unallocated Space (3)
Size after cutting 700Mb file is 2.5 .. (1)
Blackberry Bold 9000 (0)
Can't open Word (13)
Rar volume (number 7) (1)
System restore :) (1)
Laptop with wireless problem. (14)
Looking for new motherboard (2)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (42)
add ram to existing (4)
EVGA 9800 gtx help with finding a goo.. (13)
"Documents and Settings" fo.. (7)
Delete an OS (18)
Outputing 1080p from my PC to my 720p.. (0)
panasonic dmr ez48veb recorder (0)
Need help getting speakers to work (2)
Nvidia GTX 260 problem (14)
Point and Shoot Camera Suggestions. (9)
Is the PSU I received dead? (16)
FreeAgent drive software not x64 comp.. (1)


All times are GMT -4. The time now is 05:54 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28