Author: _xr280xr_ | Posted on: 11/17/2008 2:13:58 AM | Views : 324

Hi,

I'm trying to make some simple modifications to an application built using CAB (Composite UI Architecture Block). I have a very high level understanding of this architecture from digging into it a little bit months ago when I was first introduced to this project.

 

One screen of the application has a TabControl which is part of a parent SmartPart UserControl and already has several TabPages. Each of these TabPages has its own SmartPart part UserControl. This is all laid out at design time. What I'm trying to do is add a new TabPage containing a SmartPart UserControl only if a certain criteria is met.

 

My first attempt took this exact approach, to check if my criteria is met, and if it is, create the tab page and my UserControl (let's call the class UserControl1) in the load event of the parent SmartPart, and add it to the TabControl. Well through trial and error I discovered that th ...

Go to the complete details ...