Click here to Skip to main content
15,889,808 members
Home / Discussions / C#
   

C#

 
GeneralRe: Taborder for Dynamically-Created Controls Pin
teejayem23-Sep-08 6:30
teejayem23-Sep-08 6:30 
GeneralRe: Taborder for Dynamically-Created Controls Pin
danielhasdibs23-Sep-08 6:35
danielhasdibs23-Sep-08 6:35 
AnswerRe: Taborder for Dynamically-Created Controls Pin
I Believe In GOD23-Sep-08 6:33
I Believe In GOD23-Sep-08 6:33 
AnswerRe: Taborder for Dynamically-Created Controls Pin
danielhasdibs23-Sep-08 6:52
danielhasdibs23-Sep-08 6:52 
QuestionChanging Word save directory in C# Pin
Dave Aitch23-Sep-08 4:30
professionalDave Aitch23-Sep-08 4:30 
AnswerRe: Changing Word save directory in C# Pin
selcuks23-Sep-08 4:34
selcuks23-Sep-08 4:34 
GeneralRe: Changing Word save directory in C# Pin
Dave Aitch23-Sep-08 5:03
professionalDave Aitch23-Sep-08 5:03 
QuestionControls parent is null in call back procedure when control is reloaded Pin
Chazzysb23-Sep-08 4:01
Chazzysb23-Sep-08 4:01 
Hi,

.NET 2 VS 2005

I have a panel on a winform, at runtime controls are loaded and removed using something like:
mainPanel.Controls.Clear();
mainPanel.Controls.Add(NewControl);

NewControl is a custom control that makes async calls to a web service. One example is the login screen, first time it works fine - if a user logs out the LoginControl is re displayed in the panel. The problem is that when the control is loaded for a second time, in the call back procedure if you try to reference the controls parent it is always returned as null.

When I make the async call to the web service the parent is fine. When I reference the parent in the call back procedure when the control is first loaded it is fine - however if i remove and re add the control, the parent is null in the call back procedure.

Can anyone shed any light on this?
Ive tried sending a parameter to the constructor of the control and set the parent there but this makes no difference.

Thanks,
Chas
AnswerRe: Controls parent is null in call back procedure when control is reloaded Pin
Wendelius23-Sep-08 8:44
mentorWendelius23-Sep-08 8:44 
QuestionSorting on Datagridview removes values from Image column en removes row.height [modified] Pin
ddecoy23-Sep-08 3:37
ddecoy23-Sep-08 3:37 
AnswerRe: Sorting on Datagridview removes values from Image column en removes row.height Pin
ddecoy23-Sep-08 5:02
ddecoy23-Sep-08 5:02 
QuestionConverting C++ COM to C# Pin
LeonardLay23-Sep-08 3:32
LeonardLay23-Sep-08 3:32 
AnswerRe: Converting C++ COM to C# Pin
cpkilekofp25-Sep-08 3:00
cpkilekofp25-Sep-08 3:00 
Question64 bit WMI Pin
arkiboys23-Sep-08 3:17
arkiboys23-Sep-08 3:17 
JokeRe: 64 bit WMI Pin
Giorgi Dalakishvili23-Sep-08 3:38
mentorGiorgi Dalakishvili23-Sep-08 3:38 
GeneralRe: 64 bit WMI Pin
arkiboys23-Sep-08 4:06
arkiboys23-Sep-08 4:06 
GeneralRe: 64 bit WMI Pin
Giorgi Dalakishvili23-Sep-08 4:10
mentorGiorgi Dalakishvili23-Sep-08 4:10 
GeneralRe: 64 bit WMI Pin
arkiboys23-Sep-08 4:13
arkiboys23-Sep-08 4:13 
GeneralRe: 64 bit WMI Pin
#realJSOP23-Sep-08 23:28
mve#realJSOP23-Sep-08 23:28 
GeneralRe: 64 bit WMI Pin
cpkilekofp24-Sep-08 7:05
cpkilekofp24-Sep-08 7:05 
GeneralRe: 64 bit WMI Pin
arkiboys24-Sep-08 20:53
arkiboys24-Sep-08 20:53 
GeneralRe: 64 bit WMI Pin
cpkilekofp25-Sep-08 2:55
cpkilekofp25-Sep-08 2:55 
GeneralRe: 64 bit WMI Pin
arkiboys25-Sep-08 3:41
arkiboys25-Sep-08 3:41 
GeneralRe: 64 bit WMI Pin
cpkilekofp25-Sep-08 3:55
cpkilekofp25-Sep-08 3:55 
GeneralRe: 64 bit WMI Pin
arkiboys25-Sep-08 4:07
arkiboys25-Sep-08 4:07 

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.