.NET Core 3.1 Windows Forms Designer Bug? - winforms

I've created a .NET Core 3.1 Windows Forms app and am trying to add a RadioButton inside a Panel inside a TabPage using the designer but it won't let me. Am I doing something wrong, or is this a bug?
In addition, I cannot reposition the Panel using the mouse, only cursor keys.
I can do this just fine in a .NET 4.7.2 app.

You can double click to user control on components panel.
It will be added to 0,0 coordinate on Windows form.

Related

WPF: How to know Open Window, User control name

In the web application, we just right click on the page go to properties and can see the opened page path. How to achieve this in WPF application. I am running a WPF app having windows with many user control. I want to edit a user control. So I want to know its name and location in my project folder.
That is not possible like how you can in a web application, however there are some tools that can help you.
WPF Snoop
Used to inspect WPF application rather like 'Inspect Element' in a webpage. After inspection, pressing ALT+SHIFT will higlight what element is under the mouse and show you its name. Then you can search for that name in Visual Studio to find the class to edit.
See https://github.com/snoopwpf/snoopwpf
Visual Studio XAML Inspector
The microsoft version of the above 'Live Visual Tree Inspector' now built into Visual Studio and compatible with .NET Core 3.0 as well as .NET Framework.
See https://learn.microsoft.com/en-gb/visualstudio/xaml-tools/inspect-xaml-properties-while-debugging?view=vs-2019

chromium free c# wpf control

I want to use web page in my C# wpf application but the webbrowser control integreted in visual studio is old and use IE
How can I use a chromuim control in place of the IE Webbroswer control
thanks
You can try WebKitDotNet which is a wrapper for WebKit in .Net WinForm.
To put a WinForm control in a WPF Window, you can use the WinForm Host control.
finally I succeed with CEFSharp
It works geart
I tried with WebKitDotNet but it was more complicated

.Net 2.0 custom controls and WPF

out of curiosity i just want to know those custom control which was developed in .Net 2.0 version that can be reused in WPF application. if yes then what would be the process. usually we add custom control to the toolbox and just drag & drop those onto form and easily manipulate and work with them. so can we follow the same step to include those custom control developed with .net v2.0 onto WPF form or not. please discuss. thanks
You can reuse Windows Forms Controls in a WPF application (and the reverse is also true, you can host WPF controls in a Windows Forms application) .
Here is an official documentation link on this subject: Walkthrough: Hosting a Windows Forms Composite Control in WPF

What technology is used for Visual Studio SDK window?

What library is used to create a window form like below?
It certainly does not look/feel/acts like a typical windows forms app.
Spy++ says it's a Windows Forms app, with a Web Browser control embedded for the bottom portion (window 004109AA, bottom). The tabs too are a Windows Forms control (window 006B0D26, 5th from top).
spy++ http://img10.imageshack.us/img10/7308/spyf.png
If you use Spy++ you can see what it is based off of the class name of the window. It looks like it could be WPF or HTML.

Excel & WPF modal form

I've got this situation. (.net 3.5)
A Winform application that with OleAutomation and Office Interop create an excel, a toolbar and handlers for buttons in the toolbar.
Now we've got some functionality that shows the user modal windows (winform 2.0) with the method:
form.ShowDialog(new ExcelHwndWrapper(objExcelApplication.HWND))
And the "owner" of the modal form is set to the "excel" window.
Now I would like to create some WPF Window instead of Winforms due to layout requirements for new functionalities.
Is there any way to Show a WPF ModalDialog "over" excel Window ?
I found something for showing a WPF ModalDialog "over" a winform, but nothing over excel.
Thanks.
When using VSTO and Office 2007, I've had trouble using WPF Windows as modal dialogues. What I found that worked much better was creating a Winforms Form and putting an ElementHost control inside it, then putting my WPF content inside that.
When I used WPF Windows without the Winforms wrapper I ran into trouble with properly capturing keyboard input, among other things.
As long as you make the ElementHost stretch to fill the entire dialogue it'll look like you have a WPF Window.

Resources