Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
Its easy to add Controls to the first page:
C#
Document.Controls.AddControl(Contorl, Left, Top, Width, Height, Name);


But is there a way to select a page and add winform controls to this page?

Thanks
Posted
Updated 4-Apr-14 5:42am
v2
Comments
ZurdoDev 4-Apr-14 11:28am    
You can record Macros in Word so I would suggest doing that. My guess is you'll just have to make another page active.
Maciej Los 4-Apr-14 11:43am    
It would be hard with C# and easy with VBA ;)
ZurdoDev 4-Apr-14 11:47am    
It ends up being nearly the same. Classes are all named the same, at least similar, I believe. But you're right.
Daniel Morgenbesser 4-Apr-14 12:07pm    
How can i make a page active?
I think I can only set the whole document active but not a single page.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900