Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Visual Studio .NET
VS.NET General Discussion
Creating Windows Applications in VB Net
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="jmcilhinney, post: 185357, member: 641"] You are targeting .NET Core rather than .NET Framework. If you create a new project and, this time, select the project template that says ".NET Framework" rather than just ".NET" then you will be able to target .NET Framework 4.8 or earlier and everything will work as it did before. .NET Core has some advantages over .NET Framework but it had to be built from the ground up, with the existing functionality of .NET Framework added bit by bit. Support for Windows Forms was added in .NET Core 3.0 but it there were significant bits missing, especially in VB projects. .NET 5.0 is basically an improved .NET Core 3.1 and a replacement for .NET Framework 4.8. WinForms support is almost 100% in .NET 5.0 but there are still a few issues here and there. Renaming your startup form is one that I have encountered before. I think that it only happens if you use the name [ICODE]MainForm[/ICODE], because the VB Application Framework has a property with the same name. I might be remembering incorrectly though. Regardless, if you want to stick with .NET Core then definitely use .NET 5.0 and we can sort out your renaming issue with a bit of manual editing. Otherwise, ditch this project and create a new one targeting .NET Framework and stick with that for now. .NET Framework will be around for a good while yet and there's no major advantage to using .NET Core in WinForms anyway, as it's still Windows-specific. If you need to migrate to .NET Core later, you can do so. There's no easy way to convert a project from one to the other right now but that may change in future. Even if it doesn't, you can just create a new project and then drag items from one project to the other in the [I]Solution Explorer[/I]. [/QUOTE]
Insert quotes…
Verification
Post reply
Visual Studio .NET
VS.NET General Discussion
Creating Windows Applications in VB Net
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom