Hi! I try to show Windows Form but the form is showing for a moment and after that closes itself. Is Someone can help me???
destruct0 7 Junior Poster in Training
Recommended Answers
Jump to PostExplain: What type is a WindowsForm?
When I use a form it is normally derived from the Form class. A class that lives in the System.Windows.Forms namespace.
Jump to PostI believe your problem lies outside of the code shown here. Could you zip your project and upload it to this thread?
Jump to PostThe only other way I know to catch this is by overriding the OnClosing / OnFormClosing / OnVisibleChanged and setting a breakpoint, and setting a breakpoint in the Form.Designer.cs file.
This method will already exist in the Form.Designer.cs file. One line was added:
…
All 10 Replies
Mitja Bonca 557 Nearly a Posting Maven
destruct0 7 Junior Poster in Training
ddanbe 2,724 Professional Procrastinator Featured Poster
Momerath 1,327 Nearly a Senior Poster Featured Poster
yash_shukla 0 Newbie Poster
Mitja Bonca 557 Nearly a Posting Maven
destruct0 7 Junior Poster in Training
sknake 1,622 Senior Poster Featured Poster
destruct0 7 Junior Poster in Training
sknake 1,622 Senior Poster Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.