Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: build control in vb.net 2005

  1. #1
    Constant Bitrate takissd's Avatar
    Join Date
    May 2004
    Location
    San Diego, CA
    Posts
    118

    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

  2. #2
    FLAC TheLlama's Avatar
    Join Date
    Jul 2004
    Location
    All over the world
    Posts
    970
    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.

  3. #3
    Constant Bitrate takissd's Avatar
    Join Date
    May 2004
    Location
    San Diego, CA
    Posts
    118
    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

  4. #4
    Constant Bitrate
    Join Date
    Mar 2005
    Location
    UK
    Posts
    197
    i work with vb.net 2003 is there any difference in coding ?

  5. #5
    Constant Bitrate takissd's Avatar
    Join Date
    May 2004
    Location
    San Diego, CA
    Posts
    118
    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

  6. #6
    Constant Bitrate zzachattack2's Avatar
    Join Date
    Oct 2005
    Location
    Colorado
    Posts
    113
    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.

  7. #7
    Newbie
    Join Date
    Oct 2005
    Posts
    5
    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?

  8. #8
    Constant Bitrate takissd's Avatar
    Join Date
    May 2004
    Location
    San Diego, CA
    Posts
    118
    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

  9. #9
    FLAC IntellaWorks's Avatar
    Join Date
    Jun 2004
    Location
    NH
    Posts
    1,173
    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

  10. #10
    FLAC IntellaWorks's Avatar
    Join Date
    Jun 2004
    Location
    NH
    Posts
    1,173
    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

Page 1 of 3 123 LastLast

Similar Threads

  1. Voice Control for Media Engine???
    By valve90210 in forum Media Engine
    Replies: 5
    Last Post: 10-02-2006, 11:01 AM
  2. Control RR from VB.NET
    By weekendowel in forum Road Runner
    Replies: 7
    Last Post: 11-07-2005, 01:52 PM
  3. Cruise Control
    By MGD in forum Road Runner
    Replies: 16
    Last Post: 05-05-2005, 04:41 PM
  4. OBDII, GPRS, and car control
    By CarBaron in forum Hardware Development
    Replies: 3
    Last Post: 04-04-2005, 09:25 PM
  5. Replies: 22
    Last Post: 08-13-2001, 01:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •