Click here to Skip to main content
15,920,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have inserted a combo box where I will get the avaliable ports in my computer so I need the code to connect to anyone where I select the port in the combobox.

I am a starter to visual studio 2008, please help me.
Posted
Updated 20-Sep-12 6:28am
v2
Comments
[no name] 20-Sep-12 11:20am    
You really should read the posting guidelines first. Create a changed event for the combobox and open the selected comport. What is the problem?
Member 9444923 20-Sep-12 11:26am    
i am a begginer i got that combobox coding from the google so i couldn't understand wat excatly it was so i just needed the code to connect the port when i press a button called connect since i have very less time in completing my project i am not able to get the codings to connect so i needed so help pls help
[no name] 20-Sep-12 11:32am    
Just because you left your homework to the last minute does not mean that someone else should drop everything to do it for you. You seriously need someone else to write the code to open a serial port for you? If you had just looked up the serial port class in MSDN, you would probably have been done with it 10 minutes ago.
Member 9444923 20-Sep-12 11:37am    
as i told i am a begginer i don't know how to use visual studio 2008 completly
so u can tell me how to see that MSDN i would give a try my self i am really sorry if i would have broke ur time
[no name] 20-Sep-12 11:42am    
Go to www.msdn.microsoft.com and then search for serialport. Or when you are in Visual Studio press the F1 key. Or, you can google "serialport vb.net". Or use the CodeProject search which probably has several articles on serial ports.

All you need is the class System.IO.Ports.SerialPort: http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx[^].

—SA
 
Share this answer
 
Take a look at the :bob: articles:

This one for instance explains how to use the com port: COM port made simple with VB.NET[^]

You can also use any other article here related to vb.net and serial ports:
http://www.codeproject.com/search.aspx?q=Serial+Port+Communication+in+VB.NET[^]

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900