private void CustomMappingButton_Click(object sender, EventArgs e) { // open a custom mapping form CustomMapping cmForm = new CustomMapping(device); cmForm.Icon = this.Icon; cmForm.Show(); }