Ports
May 25, 2013, 10:34:37 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Welcome to the PORTS Forum. Please post your questions, answers, and comments relating to USB and other hardware interfaces in the appropriate forums below. - Jan
Pages: [1]
  Print  
Author Topic: Setting Parity via combo box drop down list in VB 2010  (Read 1706 times)
titan2020
Member
*
Posts: 4


« on: October 07, 2011, 08:59:11 am »

Hello,

I'm writing an application that will use the SerialPort class. It will have a com port setup form that will have combo boxes for the port properties. Setting the PortName, BaudRate and DataBits are no problem. How can I set the SerialPort.Parity, SerialPort.StopBits, and SerialPort.Handshake to the selected values in their respective combo boxes.

Thank you,
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1631


WWW
« Reply #1 on: October 07, 2011, 09:33:37 am »

Use your existing combobox code as a model. Replace DataBits with Parity, StopBits, or Handshake and edit the combobox data as appropriate. My ComPortTerminal application has a Handshake example.

http://www.lvr.com/serport.htm#my_example_code

Jan
Logged
titan2020
Member
*
Posts: 4


« Reply #2 on: October 07, 2011, 02:34:36 pm »

Thank you. I'm up and running
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!