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

dotnet windows forms designtime

group:

DesignerVerbCollection


RE: DesignerVerbCollection Amiram Korach
3/16/2005 2:49:05 PM
dotnet windows forms designtime:
Overload the default constructor made buy the designer. Get myLogic as a
parameter:
public class frmOptions
{
private ComponentLogic m_myLogic;
Public frmOptions(ComponentLogic myLogic)
{
m_myLogic = myLogic;
}
}

When you create a new instance of frmOptions:
frmOptions frm = new frmOptions(myLogic);

[quoted text, click to view]
DesignerVerbCollection Franck Diastein
3/16/2005 11:31:24 PM
Hi, I have a component using DesignerVerbCollection. When one of the
verbs is clicked in VS, I launch a WinForm...

The structure of my component is this:

Component.cs (component code and Designer code)
frmOptions.cs (a properties form for component)
ComponentLogic.cs (a single class with the object)

When a Component is used, a ComponentLogic is declared this way:

public ComponentLogic myLogic = new ComponentLogic();

I don't know how to access myLogic from Designer class to send it to
frmOptions when a verb is clicked...

I know this is hard to understand, but basically my question is how to
make myLogic accesible from Designer class...

Re: DesignerVerbCollection joeycalisay
3/17/2005 9:10:35 AM
I think you are missing about UITypeEditors...

--
Joey Calisay
http://spaces.msn.com/members/joeycalisay/


[quoted text, click to view]

Re: DesignerVerbCollection Franck Diastein
3/17/2005 10:32:00 AM
It's what I do in my frmOptions...

How to get myLogic created in Component from Designer to pass it to
frmOptions ?

My main problem is that Component and ComponentDesigner are 2 different
classes... I don't know how to retreive myLogic from ComponentDesigner...

[quoted text, click to view]
Re: DesignerVerbCollection joeycalisay
3/17/2005 6:33:42 PM
ComponentDesigner.Component as MyObject

--
Joey Calisay
http://spaces.msn.com/members/joeycalisay/


[quoted text, click to view]

AddThis Social Bookmark Button