MessageBox.Show appear over Remote Desktop Connection

。_饼干妹妹 提交于 2019-11-28 11:42:31

问题


So I am building a program at the minute where I need a MessageBox to show over an RDC (Remote Desktop Connection) but I can't seem to manage it. Any tips?

Here is the code I am currently trying if it helps.

public void button2_Click(object sender, EventArgs e)
{
    MessageBox.Show(this, "Hello");
}

Cheers

Tom


回答1:


Try this it will show your MessageBox at the top of every window currently open.

MessageBox.Show(this,
                "Your text",
                "Settings Needed",
                MessageBoxButtons.YesNo,
                MessageBoxIcon.Question
                MessageBoxDefaultButton.Button1,  // specify "Yes" as the default
                (MessageBoxOptions)0x40000);


来源:https://stackoverflow.com/questions/23849651/messagebox-show-appear-over-remote-desktop-connection

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