如何在下拉组合框中添加PC COM端口?在Visual Studio 2005中 [英] How to add PC COM ports on a drop down Combo Box ? In Visual Studio 2005
本文介绍了如何在下拉组合框中添加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
这篇关于如何在下拉组合框中添加PC COM端口?在Visual Studio 2005中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文