VB.Net  | | |
May 23rd, 2002, 01:39 AM
|
#1 (permalink)
| | Senior Member
Join Date: Oct 2001
Posts: 552
|
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....
|
| |
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.
|
| |
May 23rd, 2002, 11:00 AM
|
#3 (permalink)
| | ph34r t3h g04t
Join Date: Oct 2001 Location: Kingsford, MI
Posts: 19,594
|
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 |
| |
May 23rd, 2002, 09:12 PM
|
#4 (permalink)
| | Senior Member
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. |
| |
May 23rd, 2002, 10:59 PM
|
#5 (permalink)
| | Senior Member
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? |
| |
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 :/ |
| |
May 23rd, 2002, 11:04 PM
|
#7 (permalink)
| | Where's the beef?
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?
|
| |
May 23rd, 2002, 11:15 PM
|
#8 (permalink)
| | Where's the beef?
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 |
| |
May 24th, 2002, 12:02 AM
|
#9 (permalink)
| | Senior Member
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. |
| |
May 24th, 2002, 01:03 PM
|
#10 (permalink)
| | Where's the beef?
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 |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |