StrataFrame Forum

Wizard Control Exception

http://forum.strataframe.net/Topic10353.aspx

By Guillermo Vilas - 7/17/2007

Hi, I´m getting this error when I tried to open the wizard control source code.

By Guillermo Vilas - 8/6/2007

Do I need to pay to get a suggestion about this issue?
By Ivan George Borges - 8/7/2007

Hi Guillermo.

It might happens for one or two posts to be missed sometimes. Just give it a "bump" (guess you've just done so) and it will certainly be seen for everybody. Wink

Abraços.

By StrataFrame Team - 8/7/2007

Yep, it was definitely overlooked.  You got that when you opened the designer for the wizard control?  Let me check into it.
By StrataFrame Team - 8/7/2007

Yep, looks like the _Wizard field is either not being set at design-time, or it hasn't been set before the first call to OnPaint().  I added a little test to ensure that it's not null before continuing, so it will be fixed in the next update.  If you want to change it in your own source code, this is what it looks like:

'-- The control is not supporting the application theme

If (_Wizard Is Nothing) OrElse _

(_Wizard.ThemeSupport = ApplicationThemeSupport.None) OrElse _

(ApplicationTheme.Theme = ApplicationThemeName.NoTheme) Then

Exit Sub

End If

Oh, and this code was changed in the SetThemeProperties() method of the WizardNavigation, not the WizardControl.

By Guillermo Vilas - 8/9/2007

Thanks Ben

I will change the source code by my own.
By Guillermo Vilas - 8/12/2007

Hello
I made the changes sugested above but I´m still getting the same exception, I also commented the SetThemeProperties method call under the OnPaint Event and rebuild the solution and still get the same exception in design time.

By Trent L. Taylor - 8/13/2007

I tried to reproduce with no luck.  It may be because we have already fixed this on our side, if so I will get you the assemblies.  But first, if you open up the attached project, do you get the same error?
By Guillermo Vilas - 8/13/2007

Hi Trent

I tested the application you sent me and it works fine. The issue I have shows under the StrataFrame source code not when adding the wizard control to a project.

Thanks for your help again