-
Notifications
You must be signed in to change notification settings - Fork 9
Creating A Config Window
You've made your plugin but you want to make a configuration window, using Windows Forms. Easy!
First, you create a Windows Form with the steps from this screenshot
Then, customize the window as you like.
For this tutorial, I have added a button and a label
You've finished the design. Cool! Now, let's implement it to your plugin ;)
On your C# Code (where you have written your c# code for the plugin), create a public override void
function with the name Config
. On the inside of the Config
function, call the form (your config window)
Example:
public override void Config(){
Form1 f1 = new Form1();
f1.Show();
}
Now build the project/solution, copy the plugin and its files (if you don't know what files you have to copy and where to place them, read this ) and fire up Winamp! Go to preferences -> Plug-ins -> General Purpose and press "Configure" to your plug-in.