Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Coders Corner


Reply
 
Share Thread Tools Display Modes
Old 10-03-2005, 11:32 AM   #1
Constant Bitrate
 
takissd's Avatar
 
Join Date: May 2004
Location: San Diego, CA
Posts: 118
takissd is on a distinguished road
build control in vb.net 2005

hello, i have a question. Does anyone have a small example of how to build a control in vb.net 2005? i have found examples in vb.net 2003 on google, but not anything special for 2005.
What i want to build is a control that will give me some values. for example: lets say i use a control called "mycontrol" So when i take mycontrol.value1 it will return 5 , when i want mycontrol.value2 it will return 232 and so on.
Is this possible? I know it looks more like a function than a control but i wanna use it as a control. Please let me know. thanks
__________________
-VIA EPIA M10000/512MB/40GB HD
-DWW motorized 7'
-BU 303 GPS w/iGuidance/ CF
-Opus90w
-Belkin Bluetooth
-Pioneer HU

[||||||||||] 95% done
takissd is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 10-03-2005, 12:08 PM   #2
FLAC
 
TheLlama's Avatar
 
Join Date: Jul 2004
Location: All over the world
Posts: 970
TheLlama is on a distinguished road
How about not using VB? I'm sorry, that was uncalled for. I normally have enlightening unbiased replys. Not this time though. VB sucks, learn a real programming language.
TheLlama is offline   Reply With Quote
Old 10-03-2005, 12:41 PM   #3
Constant Bitrate
 
takissd's Avatar
 
Join Date: May 2004
Location: San Diego, CA
Posts: 118
takissd is on a distinguished road
thanx for your comments but i need to do it on vb.net 2005. i have done the whole project in that and i am not planning to learn another language cause vb sucks. i have a little time to work on my hobbie stuff and vb is covering good enough.
__________________
-VIA EPIA M10000/512MB/40GB HD
-DWW motorized 7'
-BU 303 GPS w/iGuidance/ CF
-Opus90w
-Belkin Bluetooth
-Pioneer HU

[||||||||||] 95% done
takissd is offline   Reply With Quote
Old 10-03-2005, 01:26 PM   #4
Constant Bitrate
 
Join Date: Mar 2005
Location: UK
Posts: 197
World705 is on a distinguished road
i work with vb.net 2003 is there any difference in coding ?
World705 is offline   Reply With Quote
Old 10-03-2005, 01:41 PM   #5
Constant Bitrate
 
takissd's Avatar
 
Join Date: May 2004
Location: San Diego, CA
Posts: 118
takissd is on a distinguished road
not sure, but when i found some examples online, vb2003 has a selection at the beginning where you can make a new control /library, but vbnet2005 does not. so i started it as a class but it did not work..
__________________
-VIA EPIA M10000/512MB/40GB HD
-DWW motorized 7'
-BU 303 GPS w/iGuidance/ CF
-Opus90w
-Belkin Bluetooth
-Pioneer HU

[||||||||||] 95% done
takissd is offline   Reply With Quote
Old 10-04-2005, 04:33 PM   #6
Constant Bitrate
 
zzachattack2's Avatar
 
Join Date: Oct 2005
Location: Colorado
Posts: 113
zzachattack2 is on a distinguished road
2003 and 2005 framework libraries are relatively the same, there really shouldn't be any difference in the code, with the exception that the templates use partial classes.
zzachattack2 is offline   Reply With Quote
Old 10-08-2005, 03:24 AM   #7
Newbie
 
Join Date: Oct 2005
Posts: 5
TommyGun is on a distinguished road
Have a look at the Microsoft website under visual studio 2005. There are a lot of tutorials to be found if you take the time to look. I've been using visual studio 2005 beta 2 to do some web development, and most of the work now is just drag and drop. How are you .Net skills?
TommyGun is offline   Reply With Quote
Old 10-10-2005, 12:28 PM   #8
Constant Bitrate
 
takissd's Avatar
 
Join Date: May 2004
Location: San Diego, CA
Posts: 118
takissd is on a distinguished road
thanx people, i have been having some progress with that, i think i am getting there! yeah i checked the msdn website. there is lots of info there!
__________________
-VIA EPIA M10000/512MB/40GB HD
-DWW motorized 7'
-BU 303 GPS w/iGuidance/ CF
-Opus90w
-Belkin Bluetooth
-Pioneer HU

[||||||||||] 95% done
takissd is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 10-10-2005, 03:45 PM   #9
FLAC
 
IntellaWorks's Avatar
 
Join Date: Jun 2004
Location: NH
Posts: 1,173
IntellaWorks is on a distinguished road
Why a control and not a class? If you ABSOLUTELY need these values on a control then just create a property in the control.

Code:
Public Property TheProperty(tst as integer) as integer Get Return value Set (tst as integer) value = tst end Property

__________________
Progress [I will seriously never be done!]
Via EPIA MII
512MB RAM
OEM GPS (embedded)
nLite WinXP pro on
1GB Extreme III CF card
Carnetix 1260 startup/ DC-DC regulator
Software: Still, re-Writing my existing front end in .Net
IntellaWorks is offline   Reply With Quote
Old 10-10-2005, 03:50 PM   #10
FLAC
 
IntellaWorks's Avatar
 
Join Date: Jun 2004
Location: NH
Posts: 1,173
IntellaWorks is on a distinguished road
Quote: Originally Posted by TheLlama
How about not using VB? I'm sorry, that was uncalled for. I normally have enlightening unbiased replys. Not this time though. VB sucks, learn a real programming language.


Oh yea, VB is a real programming language if you don't use it then don't comment on it. In the past VB was a "hobbiest language" now its very powerful. I'm so sick of poeple being stuck in thier safe little C/C++ bubbles, thinking no programming language can beat it. Here's a word of advice: .Net 2005 changes that my friend so jump on the bus or be one of the few left behind.... Learn to like vb or c# (afterall they created C# for you guys in the bubble to be able to easily migrate over to a VB like, managed, language)
__________________
Progress [I will seriously never be done!]
Via EPIA MII
512MB RAM
OEM GPS (embedded)
nLite WinXP pro on
1GB Extreme III CF card
Carnetix 1260 startup/ DC-DC regulator
Software: Still, re-Writing my existing front end in .Net
IntellaWorks is offline   Reply With Quote
Old 10-12-2005, 12:22 PM   #11
Constant Bitrate
 
Join Date: Mar 2005
Location: UK
Posts: 197
World705 is on a distinguished road
well said
World705 is offline   Reply With Quote
Old 10-12-2005, 12:55 PM   #12
FLAC
 
SnyperBob's Avatar
 
Join Date: Nov 2001
Location: Illinois
Posts: 1,162
SnyperBob is on a distinguished road
Interesting battle here. Well, I originally learned to program in C++. I thought it was so robust, which it definately is. Recently I took a VB course and I'm amazed with how easy it is to use. I prefer it over C++ now, it's so easy to use, I don't spend 75% of my time looking up how to code each include or whatever like I had to all the time in C++.

So from someone that has used both, I've actually got a frontend made in VB in about 2 days that works pretty well. It would have taken a couple weeks to get to that point in C++. If you haven't tried VB, I recommend it.
__________________
www.mobile-effects.com

Free file hosting, picture gallery hosting for installs, PM me.

Internet's first Front End Skin browser, featured installs, downloads, links, informative articles - all free to registered users.
SnyperBob is offline   Reply With Quote
Old 10-12-2005, 01:03 PM   #13
Constant Bitrate
 
takissd's Avatar
 
Join Date: May 2004
Location: San Diego, CA
Posts: 118
takissd is on a distinguished road
Quote: Originally Posted by IntellaWorks
Why a control and not a class? If you ABSOLUTELY need these values on a control then just create a property in the control.

Code:
Public Property TheProperty(tst as integer) as integer Get Return value Set (tst as integer) value = tst end Property

thanks for the advice, so lets say this property "TheProperty" aas you called it has more values then how do i do it? for example i want to have TheProperty.value1, TheProperty.value2, TheProperty.value3 and so on how would i do it? And last thing, do i just do it on vb2005 as a new form or as a class and then build it? the outcome would be a dll i imagine. thanks again
__________________
-VIA EPIA M10000/512MB/40GB HD
-DWW motorized 7'
-BU 303 GPS w/iGuidance/ CF
-Opus90w
-Belkin Bluetooth
-Pioneer HU

[||||||||||] 95% done
takissd is offline   Reply With Quote
Old 10-12-2005, 02:37 PM   #14
FLAC
 
TheLlama's Avatar
 
Join Date: Jul 2004
Location: All over the world
Posts: 970
TheLlama is on a distinguished road
Quote: Originally Posted by IntellaWorks
Oh yea, VB is a real programming language if you don't use it then don't comment on it. In the past VB was a "hobbiest language" now its very powerful. I'm so sick of poeple being stuck in thier safe little C/C++ bubbles, thinking no programming language can beat it. Here's a word of advice: .Net 2005 changes that my friend so jump on the bus or be one of the few left behind.... Learn to like vb or c# (afterall they created C# for you guys in the bubble to be able to easily migrate over to a VB like, managed, language)

Umm... Not everyone likes to program in languages owned by a giant corporation. You sort of immediately isolate yourself and restrict your experience when you do that.
TheLlama is offline   Reply With Quote
Old 10-12-2005, 06:16 PM   #15
FLAC
 
SFiorito's Avatar
 
Join Date: May 2004
Posts: 1,251
SFiorito is on a distinguished road
who cares who owns the language???? jeez... that's like saying using a windowing toolkit is bad because it "isolates" you to that framework. if someone is using Cocoa, .NET, or Java they are obviously not worried about "isolating" themselves, right? if it were up to you we'd all be using ANSI C making ASCII frontends.
SFiorito is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Voice Control for Media Engine??? valve90210 Media Engine 5 10-02-2006 12:01 PM
Control RR from VB.NET weekendowel Road Runner 7 11-07-2005 02:52 PM
Cruise Control MGD Road Runner 16 05-05-2005 05:41 PM
OBDII, GPRS, and car control CarBaron Hardware Development 3 04-04-2005 10:25 PM
My hardware/Software computer control system - Wish list/feedback - Easy power off DarkWolf General Hardware Discussion 22 08-13-2001 02:42 PM



All times are GMT -5. The time now is 12:45 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics