Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
AnswerRe: Scan Barcode Get Product Image Pin
Dave Kreskowiak2-Dec-18 16:27
mveDave Kreskowiak2-Dec-18 16:27 
AnswerRe: Scan Barcode Get Product Image Pin
OriginalGriff2-Dec-18 19:49
mveOriginalGriff2-Dec-18 19:49 
GeneralRe: Scan Barcode Get Product Image Pin
Kevin Marois3-Dec-18 6:43
professionalKevin Marois3-Dec-18 6:43 
QuestionWPF and C# - Passing Data and accessing Controls between Child Windows Pin
James Wyatt2-Dec-18 5:45
James Wyatt2-Dec-18 5:45 
AnswerRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
OriginalGriff2-Dec-18 5:58
mveOriginalGriff2-Dec-18 5:58 
GeneralRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
James Wyatt2-Dec-18 6:13
James Wyatt2-Dec-18 6:13 
GeneralRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
OriginalGriff2-Dec-18 6:27
mveOriginalGriff2-Dec-18 6:27 
GeneralRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
James Wyatt2-Dec-18 7:28
James Wyatt2-Dec-18 7:28 
Ok so, problem solved!

I'm going to thank Griff (Thanks Griff!)

After the last update, I decided to go for a walk with the dog and contemplate a possible move back to Forms. I'm not great with C# but I'm enjoying it. I reasoned that maybe I need to stick with Forms which are more familiar, so that I can stick to learning C# better and then maybe move to WPF later on.

I think maybe the fresh air awakened some brain cells as it dawned on me that this isn't a WPF problem, it's a C# problem... or rather a me forgetting the fundamentals of access modifiers problem. As soon as I realised, the dog just got a shorter walk then normal (sorry dog lol).

Sorry to waste your time Griff, but thanks for the chat.

As soon as I changed the logwindow instance to static, and called the LogUpdater method from the child Window it worked!

private static LogWindow LogWindow  = new LogWindow();

public static void LogUpdater(string stringUpdate)
        {
            LogWindow.LogTextBox.Text += stringUpdate + "\r\n";
        }



James Wyatt - Putting the fun back into fundamentals!
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 

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.