What is the Keypress code for TAB button press

不羁的心 提交于 2019-12-25 02:34:40

问题


I am working on TCP IP client code which is sending commands to the server for some task to execute.This is for the first time working on So many commands.I know to writing commands to next line we used to write /r/n like this..

byte[] port2 = Encoding.ASCII.GetBytes("port2\r\n");
stream.Write(port2, 0, port2.Length);

Now i have got a command which i need to embed using "{TAB}" button.Actually before to this i was using telnet in c# which is executing this command like this..

System.Windows.Forms.SendKeys.SendWait(acode + "{TAB}");

So my question is how to convert TAB in Command to send the server.

Please help me.

来源:https://stackoverflow.com/questions/22789412/what-is-the-keypress-code-for-tab-button-press

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!