public static void ShowMessage(string customMsg) { MsgWindow cw = new MsgWindow(); cw.txtMesage.Text = customMsg; cw.Title = "LogPro Express :: Process Message !"; if (customMsg.Length > 100) { cw.Height = 300; cw.Width = 700; } cw.ShowDialog(); }