|
Hi ,
Even if i decline the License Agreement,I am able to click Next Button.
Kindly help me to fix the above issue.
Thanks,
Lavanya
Lavanya
|
|
|
|
|
I've got a solution of multiple C# projects. I've added WizardBase as a project and made a reference to it on my working project.
I create a new form, add the wizard control to it. Add some steps and run the project. It all works fine! It's really a great control
But when I alter anything of the look-and-feel of the control, for example change the color of the shadow of the subtitle I get a run-time error on starting the form:
System.IO.FileNotFoundException<br />
Filename: WizardBase, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null<br />
bij System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)<br />
bij System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)<br />
bij System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)<br />
bij System.Type.GetType(String typeName, Boolean throwOnError)<br />
bij System.Resources.ResourceReader.FindType(Int32 typeIndex)<br />
bij System.Resources.ResourceReader.DeserializeObject(Int32 typeIndex)<br />
bij System.Resources.ResourceReader.LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode)<br />
bij System.Resources.ResourceReader.LoadObject(Int32 pos, ResourceTypeCode& typeCode)<br />
bij System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase, Boolean isString)<br />
bij System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase)<br />
bij System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)<br />
bij System.Resources.ResourceManager.GetObject(String name)<br />
bij ... .frmManageDataSourcesWizard.InitializeComponent() in frmManageDataSourcesWizard.Designer.cs:line 81
Line 81 is this.welcomeStep.SubtitleAppearence = ((WizardBase.TextAppearence)(resources.GetObject("welcomeStep.SubtitleAppearence")));
It looks like instead of adding the changes it want to read a resource file which does not exists.
After reseting the subtitle again everything works fine.
I don't know if the WizardBase project is the trouble or my own solution, but I would really like to know how to fix this.
Thanks
Paul
The Netherlands
|
|
|
|
|
Hi,
From exception what i can infer is the dll is not there in the application directory. Please try putting the dll manually in the application folder.
Regards,
Manish
|
|
|
|
|
Whenever I set the LeftPair colors to anything, I get an error
Code generation for property 'LeftPair' failed. Error was: 'Type 'WizardBase.StartStep' in Assembly 'WizardBase, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.'
All of the other Pair properties do not give this error.
|
|
|
|
|
The reason for this is assemble is cashed in VS. This Can be fixed in two ways.
1. Build the solution and restart the visual studio.
2. Add static reference to the Wizard projet . i.e. Use dll instead of project reference.
|
|
|
|
|
This did not work for me.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
The reason is the event handler attached in the constructor StartStep():
leftPair.AppearenceChanged += leftPair_AppearenceChanged;
Simply comment this line. This action breaks design time update in case you change LeftPair values, but the same behavior is present in other ColorPair settings
|
|
|
|
|
Hi,
These two things seem to solve the problem:
1. Mark the StartStep class as [System.Serializable].
2. The InitializeComponent() of the wizard's parent did not have a line for LeftPair. Adding the following seems to 'reset' the designer:
this.startStep1.LeftPair = ((WizardBase.ColorPair)(resources.GetObject("startStep1.LeftPair")));
I am not sure if this is a solution, but seems to work for now. I am using VS2008/C#.
|
|
|
|
|
this.startStep1.LeftPair = ((WizardBase.ColorPair)(resources.GetObject("startStep1.LeftPair")));</blockquote>
Exactly where does that line need to go?
Thanks
|
|
|
|
|
The only sollution I found was to do this programatically.
StartStep.LeftPair.BackColor1 = Color.Black;
StartStep.LeftPair.BackColor2 = Color.White;
StartStep.LeftPair.Gradient = 180;
And I put this code in the start of my code.
|
|
|
|
|
Hi there,
I need to implement a wizard which doesn't follow a straight navigation rule. The current step may decide which step follows.
Is there a way to do so with this control?
I think WizardControl should ask the current WizardStep if it knows its follower, or even better a WizardControl should inspect a xml-navigation-rule before setting the next step.
Thanks
|
|
|
|
|
Yes, This can be achieved by setting the value of step index.
|
|
|
|
|
Very minor issue:
Setting this property to False does not seem to affect it, but .Visible does work.
|
|
|
|
|
I will look into the issue.
Thanks
|
|
|
|
|
Was it fixed? I'm having the same issue
|
|
|
|
|
Great work! I needed this in a pinch and it saved me. Thanks.
One thing that I can't get to work/understand is the NextButtonClick event. It's not as simple as the other ButtonClick events. What do I have to do to get it to fire for me?
Also, is there a way to skip a step other than with the NextButton event? I just want to be able to follow more than one path through a set of steps.
Thanks!
Eric
Milestones Technology Training and Consulting
emiles@mindspring.com
|
|
|
|
|
I got the same problem. When I tried to add new event handler for NextButtonClick in "Design" mode it created a method signature that caused a compiler error:
private void wizardControl_NextButtonClick(object sender)
Apparently, there should be two parameters. I can't figure out what type should I provide for second parameter (it is generic, right). So I just changed it like this:
private void wizardControl_NextButtonClick(object sender, CancelEventArgs e)
It works for me BUT there is a problem. Every time when VS regenerate MyClass.Designer.cs, it just removes this handler from the auto-generated code. So I have to add this event every time I want to build the application and remove new generated method stub from source code. Needless to say that it is a pain in the ... It is sad but I don't have time to fix it. I'll try to do it later. May be next week.
P.S. To skip a step(s) I use something like this:
wizardControl.CurrentStepIndex = numberOfStepYouWannaGoTo;
Hope it helps!
P.P.S. I work in Visual Studio 2008.
|
|
|
|
|
I haven't had any issues with _NextButtonClick. When .Enabled and .Visible are True, the event is not firing for you at all?
The way I use it is pass the stepindex to a validation method and should validation fail, I return an error which in turn cancels the move to the next step.
This is the code in my Click event:
If ValidateStep(tArgs.Value.CurrentStepIndex) Then
tArgs.Cancel = True
End If
Within the validationstep, I move to the appropriate next step (if not the sequential) as indicated in the other post.
|
|
|
|
|
Hi For using NextButton click please use
private void wizardControl1_NextButtonClick(object sender, GenericCancelEventArgs<wizardcontrol> tArgs)<br />
{<br />
<br />
}</wizardcontrol>
This thing i will fix in next update.
For screen jump or using different paths use something like this
wizardControl1.CurrentStepIndex = 2;
stepindex should be less than or equal to total pages.
Regards,
Manish
|
|
|
|
|
I have tried this already. It didn't work for me. Here is what I get:
Error 23: Using the generic type 'WizardBase.GenericCancelEventArgs<t>' requires '1' type arguments
Apparently, I need to provide some Type for the GenericCancelEventArgs. So the following should do the trick:
<br />
private void wizardControl1_NextButtonClick(object sender, GenericCancelEventArgs<WizardBase.WizardControl> tArgs)<br />
{<br />
}<br />
<br />
Thanks.
P.S. I believe you meant something like this. Be aware of using <> in code block...
modified on Monday, March 17, 2008 5:13 PM
|
|
|
|
|
Hello,
I try to use this great tool but NextButtonClick Event still doesn't work for me.
I tried this too:
<br />
private void wizardControl1_NextButtonClick(object sender, GenericCancelEventArgs<wizardbase.wizardcontrol> tArgs)<br />
{<br />
<br />
}<br />
</wizardbase.wizardcontrol>
but this is what I get:
Error 1: The type or namespace name 'GenericCancelEventArgs' could not be found (are you missing a using directive or an assembly reference?)
I'm begginer in C#, can anyone help me?
Thank you
Martin
|
|
|
|
|
Hi Martin,
Try this: WizardBase.GenericCancelEventArgs<WizardBase.WizardControl> tArgs
And make sure you have WizardBase in references of your project.
Hope it helps.
Machines work, people should think.
|
|
|
|
|
Hi MadStudent,
yes, now it works Thank's a lot for your help!
Martin
|
|
|
|
|
Yo,
I just had the same problem and its quite an easy fix. Didn't bother to look WHY it does it, but the fix is to put something similar to the following line in your windows constructor:
wizardControl1.NextButtonClick += new WizardBase.GenericCancelEventHandler<wizardbase.wizardcontrol>(wizardControl1_NextButtonClick);
where wizardControl1_NextButtonClick is the name of your event handler of course, but the method signature should be:
private void wizardControl1_NextButtonClick(object sender, CancelEventArgs e)
{
}
Then, when Visual Studio removes the event handler, your constructor just slaps it back in again at runtime.
You need to make sure the designer DOSN'T have the event handler set up though, or it'll run it twice.
|
|
|
|
|