Ejemplo n.º 1
0
 public static string ShowBox(string txtMessage)
 {
     newMessageBox = new MyMessageBox();
     newMessageBox.lblMessage.Text = txtMessage;
     newMessageBox.Height          = newMessageBox.pictureBox1.Height + (newMessageBox.panel1.Height + 50) + (newMessageBox.kryptonPanel1.Height + 50);
     //newMessageBox.Width = newMessageBox.lblMessage.Width + 25;
     newMessageBox.ShowDialog();
     return(Button_id);
 }
Ejemplo n.º 2
0
        public static string ShowBox(string txtMessage, string txtTitle, int time_millisec)
        {
            newMessageBox = new MyMessageBox(time_millisec);
            newMessageBox.lblTitle.Text   = txtTitle;
            newMessageBox.lblMessage.Text = txtMessage;
            newMessageBox.Height          = newMessageBox.pictureBox1.Height + (newMessageBox.panel1.Height + 50) + (newMessageBox.kryptonPanel1.Height + 50);
            //newMessageBox.Width = newMessageBox.lblMessage.Width + 25;
            newMessageBox.ShowDialog();
            _time_millisec = time_millisec;

            return(Button_id);
        }