如何在c#中的异步方法中创建表单实例?

时间:2017-02-26 14:23:46

标签: c# asynchronous

我想创建一个<html> <body> <div id="displayStatus" class="display"></div> <input type="button" value="Click Me" onclick="handler(false)" ondblclick="handler(true)"> <input type="button" value="Switch Event" onclick="switchEvent()"> <script> var isSwitched = false; var display = document.getElementById("displayStatus"); function handler(isDoubleClick) { isDoubleClick = (!isSwitched && isDoubleClick) || (isSwitched && !isDoubleClick); display.innerHTML = isDoubleClick ? "Double Click" : "Single Click"; } function switchEvent(){ isSwitched = !isSwitched; } </script> </body> </html> 和我的frm_client的实例 方法是on_MessageRecived。有关创建实例的问题,我无法找到答案。当我调试代码并创建async的实例时,它无效。

frm_client

0 个答案:

没有答案