如何在下拉组合框中添加PC COM端口?在Visual Studio 2005中
问题描述:
大家好,
我想在Combo Box上添加PC的COM端口,就像它必须显示PC所拥有的所有COM端口一样。任何人都可以给出一些输入......?
提前致谢...... ..
Hi Guys,
I want to add PC's COM ports on Combo Box , like It has to show all the com ports that PC is having.Can anybody give some Input on this....?
Thanks in advance........
答
看看这个 http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.getportnames(v = vs.110)的.aspx [ ^ ] ..您应该能够改变逻辑以将串行端口名称添加到组合框中
have a look at this http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.getportnames(v=vs.110).aspx[^] .. you should be able to alter it logic to add the serial port names to your combo box