public static void Main() { var window = new Window() //make sure the window is invisible { Width = 0, Height = 0, Left = -2000, WindowStyle = WindowStyle.None, ShowInTaskbar = false, ShowActivated = false, }; window.Show(); strButtonPressed = myActions.WindowBalloonMultipleControls(ref myListControlEntity, 140, 500, 0, 0, "NONE"); if (strButtonPressed == "btnCancel") { myActions.MessageBoxShow("Okay button not pressed - Script Cancelled"); goto myExit; } }