MessageBox.Shown() only pop up in debug mode.
I have published a WPF app and I have tested if the message box show up in release mode but on some PCs it's not popping up on mine it's working.
What can cause the problem in this case? I tried to change the target runtime also but not worked.
25 Replies
Unknown User•5d ago
Message Not Public
Sign In & Join Server To View
Sorry valid, I tested two of them but no results.
Unknown User•5d ago
Message Not Public
Sign In & Join Server To View
Since I posted I tried to log if theres any result of the last if statement like this:
if (match == null)
{
File.AppendAllText("log.txt", $"Not found ID: {inputId}\n");
MessageBox.Show($"No result for the ID: {inputId}");
IdInput.Clear();
return;
}
You ment like that?
It gave me back the input which does not have value so it steps into the if statement
Unknown User•5d ago
Message Not Public
Sign In & Join Server To View
Ahh I see! I try this out thank you! 😄
Unknown User•5d ago
Message Not Public
Sign In & Join Server To View
Valid I change it like this way
Unknown User•5d ago
Message Not Public
Sign In & Join Server To View
No reasone actually, I don't remember why I did that 😅
Its actually a network path
A network drive
Unknown User•5d ago
Message Not Public
Sign In & Join Server To View
Naaah it's not like that in the code. I tried to get the code to my pc from my company laptop 😄
Unknown User•5d ago
Message Not Public
Sign In & Join Server To View
Honestly I just googled it
I'm pretty new with WPF
Unknown User•5d ago
Message Not Public
Sign In & Join Server To View
It seems like much readable also
Unknown User•5d ago
Message Not Public
Sign In & Join Server To View
I try to do these what you said. I look after everything.
Unknown User•5d ago
Message Not Public
Sign In & Join Server To View
Thanks for the suggestions and the help. I'll write if the problem fixed 😄
Unknown User•5d ago
Message Not Public
Sign In & Join Server To View
Yeah I heard a lots of new things from you but great to hear those things
Unknown User•5d ago
Message Not Public
Sign In & Join Server To View
Thank you! 🙂
Success with your advices it works! Thanks! I show you my code.