Dotnet Forms

0 views
Skip to first unread message

Geneva Andreotti

unread,
Aug 5, 2024, 12:27:57 PM8/5/24
to roeperhoigran
Iam hoping someone can help me in getting an issue of mine to work, I feel as if it is an easy one, however not having any luck in fixing what I am trying to do. I want to be able to pause a video which I am playing using vlc.dotnet below is a brief summary of the structure of my code.

As you can see I have one method which takes a double click from an item in a list box and plays it using the method playfile. However I want to be able to pause the video using my button known as button8. I have tried many things even this


Which I put into the playfile method, however nothing seems to work. I am wondering if my whole method in which I play a file using playfile(); is completely wrong. I am hoping someone can help me in trying to achieve what I need


I am currently studying Visual Basic .Net but I'm currently using Linux Mint 18 Mate and the only Visual Studio that's available is Visual Studio Code. I was wondering if it's able to create Windows Form Application?


Edit: I just want to update this past as technology has progressed and -us/dotnet/core/install/linux only time will make this question obsolete as Microsoft is releasing some of it technologies to linux


Windows Forms is exclusive to the [Desktop] Windows platform. You can certainly not use VSCode for that, not even in Windows, as VSCode doesn't include form designer tools like the regular Visual Studio IDE. So even in case you could compile, there are still lacking all the facilities needed for designing.


I have built an Excel VBA application that lets you use the Excel IDE UserForm designer to layout your form and a macro that generates tkinter Python code that renders the form. The largest challenge is that for some widgets, tkinter uses font size for height/width where Excel uses Points.[email protected]


Windows Forms (and WPF) are both not supported on Linux with .NET Core and probably never will be. Winforms runs on mono, but that is based on .NET Framework, not .NET Core. The reason is mostly because the internal implementation of Windows Forms is actually an abstraction layer over the Windows GDI, and therefore a linux port would need to be a complete rewrite.


.NET 6.0 will bring a new GUI framework called maui, which is intended to bring real cross-platform experience to .NET. This is hopefully the last step to make .NET really cross platform, as it was actually designed 20 years ago. You can already try it out, as prerelease versions of .NET 6.0 are ready for download (go to -download).


You can develop WinForms and WPF UI applications using .Net Core. But these UI applications can run only on Windows. Only non-UI applications developed in .net core is truly cross-platform and can run on Windows, Linux and Mac OS.


Last year we open sourced WinForms and brought it to .NET Core. Now it is available in .NET 5 preview and reviewing new features (like Task Dialog) and lots of PRs from the ole source community. You can check out the repo and the roadmap here:


Thank you for your hard work!!

If you can provide a few examples of creating and running WinForm/WPF programs, or if a link exists, please leave me a comment.I will study hard.We are currently using a third-party Devexpress vendor and are considering cross-platform support.

Thanks again.


Basically the reason is to bring the benefits that .NET Core has to the broader Windows Forms community which has a lot of developers, specially in developing countries. Besides that, Microsoft already open sourced Windows Forms and WPF (Windows Presentation Foundation) libraries.


Windows Forms still has lots of users and with supporting it in .NET Core and .NET 5 we are making sure those users can benefit from from all the performance improvements and new features. This platform is fully supported and will receive all the updates in the future.


Windows Forms + .NET Core allows you to ship your UI framework with your application, independently of the version of the framework installed with Windows. This puts it in line with Qt, Swing, and most other GUI frameworks.


The independence helps avoid problems like this one, whereby upgrading a system from .NET 4.0 to 4.5 introduced problems with almost any app that uses a menu MenuStrip, due to bugs in 4.5. Some hard lessons were learned by the team in that 4.5-4.6 time period and Microsoft had to start building .NET Framework in such a way that any new behaviours (including bug fixes!) would need to be opted into on a per-application basis. But that has proven to have its limits, too, because third-party libraries have to understand all the potential variances in behaviour, too.


We have a bunch of forms that inherit from a common base class like FormBaseTViewModel. For us the FormBaseTViewModel does a lot of heavy-lifting and it is essential to our existing infrastructure. But the WinForms designer crashes for inherited types. Eg. cant open the designer of Foo where `Foo : FormBaseFooViewModel`. There are certain hackish workarounds available on the internet but they all work only maybe at best 50% of the times.


Yes! We will definitely support it, this is our next item on the roadmap after completing third-party controls and data binding scenarios! Sorry for your struggle now, we are working hard on getting it all done!


With the preview released today Visual Basic designer support is completely broken for core projects (null reference Dialog if you try to open any form in designer). They do work in release version at least for supported controls.


Note that you will also reset UI customizations (theme, position of windows, code styles, etc), which is a pain. But seeing as how that Button control is kind of important, I guess it just has to be borne.


Hi; When i double-click on the form in the Solution Explorer i have this warnig message : The object reference is not defined to an instance of an object.

please what to do to resove this probleme.


Basically as it says in the title. I have installed the Forms package and have a license in umbraco/Licenses which covers localhost. When I run it straight from dotnet run, eg, localhost:17925 it works fine. When I publish the site and run from an IIS website which calls the published folder, using localhost:80, it does not seem to find the License - which does seem to be still there in its Licenses folder - and just show what looks like Angular placeholders in the Forms area. In Console it has:


ASP.NET Web Forms is a web application framework and one of several programming models supported by the Microsoft ASP.NET technology. Web Forms applications can be written in any programming language which supports the Common Language Runtime, such as C# or Visual Basic. The main building blocks of Web Forms pages are server controls, which are reusable components responsible for rendering HTML markup and responding to events.[1] A technique called view state is used to persist the state of server controls between normally stateless HTTP requests.[2]


Web Forms was included in the original .NET Framework 1.0 release in 2002 (see .NET Framework version history and ASP.NET version history), as the first programming model available in ASP.NET. Unlike newer ASP.NET components, Web Forms is not supported by ASP.NET Core.[3]


ASP.NET web pages, known officially as Web Forms,[4] were the main building blocks for application development in ASP.NET before the introduction of MVC.[5] There are two basic methodologies for Web Forms: a web application format and a web site format.[6] Web applications need to be compiled before deployment, while web sites allow the user to copy the files directly to the server without prior compilation. Web forms are contained in files with a ".aspx" extension; these files typically contain static (X)HTML markup or component markup. The component markup can include server-side Web Controls and User Controls that have been defined in the framework or the web page. For example, a textbox component can be defined on a page as , which is rendered into an html input box. Additionally, dynamic code, which runs on the server, can be placed in a page within a block , which is similar to other Web development technologies such as PHP, JSP, and ASP. With ASP.NET Framework 2.0, Microsoft introduced a new code-behind model that lets static text remain on the .aspx page while dynamic code goes into an .aspx.vb or .aspx.cs or .aspx.fs file (depending on the programming language used).[7]


Microsoft recommends dealing with dynamic program code by using the code-behind model, which places this code in a separate file or in a specially designated script tag. Code-behind files typically have names like "MyPage.aspx.cs" or "MyPage.aspx.vb" while the page file is MyPage.aspx (same filename as the page file (ASPX), but with the final extension denoting the page language). This practice is automatic in Visual Studio and other IDEs, though the user can change the code-behind page name. Also, in the web application format, the pagename.aspx.cs is a partial class that is linked to the pagename.designer.cs file. The designer file is a file that is autogenerated from the ASPX page and allows the programmer to reference components in the ASPX page from the code-behind page without having to declare them manually, as was necessary in ASP.NET versions before version 2.[8] When using this style of programming, the developer writes code to respond to different events, such as the page being loaded, or a control being clicked, rather than a procedural walkthrough of the document.


Programmers can also build custom controls for ASP.NET applications. Unlike user controls, these controls do not have an ASCX markup file, having all their code compiled into a dynamic link library (DLL) file. Such custom controls can be used across multiple Web applications and Visual Studio 2013 projects.

3a8082e126
Reply all
Reply to author
Forward
0 new messages