Win32Methods 1.1.7
See the version list below for details.
dotnet add package Win32Methods --version 1.1.7
NuGet\Install-Package Win32Methods -Version 1.1.7
<PackageReference Include="Win32Methods" Version="1.1.7" />
paket add Win32Methods --version 1.1.7
#r "nuget: Win32Methods, 1.1.7"
// Install Win32Methods as a Cake Addin #addin nuget:?package=Win32Methods&version=1.1.7 // Install Win32Methods as a Cake Tool #tool nuget:?package=Win32Methods&version=1.1.7
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: MessageBox, Window, Exceptions, System Let's start with Window class: // here we are using a namespace from Win32Methods.Window; using Win32Methods.Window; // and we declaring a new variable of Window class. And using the console handle 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 = Window.Console; // 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 Size(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. (Same as Process.WaitForExit()) app.WaitForExit(); // and that's all for the tutorial! thanks for reading it!
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.