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,830 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jiale Xue - MSFT 31,981 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 81,726 Reputation points
    2024-04-16T12:01:23.23+00:00