ModFormFade 1.0.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ModFormFade --version 1.0.3
NuGet\Install-Package ModFormFade -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ModFormFade" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ModFormFade" Version="1.0.3" />
<PackageReference Include="ModFormFade" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ModFormFade --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ModFormFade, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=ModFormFade&version=1.0.3
#tool nuget:?package=ModFormFade&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ModUtility - Fade & Form Manager per WinForms VB.NET
ModUtility
è un modulo utile per la gestione semplificata dell'apertura dei Form
in un'applicazione WinForms con effetto dissolvenza (fade) sul titolo e gestione automatica del contenuto all'interno di un Panel
.
✨ Funzionalità
- FadeControl: applica un effetto dissolvenza in entrata/uscita su qualsiasi
Control
- ApriFormFade: apre un
Form
dentro unPanel
con dissolvenza del titolo - CloseOpenForm: chiude eventuale form già aperto nel
PanelBody
📦 Requisiti
- VB.NET (Windows Forms)
- Controlli presenti nel
Form
:- Un
Panel
chiamatoPanelBody
- Un controllo (di solito
Panel
) chiamatopnlTitoloPers
- Un
🧑💻 Utilizzo
1. Import del modulo
Assicurati che ModUtility.vb
sia incluso nel tuo progetto o in una libreria referenziata.
2. Struttura base del Form
principale
Nel Form
principale (FormMain
, per esempio), assicurati di avere:
' Panel che ospita i Form secondari
Private WithEvents PanelBody As New Panel With {
.Dock = DockStyle.Fill,
.Name = "PanelBody"
}
' Pannello personalizzato per il titolo
Private pnlTitoloPers As New Panel With {
.Dock = DockStyle.Top,
.Height = 50,
.BackColor = Color.SteelBlue,
.Name = "pnlTitoloPers"
}
💡 Versione alternativa (completa)
Se il tuo form ha un pannello con un nome personalizzato (ad esempio PanelPluto), puoi usare la versione completa del metodo:
ModUtility.ApriFormFade(New Form3(), Me, PanelPluto)
Parametri:
New Form3() → il form che vuoi aprire
Me → il form attuale (quello da cui chiami)
PanelPluto → il pannello dove vuoi caricare Form3
### Esempio
```vbnet
Imports ModUtility
Public Class MainForm
Private Sub btnApriForm_Click(sender As Object, e As EventArgs) Handles btnApriForm.Click
ModUtility.ApriFormFade(New FormClienti()) ' con effetto dissolvenza
End Sub
End Class
### Esempio Demo
```vbnet
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has 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.