I'm new to Visual Studio and C#. Just finished a Windows Form Application but detected following bugs. The program will dies (showing Not Responding) whenever user minimize/restores it, or switch to another task. This bug prevents user multitasking while running this program, so I really want to fix if. I wonder what are the possible causes of the problem, and how to solve them in general. I'd really appreciate any suggestion. Thanks!
Unable to switch task for Windows Form Application
396 Views Asked by andyzhangcr7 At
2
There are 2 best solutions below
0
Rezoan
On
If i am not wrong you are running with a problem of UI freezing. if so why don't you use C# BackgroundWorker. it help you to prevent freezing the window form whether you doing a long task. you can find a good tutorial http://www.dotnetperls.com/backgroundworker here. Hope this will help.
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in WINFORMS
- Musical chairs: How can an asynchronous task cancel a synchronous one in c#?
- TCP Client Losing Connection When Writing Data
- how check if printing content on new page
- Find what is writing to the Output window
- WinForms, event unable to subscribe from a custom class
- A cleaner way to approach the given output
- Working with panel and moving from the second form to the the panel
- Accurately placing multiple controls in a row programmatically with dynamic table layout panel
- How to find winform application in visual studio 2022?
- How to stop comments being included in C# release build .exe
- Why is the Blazor value not immediately being rendered after changing it?
- .NET 6 Winforms separate forms control pop up freezing when unfocused and using native Windows file transfer pop up
- How to Fix C# WinForms Application Not Loading correctly on Windows 11?
- Visual Studio edit view corrupt for xaml and Winforms design views
- How to solve the problem that dragged column in datagridview too slow or miss when AllowUserToOrderColumns = true
Related Questions in VISUAL-STUDIO-2010
- how do i stop system stack overflow in visual basic?
- How to remove shortcut/alias to a .cpp and .h file from another project in Visual Studio 2019?
- VS2010 Macro/Environment issue causing a HResult: 0x80070057 (E_INVALIDARG) exception
- DevOps 2022 Server not connecting on VS 2012 and VS 2010
- How can i make a prefab instantiate another prefab?
- VS2010 Installer Project Custom Action to run an EXE is failing
- I commit from my Microsoft Visual Studio, however, I am now seeing that i now have two versions of two files
- Is there a way to make AfxMessageBox() take focus from another program?
- in visual studio 2017 was use a model i made but i get the error Read_POLS_Chunk(): Error reading a polygon not 1-3 vertices
- C++ vector subscript out of range : Monotone Interpolation
- c language, When decimal digit of %g in printf equal to 0.5, and length is more than 6, it is not upper ceil, why?
- IloEnv env ; don't work in the dbug and it can access to it
- Create a kml for a Google Earth tree view item through vb-net
- Error in RDLC REPORT in vs2010- An error occurred during local report processing, Object reference not set to an object instance
- This AVD's configuration is missing a kernel file! Visual Studio Code
Related Questions in TASK-SWITCHING
- How to decide the registers to be preserved for OS task switching?
- Get the count of currently active windows in the current Activity and Virtual Desktop?
- How to correctly set up a task switch via x86 TSS
- The wrong screen is displayed after one of my apps calls another
- Is there a benefit of saving the task context in linked lists rather than an simple stack?
- In Ubuntu, alt-tabbing to switch window doesn't open it even though window appears in task switcher
- Task switching on the x86-32
- Android: Open external app, close it and return to original
- Android prevent appearing sensitive data at task switcher without secure flag
- Disabling the 3D Touch Task Switcher Gesture on the Left Edge of the Screen
- Is there a way to handle the task switcher active?
- How to programatically make a key shortcut?
- Bring TaskSwitcher Window to Foreground - possible?
- VisualStudio debugging required for window switching
- Preventing Sensitive Information From Appearing In The Task Switcher - Apple Code Not Working - iOS 8 glitch?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It could be anything where you have a long running loop or long running operation in your
Form. The fact that you only see "not responding" when you minimize and restore is probably due to the fact that you've forced the window to redraw and forced Windows to recognize the app is hung and use the ghost window. The window was probably already hung before you minimized and restore it. You can verify this by trying to move the window. If it doesn't move, it's hung. If it does move, try to move the title bar off-screen and back (e.g. click in the middle of the title bar and drag it all the way to the right and release the button, then do the same and bring it back on screen).