I am trying to code for pop up message box for displaying message for successful record insertion in C#.net
Error :
The type or namespace name 'Windows' does not exist in the namespace 'System' (are you missing an assembly reference?)
Code :
global::System.Windows.Forms.MessageBox.Show("Test");
The solution in this case is to either upgrade the framework target of the application (Project A), or downgrade the target of referenced assembly (Project B).
To fix this error, simply update the example . csproj file to use a previous System. CommandLine version. Note that this package is only used to parse the options for the example.
If you are using MS Visual Studio:
P. S.: Additionally, I had to do the same with "System.Drawing" for everything to work correctly in my first GUI Windows program.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With