C#下一个上一个按钮 [英] C# Next Previous Button
本文介绍了C#下一个上一个按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在使用win-form,因此我想在窗体上放置下一个上一个按钮,就像在安装任何软件时看到的按钮一样(<< Back>><<<<< Next> >)
我实际上想将用户导航到下一个表单,而不会在同一窗口上隐藏和打开任何表单....
问题图片
链接:https://www.dropbox.com/s/750xvmmwt4zzvq0/Problem_Image.jpg
Hello Everyone,
I am working with win-form and I want to place a next previous button on the form, same like the button''s we see at time of installing any software (<<Back>> <<Next>>)
I actually want to navigate user to next form without any hiding and opening of form on the same window....
Problem Image
Link: https://www.dropbox.com/s/750xvmmwt4zzvq0/Problem_Image.jpg
推荐答案
这很容易做到.显而易见的方法是创建控件,将其放入列表中,然后通过按下按钮对其进行迭代.也就是说,向导每个步骤的用户控件.
This is easily done. The obvious way to do it, is to create controls, put them in a list, and then iterate over them with the pressing of the button. That is, a user control for each step of your wizard.
看看这篇有趣的文章-Windows窗体中的IUI和Web样式导航,第1部分 [ ^ ].它应该对您有帮助(如果这正是您想要的).
Have a look at this interesting article - IUIs and Web-Style Navigation in Windows Forms, Part 1[^]. It should help you (if this is what you are looking for).
这篇关于C#下一个上一个按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文