How to create drop down information box in C# Winforms?

后端 未结 2 1456
耶瑟儿~
耶瑟儿~ 2020-12-21 21:52

I want to make a button that can drop down a multi-line label or form which contains help documentation for the user.

I have searched and I can\'t find anything tha

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-21 22:27

    I think it will be a bad user experience to see a tooltip on click of a button. However, you can use this if you really want to

    var b  = new Button();
    b.Click += (sender, args) => new ToolTip().Show("Help documentation", b.Parent, new Point(b.Location.X, b.Location.X + 10));
    

提交回复
热议问题