Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
GeneralRe: WMPlayer Dll Import Question Pin
sepAlmSep10-Sep-11 2:28
sepAlmSep10-Sep-11 2:28 
AnswerRe: WMPlayer Dll Import Question Pin
Luc Pattyn10-Sep-11 4:35
sitebuilderLuc Pattyn10-Sep-11 4:35 
AnswerRe: WMPlayer Dll Import Question Pin
Ravi Bhavnani10-Sep-11 17:12
professionalRavi Bhavnani10-Sep-11 17:12 
QuestionManaging multiple controls [modified] Pin
Electric Eddy9-Sep-11 13:51
Electric Eddy9-Sep-11 13:51 
AnswerRe: Managing multiple controls Pin
Philippe Mori9-Sep-11 14:21
Philippe Mori9-Sep-11 14:21 
AnswerRe: Managing multiple controls Pin
BillWoodruff9-Sep-11 14:29
professionalBillWoodruff9-Sep-11 14:29 
AnswerRe: Managing multiple controls Pin
Eddy Vluggen10-Sep-11 12:57
professionalEddy Vluggen10-Sep-11 12:57 
GeneralRe: Managing multiple controls Pin
BillWoodruff10-Sep-11 20:09
professionalBillWoodruff10-Sep-11 20:09 
Until the OP clarifies what his issue is, and its context, I think we are "reading tea leaves" here, but I must disagree with you, respectfully, regarding using a Form in the way you show here.

It's a waste of resources, imho, even if you go to the trouble of hiding all the form-adornments, control-box, maximize and minimize buttons, etc.

By the way in the code you show here, if the Form is the last control added to the Panel, the setting of its Dock property to 'Fill means it will fill the Panel and completely obscure any other controls added previously.

The idea that would one would want to "Clear" all the Controls in a Panel, is, to me, also a dubious one: typically you have built-up a set of Controls in a Container for a good reason, and you would want to re-use them, not discard them.

UserControls and Panels, and other "lighter weight" containers, make sense here, given the little we know of the OP's actual scenario.

best, Bill
"Is it a fact - or have I dreamt it - that, by means of electricity, the world of matter has become a great nerve, vibrating thousands of miles in a breathless point of time? Rather, the round globe is a vast head, a brain, instinct with intelligence!" - Nathanial Hawthorne, House of the Seven Gables

GeneralRe: Managing multiple controls Pin
Eddy Vluggen11-Sep-11 1:37
professionalEddy Vluggen11-Sep-11 1:37 
GeneralRe: Managing multiple controls Pin
BillWoodruff11-Sep-11 2:44
professionalBillWoodruff11-Sep-11 2:44 
GeneralRe: Managing multiple controls Pin
Eddy Vluggen11-Sep-11 2:52
professionalEddy Vluggen11-Sep-11 2:52 
QuestionVS2008 WMP Issue wirh user privileges Pin
Martin Wasley9-Sep-11 12:22
Martin Wasley9-Sep-11 12:22 
AnswerRe: VS2008 WMP Issue wirh user privileges Pin
TheGreatAndPowerfulOz12-Sep-11 11:34
TheGreatAndPowerfulOz12-Sep-11 11:34 
QuestionJust wondering..c# online Pin
stephen.darling9-Sep-11 6:48
stephen.darling9-Sep-11 6:48 
AnswerRe: Just wondering..c# online Pin
AspDotNetDev9-Sep-11 7:13
protectorAspDotNetDev9-Sep-11 7:13 
GeneralRe: Just wondering..c# online Pin
stephen.darling9-Sep-11 7:17
stephen.darling9-Sep-11 7:17 
GeneralRe: Just wondering..c# online Pin
AspDotNetDev9-Sep-11 7:32
protectorAspDotNetDev9-Sep-11 7:32 
GeneralRe: Just wondering..c# online Pin
stephen.darling9-Sep-11 8:12
stephen.darling9-Sep-11 8:12 
GeneralRe: Just wondering..c# online Pin
Richard MacCutchan9-Sep-11 21:28
mveRichard MacCutchan9-Sep-11 21:28 
GeneralRe: Just wondering..c# online Pin
stephen.darling10-Sep-11 3:04
stephen.darling10-Sep-11 3:04 
AnswerRe: Just wondering..c# online Pin
BillWoodruff9-Sep-11 14:37
professionalBillWoodruff9-Sep-11 14:37 
GeneralRe: Just wondering..c# online Pin
stephen.darling10-Sep-11 3:04
stephen.darling10-Sep-11 3:04 
AnswerRe: Just wondering..c# online Pin
jschell10-Sep-11 8:14
jschell10-Sep-11 8:14 
GeneralRe: Just wondering..c# online Pin
stephen.darling10-Sep-11 8:24
stephen.darling10-Sep-11 8:24 
QuestionPacking optimisation code/alogrithm required Pin
_awatts9-Sep-11 2:37
_awatts9-Sep-11 2:37 

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.