WPF C# Selected Row from a Listbox in the Database
-
Hi at all Im new in C# WPF and SQL since days im sitting on a problem I could not solve, and hope of help but fdid not find the Problem, because I'm not so good in sql: I try to delete(Löschen) a Dataset from Listbox and the Database behind(MySQL), and i do not find my failure. Please can you help me? I tried to send a Screenshot, but dont find a way.... Thanks for your help XAML-Code
-
Hi at all Im new in C# WPF and SQL since days im sitting on a problem I could not solve, and hope of help but fdid not find the Problem, because I'm not so good in sql: I try to delete(Löschen) a Dataset from Listbox and the Database behind(MySQL), and i do not find my failure. Please can you help me? I tried to send a Screenshot, but dont find a way.... Thanks for your help XAML-Code
You should put your "start up code" in the MainWindow Loaded event; there are too many side effects when you do too much in the "constructor" of the main window (or any window for that matter).
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
-
You should put your "start up code" in the MainWindow Loaded event; there are too many side effects when you do too much in the "constructor" of the main window (or any window for that matter).
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
That's a good tip, thanks... As for my background, I'm 56 and what other crosswords are, C# is to me. I'm currently learning C# with books, but unfortunately they are very buggy and I just can't find the bug: Database error! System.FormatException The input string is in the wrong format
-
Hi at all Im new in C# WPF and SQL since days im sitting on a problem I could not solve, and hope of help but fdid not find the Problem, because I'm not so good in sql: I try to delete(Löschen) a Dataset from Listbox and the Database behind(MySQL), and i do not find my failure. Please can you help me? I tried to send a Screenshot, but dont find a way.... Thanks for your help XAML-Code
Test the value of:
Int32.Parse(lbArtikel.SelectedValue.ToString()));
I would guess it is probably null.
Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP
-
Test the value of:
Int32.Parse(lbArtikel.SelectedValue.ToString()));
I would guess it is probably null.
Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP
Hello thanks, im looking around to learn anything about the parsing?, an howto with examples, better than the microsoft site?
-
Test the value of:
Int32.Parse(lbArtikel.SelectedValue.ToString()));
I would guess it is probably null.
Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP
Yes, that's it, but now I must find a way to solve my problem thank you for the tip oh, thats a very good side to learn for all beginners like me https://www.dotnetperls.com/parse