开发者

Is it possible to make formatted MessageBox with http-reference

开发者 https://www.devze.com 2023-02-05 11:07 出处:网络
I want to show message like \"New version of software is available at http://mysite.com\" and so \"http://mysite.com\" part would be clickable. Is it开发者_如何学运维 posible using some built in Winfo

I want to show message like "New version of software is available at http://mysite.com" and so "http://mysite.com" part would be clickable. Is it开发者_如何学运维 posible using some built in Winforms message dialog ?


No. You can't.

You will need to create your own Dialog box.

An example on CodeProject: a custom messagebox

EDIT:

Apparently there is a way: Clickable URL in a Winform Message Box?

MessageBox.Show(     
    "test message",
    "caption",
    MessageBoxButtons.YesNo,     
    MessageBoxIcon.Information,
    MessageBoxDefaultButton.Button1,
    MessageBoxOptions.LeftAlign,
    "http://google.com",
    "keyword"
) 
0

精彩评论

暂无评论...
验证码 换一张
取 消