Skip to content

Creating A Config Window

ChocolateAdventurouz edited this page Jun 13, 2022 · 3 revisions

You've made your plugin but you want to make a configuration window, using Windows Forms. Easy!

Setting up the window

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

Implementing the window to the plugin

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.

Clone this wiki locally