473,387 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

DesignerVerbCollection

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...

TIA
Jul 21 '05 #1
5 1180
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);

"Franck Diastein" wrote:
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...

TIA

Jul 21 '05 #2
I think you are missing about UITypeEditors...

--
Joey Calisay
http://spaces.msn.com/members/joeycalisay/
"Franck Diastein" <fd*******@euskaltel.net> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
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...

TIA

Jul 21 '05 #3
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...

Amiram Korach wrote:
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);

"Franck Diastein" wrote:

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...

TIA

Jul 21 '05 #4
ComponentDesigner.Component as MyObject

--
Joey Calisay
http://spaces.msn.com/members/joeycalisay/
"Franck Diastein" <fd*******@euskaltel.net> wrote in message
news:OE**************@TK2MSFTNGP14.phx.gbl...
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...

Amiram Korach wrote:
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);

"Franck Diastein" wrote:

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...

TIA

Jul 21 '05 #5
OK, got it...

Thank you :-)

joeycalisay wrote:
ComponentDesigner.Component as MyObject

Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Franck Diastein | last post by:
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...
0
by: David | last post by:
Hi I have created a class that inherits from Page. I have no problem and its work well. Now, I'd like to append a new link in the properties section that opens a form to configure some custom...
0
by: Genival P.Carvalho | last post by:
Hello folks, First sorry my bad english. I will try to implement a IExtenderProvider + Verbs (Designer). When compile tha follow code its compile fine, but whem drag resulting componet under form...
5
by: Shawn Hogan | last post by:
Hi, I have a 3rd party control(infragistics) that seems to alter the VS.NET IDE properties grid so that there are three areas instead of two areas in the VS.NET IDE properties grid. There is a...
4
by: Michael | last post by:
Dear all .. If I want to use develop a user control and declare a public property which the type is System.Windows.Forms.GridTableStylesCollection For example : Public Class LookAndView...
0
by: Bram | last post by:
Hello, I'm designing a PageControl which hosts a number of pages. I added a verb to the designer of the pages in the PageControl to select the parent control, like this: public class...
11
by: Pete Kane | last post by:
Hi All, does anyone know how to add TabPages of ones own classes at design time ? ideally when adding a new TabControl it would contain tab pages of my own classes, I know you can achieve this with...
2
by: blackirish | last post by:
Hi all, i have a form with 3 textboxes and i have a class named user which has 3 members such as name, surname and age. I use the form to get user values design time and i want to serialize these...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.