I have opened VS2022 (V17.0.4) two times at the moment.
In a VB Windows Forms .net Framework project I can search in a control's property:
In a C# Windows Form .NET6 Project (Core) I cannot (there is no textbox for searching a property like in the first screenshot):
Is this search functionality indeed only availabvle in the .net Framework project or does it depend on VB or is this a setting I can set to "On" somehow?
After some investigation, it turns out that this search feature is not provided by VisualStudio, but by the DevExpress extension.
Related
I've been looking around for a while about this issue: I need to add to my Windows Forms App (VB.net - Framework 5.0) a chart but it's not shown in the VS2019 Toolbox. I've tried to reset the toolbox and to add the component but the chart command isn't available yet. How could I solve this issue?
Thanks all are gonna answer me. Best regards
Firstly, there's no Chart "command". It's a control.
As for the issue, there is no Framework 5.0. The last version of the .NET Framework is 4.8. .NET 5.0 is based on .NET Core. Everything in .NET Core had to be reimplemented from the ground up so, while the vast majority of what was available in .NET Framework is also available in .NET Core, there are some things that have not been migrated yet. According to the documentation, the Chart control is one of those things. If you want to use a Chart control, you'll have to target .NET Framework 4.8 or earlier. That would mean creating a new project, because there's no automatic conversion between .NET Core and .NET Framework or vice versa.
For using the chart in .NET5.0 one can download Maikebing.System.Windows.Forms.DataVisualization from the Nuget package.
Although for unknown reasons, after some time this control vanished from the toolbox of Visual Studio 2019!
I want to store startup settings for my project. When I go to the project Properties/Settings, it's empty except for a link that says, "This project does not have a default settings file. Click here to create one." When I click the link to add one, it says "The system cannot find the file specified. (Exception from HRESULT: 0x80070002." So, how do I add a default settings file?
As mentioned in my comments, this seems to be a bug in VS and ought to be reported to Microsoft. As a temporary workaround, you can actually copy the settings files from a .NET Framework project into a .NET Core project. As far as I can tell from examining various VB and C# projects targeting .NET Framework and .NET Core, the settings files are the same in each case, so there's no issue copying between them. Here's what I did:
Added a VB WinForms app project targeting .NET Framework to the same solution.
Clicked the Show All Files button in the Solution Explorer for both projects.
Expanded the My Project node for both projects.
Dragged the Settings.settings item from the .NET Framework project to the .NET Core project.
It seemed to work as expected after that.
I am looking at a legacy .NET application and need to know if it is using Silverlight. If it is, I need to migrate the code to WPF, XAML, or HTML5.
Is there a specific set of namespaces and references that tell me that this is a Silverlight application?
Some indicators:
the ProjectTypeGuids element in the .csproj/.vbproj files contains the Silverlight project GUID: {A1591282-1198-4647-A2B1-27E5FF5F6F3B}
the System.* dependencies, when observed in the property grid in Visual Studio, would have version 5.0.5.0 or similar.
You can see a Silverlight project property with bellow link
Silverlight project property
I have two .NET projects in the same domain. The first project I create long time ago in VB.NET. Now I create another project that I built in C#. How can I set up my new project in the same domain so I can access the new forms that I built in C#. Do I need to submit the whole folder from the project? Do I need to change anything in the web.config? Right now I am getting this error. [PhoneControl] is the new project in C#.
http://www.martinesexpress-inc.com/PhoneControl/Default.aspx
If you look in the error page it says:
alt text http://img246.imageshack.us/img246/5868/capturevv.png
Version Information: Microsoft .NET Framework Version:1.1.4322.2407;
ASP.NET Version:1.1.4322.2407
And you are trying to use some .NET 3.5 components
Change the website to use .Net 2.0 and make sure the server have .NET 3.5 SP1 installed
If you are using IIS6:
alt text http://img185.imageshack.us/img185/1410/capture2s.png
You're declaring the language correctly in your page?
I am building an executable using VS2008 and .NET compact framework 3.5, targetting Windows Mobile 6 professional, but whenever I compile the project, everything that I have specified in the AssemblyInfo.cs file is ignored.
I have done this many times in other projects and it works without problem, but for some reason I cannot get the AssemblyTitle/AssemblyProduct/AssemblyVersion attributes etc to show up (I am trying to view them using Windows Explorer, I am able to see these properties in the details tab for any other assembly that I have built - even other projects in the same solution).
Any suggestions?
That info is looking at the native version info, which on the desktop is set using the AssemblyFileVersionAttribute. The AssemblyFileVersionAttribute is unsupported in the CF, so the only way to set the version info out of the box is to command-line compile. There is a workaround in this blog.
I know this is old, but there's a simpler solution posted here:
Version number in .NET Compact Framework application
You have to use reflection.
System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Major System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Minor System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Build System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Revision
in tag PlatformFamilyName; rather that PocketPC, change to add WindowsCE
in csproj