all groups > dotnet windows forms designtime > march 2005 >
You're in the

dotnet windows forms designtime

group:

design time wizard


design time wizard Adrin
3/19/2005 12:30:29 PM
dotnet windows forms designtime: How do I display a wizard when a component is dropped on the form the way
DataSet does?
The wizard needs to be displayed before adding the component to the designer
so that the user can choose some options for the component.

Re: design time wizard mujdat
4/6/2005 12:22:10 AM
Hi..
This may be what you need..


[Serializable]
public class DataSetToolItem:System.Drawing.Design.ToolboxItem
{
public DataSetToolItem(System.Runtime.Serialization.SerializationInfo
info, System.Runtime.Serialization.StreamingContext context)
{
base.Deserialize(info,context);
}


public DataSetToolItem()
{
}
public DataSetToolItem(Type toolType):base(toolType)
{
}
protected override IComponent[] CreateComponentsCore(IDesignerHost host)
{
MessageBox.Show("Create component");
return null;
// return base.CreateComponentsCore (host);
}
}

/// <summary>
/// Summary description for TestT.
/// </summary>
[ToolboxItem(typeof( DataSetToolItem))]
public class TestT:IComponent
{
.....
.....
....
[quoted text, click to view]

AddThis Social Bookmark Button