Click here to Skip to main content
15,883,835 members
Home / Discussions / C#
   

C#

 
QuestionRdlc reporting page break doesnt work- URGENT Pin
Member 132642683-Dec-18 18:40
Member 132642683-Dec-18 18:40 
AnswerRe: Rdlc reporting page break doesnt work- URGENT Pin
Richard MacCutchan3-Dec-18 21:56
mveRichard MacCutchan3-Dec-18 21:56 
AnswerRe: Rdlc reporting page break doesnt work- URGENT Pin
OriginalGriff3-Dec-18 22:16
mveOriginalGriff3-Dec-18 22:16 
QuestionScan Barcode Get Product Image Pin
Kevin Marois2-Dec-18 12:02
professionalKevin Marois2-Dec-18 12:02 
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 
Hi Guys.

I'm trying to learn C# at the moment. I did some years ago using .net and WinForms but revisiting the language it seems WPF is the way to go? It might be me, but WPF seems a great deal more fiddly. Solutions that were really quite simple in Winforms, appear to take longer to code in WPF!

Not to rant. I'm sure there are many hidden benefits to WPF if I just stick with it! but I'm currently tearing my hair out after about 4 hours of failed googling. I just wanted you to know where my head is at before I go into the specific problem. I'm sure I'm not the first to find myself staring at the WPF framework in total confusion.


So. I managed to build a form (Window lol) with 5 buttons. Each button successfully opens an instance of a child window. One of these windows called 'LogWindow' contains (yes you guessed it) a textbox that I'm using as a log. Another window, that 'does something' needs to output a text based result (success or fail) to the LogWindow textbox.

I though this would be as easy as saying LogWindow.Textbox1.Text += updateText + /r/n" or something like that, but no, apparently not in WPF land.

Can anyone point me in the direction of a simple example where this is done? I think my knowledge needs more of a refresh than I thought lmao!

My Code Parts:


// Creating windows from the new window classes
private NetworkingWindow NetworkingWindow = new NetworkingWindow();
private ClientWindow ClientWindow = new ClientWindow();
private LogWindow LogWindow  = new LogWindow();



// code within the network window that needs to change the text in the log windows textbox
foreach (Error NetErr in results.Errors)
    {
      LogWindow.LogTextBox.text += updateText + /r/n"   
      // I suspect that this is wrong and I'm contacting the control in a non WPF manner
    } 


Any help would be greatly appreciated. Fully working examples with comments would be fantastic as I tend to go grab a coffee and read through them to try and learn what I can that way.

Thanks All!
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 
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 

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.