Click here to Skip to main content
15,900,818 members
Home / Discussions / C#
   

C#

 
Questioninsert XML to SQL SERVER Pin
eyalso21-May-06 3:28
eyalso21-May-06 3:28 
QuestionlistView to arraylist Pin
teejayem21-May-06 2:49
teejayem21-May-06 2:49 
AnswerRe: listView to arraylist Pin
Ravi Bhavnani21-May-06 5:11
professionalRavi Bhavnani21-May-06 5:11 
GeneralRe: listView to arraylist Pin
teejayem21-May-06 5:49
teejayem21-May-06 5:49 
Questioninherited Panel-Control for RadioButtons only Pin
Subfreq21-May-06 0:42
Subfreq21-May-06 0:42 
AnswerRe: inherited Panel-Control for RadioButtons only Pin
Ravi Bhavnani21-May-06 5:14
professionalRavi Bhavnani21-May-06 5:14 
GeneralRe: inherited Panel-Control for RadioButtons only [modified] Pin
Subfreq21-May-06 5:27
Subfreq21-May-06 5:27 
GeneralRe: inherited Panel-Control for RadioButtons only [modified] Pin
Ravi Bhavnani21-May-06 5:36
professionalRavi Bhavnani21-May-06 5:36 
Yes, that explains what's happening. It seems that the framework is handling the end of the drag and drop of the control from the toolbox to your panel, and running into problems because the control it expects to operate on has been deleted.

I recommend posting a message to the panel (when the control is added) which delays the execution of the added control's removal. That way, your control will be removed after the framework has had a chance to complete its normal processing of events.

It would've been nice if ControlEventArgs exposed a bool that you could set to disallow the operation. That would've allowed you to elegantly restrict the type of controls your panel accepts.

/ravi

My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com

GeneralRe: inherited Panel-Control for RadioButtons only [modified] Pin
Subfreq21-May-06 5:42
Subfreq21-May-06 5:42 
GeneralRe: inherited Panel-Control for RadioButtons only [modified] Pin
Ravi Bhavnani21-May-06 5:48
professionalRavi Bhavnani21-May-06 5:48 
GeneralRe: inherited Panel-Control for RadioButtons only [modified] Pin
Subfreq21-May-06 5:53
Subfreq21-May-06 5:53 
QuestionCasting and template like things Pin
seikou20-May-06 23:19
seikou20-May-06 23:19 
AnswerRe: Casting and template like things [modified] Pin
User 665821-May-06 1:45
User 665821-May-06 1:45 
QuestionRe: Casting and template like things [modified] Pin
seikou21-May-06 2:16
seikou21-May-06 2:16 
AnswerRe: Casting and template like things [modified] Pin
Guffa21-May-06 5:50
Guffa21-May-06 5:50 
GeneralRe: Casting and template like things [modified] Pin
User 665821-May-06 7:17
User 665821-May-06 7:17 
QuestionGlobal KeyboardHooks and WiondowsKeyboardHooks Pin
nemopeti20-May-06 22:40
nemopeti20-May-06 22:40 
AnswerRe: Global KeyboardHooks and WiondowsKeyboardHooks Pin
ahmad2x421-May-06 3:06
ahmad2x421-May-06 3:06 
GeneralRe: Global KeyboardHooks and WiondowsKeyboardHooks [modified] Pin
nemopeti21-May-06 3:39
nemopeti21-May-06 3:39 
QuestionApplicationContext and Windows Shutdown Pin
redfish3420-May-06 18:17
redfish3420-May-06 18:17 
AnswerRe: ApplicationContext and Windows Shutdown Pin
leppie21-May-06 20:21
leppie21-May-06 20:21 
QuestionStack's & Queue's Pin
BiGjOe.NeT20-May-06 13:13
BiGjOe.NeT20-May-06 13:13 
AnswerRe: Stack's & Queue's Pin
Christian Graus20-May-06 13:41
protectorChristian Graus20-May-06 13:41 
GeneralRe: Stack's & Queue's Pin
BiGjOe.NeT20-May-06 13:47
BiGjOe.NeT20-May-06 13:47 
GeneralRe: Stack's & Queue's Pin
Christian Graus20-May-06 13:53
protectorChristian Graus20-May-06 13:53 

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.