Make a window without using class System.Windows.Forms.Form?
Continuing from one of my previous questions, how would I achieve this?
Would I just draw to the screen? Is it hard?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You avoid the Windows Forms class you mentioned, and just use System.Windows.Window (which is the WPF window) to create a Window without the Windows Forms classes – but I suspect this isn’t the answer you are after…
Window creation is typically done by using the Windows API – Windows Forms (and WPF’s main window) wrap the Windows API calls to create a window (ie: CreateWindowEx). You could, of course, P/Invoke these calls yourself if you chose, but there really is no reason to do this.