Reputation: 53
I want to develop windows forms application in which i want same ribbon control to appear on top with same Click Functions associated. Is there any solution to add same ribbon to all forms? I tried MDI, but i dont have requirement of multiple documents to be opened at same time. I tried adding same ribbon to all forms one by one, but then , i need to create click methods for all buttons in all forms seperately, that is tedious and time waste.
Also, i need to know any solution for smoothing transition between form change. When i use code:
Form f1=new Form();
f1.show();
this.hide();
This works correctly for switching between forms, but the problem is it creates a jerk on screen. So, is there any solution for smooth transitioning of forms?
Upvotes: 0
Views: 328
Reputation: 156948
You could create a base class that implements the ribbon. Just reuse (that is: derive from) that control for every form you have.
Create a container under the ribbon where you can put your actual form content in.
A problem might be that the designer often doesn't like this, so it might be quite some work to smooth thing out.
Upvotes: 1