SerialPort access in visual basic express ed


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2005
    Location
    Los angeles
    Posts
    39

    Default SerialPort access in visual basic express ed

    Hello,
    I am trying to write a code to read/write from/to a microcontroller via a serialport terminal using visual studio express edition. Has anyone done it before and can provide sample code?.

    Thanks

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614

    Wink You here ....

    Hi, Gary

    Have a look here : www.rentron.com/VisualBasic.htm

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Aug 2005
    Location
    Los angeles
    Posts
    39

    Talking

    Hey Alain...and yes i am everywhere
    Thanks for the Link...i still have to convert from Vb6.0 code to the new visual basic express.Have you tried it it's free
    Rocky

  4. #4
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695

    Default

    Hi,

    In .NET 2.0, the functionality of the MSCOMM control is restored in the form
    of the SerialPort control (located under the Components tab in the Toolbox).

    See this article + sample code:
    http://www.devx.com/dotnet/Article/3...ticle&trk=MSCP

    Best regards,

    Luciano

  5. #5
    Join Date
    Aug 2005
    Location
    Los angeles
    Posts
    39

    Default

    Thanks luciano for the great link..I learned a lot from it. But i still have one thing that i can't quiete figure out which is how to recieve the data from the microcontroller. I am currently sending one byte at a time. and what is the idea behind the delegate?
    thanks

  6. #6
    Join Date
    Feb 2003
    Posts
    432

    Default

    Quote Originally Posted by Luciano
    Hi,

    In .NET 2.0, the functionality of the MSCOMM control is restored in the form
    of the SerialPort control (located under the Components tab in the Toolbox).

    See this article + sample code:
    http://www.devx.com/dotnet/Article/3...ticle&trk=MSCP

    Best regards,

    Luciano
    Hooray

    I looked at VBdotNET when it first came out and was totally stumped. Without exception, ALL my VB 6 projects have at least one Comm port in them and even the Microsoft import wizard gave up on trying to convert my projects.

    I have also only ever worked on one ASPdotNET project. Someone at work decided that a project with a pretty short deadline should be done in ASP.NET even though non of us had any experience of it although a couple of people had been on a course.

    Because I was familiar with ordinary ASP, I created a mockup of what I wanted the project to look like and it was fully functional within a day.

    Trying to get the same thing done in ASP.NET took weeks and even then a couple of things that were a doddle in my mockup couldnt be achieved. It may well have been possible but non of us had enough experience to make it happen.

    I might be persuaded to take another look at .NET now it has matured a bit and there is probably a bit more info on the internet by now
    Keith

    www.diyha.co.uk
    www.kat5.tv

Similar Threads

  1. Sending Commands from Visual Basic about IR to Pic
    By tne_de in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th April 2009, 06:09
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. Visual Basic 2005
    By keithdoxey in forum Off Topic
    Replies: 4
    Last Post: - 1st August 2007, 12:10
  4. Visual Basic 6 & Access 2000
    By Demon in forum Off Topic
    Replies: 33
    Last Post: - 7th September 2006, 04:39
  5. Microsoft Visual Basic Express
    By skimask in forum General
    Replies: 3
    Last Post: - 24th July 2006, 03:46

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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