Click here to Skip to main content
15,922,512 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need for a Grid in C# Pin
Stephane Rodriguez.22-Aug-02 7:15
Stephane Rodriguez.22-Aug-02 7:15 
GeneralRe: Need for a Grid in C# Pin
Luis Alonso Ramos22-Aug-02 7:24
Luis Alonso Ramos22-Aug-02 7:24 
GeneralRe: Need for a Grid in C# Pin
Stephane Rodriguez.22-Aug-02 8:14
Stephane Rodriguez.22-Aug-02 8:14 
GeneralRe: Need for a Grid in C# Pin
Luis Alonso Ramos22-Aug-02 8:30
Luis Alonso Ramos22-Aug-02 8:30 
QuestionControl, or UserControl? Pin
Nnamdi Onyeyiri22-Aug-02 3:24
Nnamdi Onyeyiri22-Aug-02 3:24 
AnswerRe: Control, or UserControl? Pin
leppie22-Aug-02 3:46
leppie22-Aug-02 3:46 
AnswerRe: Control, or UserControl? Pin
James T. Johnson22-Aug-02 6:24
James T. Johnson22-Aug-02 6:24 
GeneralComponent Class Problem Pin
Chris Richner22-Aug-02 1:28
Chris Richner22-Aug-02 1:28 
Hi NG,
I've got a Class derived from component.

[Browsable(true)]
public Form Parent
{
get
set
{
this.parent = value;
this.parent.Load += new EventHandler(......
}
}


the desinger generates now this code if i drag my component on a form

void InitalizeComponents()
{<br />
mYCom = new MyComp();<br />
mYCom.Parent = this;<br />
}


Now the designer does not show any form derived from this form, the error is "Object is ....", there's only a white blank page.

Now if i remove the add eventhandler code in my set property, everything works fine.

How do i have to code this, i would like to set the parent of the component, attach a event.


.:Greets from Jerry Maguire:.
GeneralRe: Component Class Problem Pin
James T. Johnson22-Aug-02 6:23
James T. Johnson22-Aug-02 6:23 
GeneralRe: Component Class Problem Pin
Chris Richner25-Aug-02 22:15
Chris Richner25-Aug-02 22:15 
Generalhelp me Pin
imran_rafique22-Aug-02 0:26
imran_rafique22-Aug-02 0:26 
GeneralRe: help me Pin
Stephane Rodriguez.22-Aug-02 1:43
Stephane Rodriguez.22-Aug-02 1:43 
GeneralRe: help me Pin
imran_rafique22-Aug-02 9:16
imran_rafique22-Aug-02 9:16 
GeneralRe: help me Pin
Stephane Rodriguez.22-Aug-02 10:19
Stephane Rodriguez.22-Aug-02 10:19 
GeneralInvoking Edit Label in ListView from Code Pin
Rüpel21-Aug-02 22:20
Rüpel21-Aug-02 22:20 
Generali can'T move my form... Pin
Atilla Selem21-Aug-02 21:05
Atilla Selem21-Aug-02 21:05 
GeneralRe: i can'T move my form... Pin
Stephane Rodriguez.21-Aug-02 21:30
Stephane Rodriguez.21-Aug-02 21:30 
GeneralRe: i can'T move my form... Pin
leppie21-Aug-02 21:58
leppie21-Aug-02 21:58 
GeneralRe: i can'T move my form... Pin
Nnamdi Onyeyiri22-Aug-02 3:21
Nnamdi Onyeyiri22-Aug-02 3:21 
GeneralRe: i can'T move my form... Pin
leppie22-Aug-02 3:35
leppie22-Aug-02 3:35 
GeneralRe: i can'T move my form... Pin
Nnamdi Onyeyiri22-Aug-02 3:42
Nnamdi Onyeyiri22-Aug-02 3:42 
GeneralAccess To Registry of Remote System Pin
Sarith Sutha21-Aug-02 17:47
Sarith Sutha21-Aug-02 17:47 
Generalopenning Word in MDI form as child with limited functionalities Pin
cloudno921-Aug-02 10:30
cloudno921-Aug-02 10:30 
GeneralPixel Color Pin
marnicola21-Aug-02 9:58
marnicola21-Aug-02 9:58 
GeneralRe: Pixel Color Pin
Philip Fitzsimons22-Aug-02 0:31
Philip Fitzsimons22-Aug-02 0:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.