help me solve this c# error: You cannot set Visibility or call Show, ShowDialog or…
Jump to turn (11)
- 1help me solve this c# error: You cannot set Visibility or call Show, ShowDialog
- 2give me an example in code
- 3no, I got the problem in ShowDialog, I don't change the visibility at all
- 4how can i check if the window is closed before calling showdialog?
- 5ok i got another thing that happened when ddebugging and checking the value of a
- 6how to check if a dictionary has a key before using it?, it is throwing me an er
- 7dict = new Dictionary > { }; give me examples on how to define this dictionary w
- 8do unit tests of this class in mstest public static string NormalizeString(strin
- 9i am running windows 10, and I accidentally updated nvidia drivers because it as
- 10is doesn't show me the old driver, how can I get it?
- 11I know how to download the previous one but I don't know which version was
- User
help me solve this c# error:
You cannot set Visibility or call Show, ShowDialog or WindowInteropHelper.EnsureHandle after a Window element has been closed. Source -> PresentationFramework StackTrace -> in System.Windows.Window.VerifyCanShow() in System.Windows.Window.ShowDialog() TargetSite -> Void VerifyCanShow()
- Assistant
This error occurs when you try to modify the visibility or show the window after it has been closed. To solve this error, you need to make sure that you are not trying to modify the window after it has been closed.
Here are some steps you can follow to solve this error:
- Check your code to see if you are trying to modify the window after it has been closed.
- If you are using the Show or ShowDialog method, make sure you call the Close method to close the window before trying to modify it.