Drop files on WPF windows - c#

Using Visual Studio 2022 in debug it is inhibited the drag of anything on a WPF window, while using the executable without VS everything works.
Is there any way to avoid this?

Related

Visual Studio Form Application Click Problem

When I click on buttons(Microsoft Form Application) while writing code in Visual Studio, the syntax continues upwards instead of continuing downwards. Here is screenshot(Visual Studio 2022) of the problem:
(https://i.stack.imgur.com/g8UeZ.png)
What can I do to solve this problem?

Windows Forms application option seems to be missing?

I'm learning how to design a Windows Forms Application in Visual Studio 2017. The tutorial asks me to create a new project using the File -> New -> Project option and selecting 'Windows Forms Application' in the new project dialog box.
However, when I explore this option in Visual Basic, my New Project dialog window only has three options, and the Windows Forms Application is not one of them (see screenshot - attached).
Just wondered if anyone might be able to suggest how to get this option to appear? I have tried looking for the correct option in the Visual Studio installer, but I cannot find it their either.
Screenshot attached.
Because you need to install it.
Go to Visual Studio Installer from the start and check the checkbox .NET Desktop Development.
After that restart the VS 2017.
Open Visual Studio Installer, ‘Modify’ your installation and install the ‘.Net Desktop Development’ workload.
Add "Universal Windows Platform development" to your work load
Visual studio community

Visual Studio 2017 stops working when certain forms or user controls are clicked

At the beginning my project was fine and running but after a while i added more User controls and Windows forms to my project Visual studio started to stop working and restart whenever i click certain windows form design or user control design. I tried many solution but i did not get the answer even i installed and reinstalled visual studio 2017 professional. can someone help me with this situation.
i have tried this solution
"I've been able to debug some control designer issues by running a second
instance of VS, then from your first VS instance do a "Debug -> Attach to
Process" and pick "devenv".
but its not working for me.

Change from Windows Forms to WPF Application

I already made an application that is using Windows Forms, but I knew that Windows Forms setup was no longer available in Visual Studio 2013, that is made me to install both of Visual Studio 2010 and Visual Studio 2013. When I want to make some changes in my application and re-build the setup, I have to run Visual Studio 2010 rather than Visual Studio 2013. The reason because I am using Visual Studio 2013, because I like this version and I am using Visual Studio 2010 just because for when I want to make some changes in my application.
I knew about WPF Applications when I finished made my application. And I am considering to uninstall Visual Studio 2010 and work with Visual Studio 2013. Do I have to re-write everything on my application's code to WPF? Because from what I heard, some functions in WPF are not the same in Windows Forms. And let's say that I successfully change my application from Windows Forms to WPF, what setup is provided with WPF ? So the other users could use my application on their computer?
i knew that Windows Forms setup has no longer available in Visual Studio 2013
Windows Forms is still available as a technology in Visual Studio 2013. If you are referring to the setup project type for creating an installer switching to WPF will not make it available for you.
So you can switch to Visual Studio 2013 and continue using Windows Forms but you will have to find another way to create an installer (and switching to WPF will not fix that problem).
In my opinion the ViX Toolset is very good for creating an installer. However, it is not "drag and drop" as the old Visual Studio Setup project type is.
#Kaoru You have to make some changes, Because some of functions in WPF and Win Forms are different.You don't need to change the Application Logic. But you have to change some modifications in UI and also code.
I heard a tool something called WF2WPF But I never used it and not found yet it.
If you are missing installer projects in VS 2013, then you may want to try Visual Studio Installer Projects Extension.
This preview release provides support for Visual Studio Installer projects in Visual Studio 2013. You can download the extension from the Visual Studio Gallery.

how can i go back to the visual studio after clicking add-in from tools

I am making add-in (plug in )for visual studio 2010 .
We know that add-in will be visible inside tools menu, whenever we click tools menu in visual studio 2010.
Whenever i click the add-in it loads one windows forms and some quering all will do on windows forms .
But i am not able to go back to visual studio to see other things whenever add-in running.
I just want control to go back to visual studio IDE , eventhough add-in form is runnning aside .
Use Form.Show() instead of Form.ShowDialog() to create a non-blocking window.
Even better, use dte.Windows.CreateToolWindow2 to create a VS tool window to host your content.

Categories