Win32Methods 1.3.2
See the version list below for details.
dotnet add package Win32Methods --version 1.3.2
NuGet\Install-Package Win32Methods -Version 1.3.2
<PackageReference Include="Win32Methods" Version="1.3.2" />
paket add Win32Methods --version 1.3.2
#r "nuget: Win32Methods, 1.3.2"
// Install Win32Methods as a Cake Addin #addin nuget:?package=Win32Methods&version=1.3.2 // Install Win32Methods as a Cake Tool #tool nuget:?package=Win32Methods&version=1.3.2
This Package is not meant for using a native methods, it uses the methods that are from win32 librarys. and make it more easier, so you can modify your window properties more easily instead of P/Invoke. If you downloaded it, Thank you very much for downloading it! before start, there is one step only to do to make the package working perfectly:
Change your net version to net-windows because this package is only compatible with windows. (Sure because it uses methods from windows).
Now you can start working! if you don't what to do, type using Win32Methods; (the namespace of this package). you can see four namespaces in it: Windows, Exceptions, System Let's start with Window class: // here we are using a namespace from Win32Methods.Windows; using Win32Methods.Windows; // and we declaring a new variable of Window class. And using the console handle from NativeConsole class because our application is console. if we didn't used it will not work! Use the current constructor if the application is not console. Window app = NativeConsole.ConsoleHandle; // and we set the title of this application to "Hello, world" // However it is a console, so if it reclicked and moved it will back to default. app.Title = "Hello, world!"; // and we set the size of the application to 800, 600 pixels. // The first one is the width size of the window, and the second one is the height size of the window. app.Size = new(800, 600); // we flashing the window with default enum value. app.Flash(); // and we focusing the window to the top. app.Focus(); // and we wait for the application to exit. app.WaitForExit(); // And that's all for today.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0-windows7.0 is compatible. net8.0-windows was computed. |
-
net7.0-windows7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.