|
-
September 22nd, 2012, 10:56 AM
#2
Re: Defining different layouts for a Windows form.
The easiest thing I can think of (still a lot of coding) would be to dynamically generate the controls at runtime and programmatically wire them to your existing event handlers. This would give you the flexibility of determining the layout at runtime based on the app mode. I know its not the easy out that you are looking for.
The problem is that the layout for a form in c++ is generated at runtime from the template. In C# it is generated at design time, so there is no easy way to substitute at runtime.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|