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 5 1179
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
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
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
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
OK, got it...
Thank you :-)
joeycalisay wrote: ComponentDesigner.Component as MyObject This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
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...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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...
|
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...
|
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,...
|
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...
| |