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

C#

 
GeneralRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
Pete O'Hanlon4-Dec-18 7:06
mvePete O'Hanlon4-Dec-18 7:06 
GeneralRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
Gerry Schmitz4-Dec-18 7:16
mveGerry Schmitz4-Dec-18 7:16 
GeneralRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
BillWoodruff5-Dec-18 14:49
professionalBillWoodruff5-Dec-18 14:49 
AnswerRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
Mycroft Holmes2-Dec-18 10:42
professionalMycroft Holmes2-Dec-18 10:42 
GeneralRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
James Wyatt2-Dec-18 20:57
James Wyatt2-Dec-18 20:57 
AnswerRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
Gerry Schmitz4-Dec-18 7:58
mveGerry Schmitz4-Dec-18 7:58 
QuestionRdlc reporting page break doesnt work Pin
Member 132642682-Dec-18 3:24
Member 132642682-Dec-18 3:24 
QuestionA problem of great decision Pin
_Q12_2-Dec-18 2:28
_Q12_2-Dec-18 2:28 
AnswerRe: A problem of great decision Pin
Super Lloyd2-Dec-18 17:08
Super Lloyd2-Dec-18 17:08 
AnswerRe: A problem of great decision Pin
Eddy Vluggen3-Dec-18 0:15
professionalEddy Vluggen3-Dec-18 0:15 
AnswerRe: A problem of great decision Pin
Gerry Schmitz4-Dec-18 7:02
mveGerry Schmitz4-Dec-18 7:02 
QuestionC sharp / mysql saving a blob variable into mysql Database Pin
margalla30-Nov-18 2:07
margalla30-Nov-18 2:07 
AnswerRe: C sharp / mysql saving a blob variable into mysql Database Pin
Eddy Vluggen30-Nov-18 2:13
professionalEddy Vluggen30-Nov-18 2:13 
QuestionUsercontrol poser ( rusty Winforms guy ) Pin
pkfox29-Nov-18 4:16
professionalpkfox29-Nov-18 4:16 
AnswerRe: Usercontrol poser ( rusty Winforms guy ) Pin
OriginalGriff29-Nov-18 4:49
mveOriginalGriff29-Nov-18 4:49 
GeneralRe: Usercontrol poser ( rusty Winforms guy ) Pin
pkfox29-Nov-18 5:24
professionalpkfox29-Nov-18 5:24 
GeneralRe: Usercontrol poser ( rusty Winforms guy ) Pin
OriginalGriff29-Nov-18 5:32
mveOriginalGriff29-Nov-18 5:32 
AnswerRe: Usercontrol poser ( rusty Winforms guy ) Pin
BillWoodruff1-Dec-18 16:52
professionalBillWoodruff1-Dec-18 16:52 
GeneralRe: Usercontrol poser ( rusty Winforms guy ) Pin
pkfox1-Dec-18 21:04
professionalpkfox1-Dec-18 21:04 
AnswerRe: Usercontrol poser ( rusty Winforms guy ) Pin
BillWoodruff2-Dec-18 0:43
professionalBillWoodruff2-Dec-18 0:43 
GeneralRe: Usercontrol poser ( rusty Winforms guy ) Pin
pkfox2-Dec-18 3:48
professionalpkfox2-Dec-18 3:48 
GeneralRe: Usercontrol poser ( rusty Winforms guy ) Pin
BillWoodruff2-Dec-18 4:06
professionalBillWoodruff2-Dec-18 4:06 
pkfox wrote:
did you ever find a way of visually removing controls
Hi, do you mean something more than setting their 'Visible property to 'false ? ummm ... when you got a reference, you can do whatever:
ControlDict = this.Controls.FindAll();

Control theButton = ControlDict["button1"];

theButton.BackColor = Color.FromArgb(255, 230, 0);

theButton.Location = new Point(0, 0);

theButton.Hide();

// in practice I'd wrap this in a try/catch for safety, and handle any errors
ControlDict.Remove(theButton.Text);

theButton.Parent.Controls.Remove(theButton);
To pursue this further and compare these rather hackish caniptions with another WinForm app strategy, it would interest me to have a clearer idea of what you want to achieve ... the other strategy would be using what I call the "switchboard model," with a static class handling all inter-form/control interactions and visual state changes... a poor-boy's MVC, perhaps.
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot


modified 2-Dec-18 11:33am.

GeneralRe: Usercontrol poser ( rusty Winforms guy ) Pin
pkfox2-Dec-18 6:03
professionalpkfox2-Dec-18 6:03 
GeneralRe: Usercontrol poser ( rusty Winforms guy ) Pin
BillWoodruff2-Dec-18 6:51
professionalBillWoodruff2-Dec-18 6:51 
GeneralRe: Usercontrol poser ( rusty Winforms guy ) Pin
BillWoodruff2-Dec-18 18:57
professionalBillWoodruff2-Dec-18 18:57 

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.