小编Muh*_*Ali的帖子

CellContentClick事件并不总是有效

CellContentClick 事件并不总是有效 - 它有时是有效的,有时不是随机的.

我的代码如下,我正在使用断点进行检查,但程序有时会进入块,有时则不会.为什么会这样?

private void dataGridView1_CellContentClick_1(object sender, DataGridViewCellEventArgs e)
{
    textBoxUserName.ReadOnly = true;
    button2.Visible = true;
    int index = e.RowIndex;
    if (!(index < 0))
    {
        DataGridViewRow row = dataGridView1.Rows[index];
        textBoxUserName.Text = row.Cells["UserNAme"].Value.ToString();
        textBoxPassword.Text = row.Cells["Pass"].Value.ToString();
        dataGridView1.Focus();
    }
    dataGridView1.Focus();
}
Run Code Online (Sandbox Code Playgroud)

c# winforms

11
推荐指数
1
解决办法
8437
查看次数

在Android Webview中加载Angular JS网站的问题

嗨EveryOne我正在尝试将GTV加载到Android WebView中.它在移动浏览器中很好地加载但在webview中没有.这是我的代码.

  WebView theWebPage  = new WebView(this);
    theWebPage.getSettings().setJavaScriptEnabled(true);

    theWebPage.getSettings().setPluginState(WebSettings.PluginState.ON);
    super.onCreate(savedInstanceState);
    getSupportActionBar().hide();
    setContentView(theWebPage);
    WebViewClient client = new WebViewClient() {
        @Override
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
            view.loadUrl(url);
            return false;
        }
    };
    theWebPage.setWebViewClient(client);
Run Code Online (Sandbox Code Playgroud)

// client.onPageStarted(theWebPage);

    theWebPage.loadUrl("http://gtvqa.com/#!/");
Run Code Online (Sandbox Code Playgroud)

android webview android-webview angularjs

4
推荐指数
2
解决办法
8560
查看次数

当另一个打开c#winforms时,使表单成为非交互式

我按下按钮打开一个表单,第一个表单也保持打开状态.我希望下面的表单是非交互式的.意味着如果用户点击下面的表格,他应该无法.我使用了最顶层的属性,但它没有解决我的问题.

c# winforms

-2
推荐指数
1
解决办法
171
查看次数

标签 统计

c# ×2

winforms ×2

android ×1

android-webview ×1

angularjs ×1

webview ×1