Multiple forms with common buttons

Prash 61 Reputation points
2024-04-16T11:10:28.12+00:00

I need to create multiple winforms in an application with two buttons previous and next. When I click on the next button in a form the next form should open up. Similarly when I click on previous button previous form should open up. I don't want to create previous and next button in all the forms. any idea how to achieve this?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,903 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jiale Xue - MSFT 46,466 Reputation points Microsoft Vendor
    2024-04-17T03:21:20.7+00:00

    Hi @Prash ,Welcome to Microsoft Q&A,

    What you are looking for is a custom control in winform.

    You can create a user control and put the controls you want into it.

    You can check out the introduction about user control.

    Best Regards,

    Jiale


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Castorix31 85,881 Reputation points
    2024-04-16T12:01:23.23+00:00

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.