private string DisplayKeyboard(string KeyText, string type) { s_KeyText = ""; KeyboardInterface objKeyboard = new KeyboardInterface(); if (type == "Pwd") { objKeyboard.IsPwd = true; } objKeyboard.Closing += new System.ComponentModel.CancelEventHandler(objKeyboard_Closing); objKeyboard.KeyString = KeyText; objKeyboard.Top = this.Top + this.Height - objKeyboard.Height; objKeyboard.Left = this.Left + this.Width / 2 - objKeyboard.Width / 2; objKeyboard.ShowDialog(); return s_KeyText; }
private string DisplayKeyboard(string KeyText, string type) { s_KeyText = ""; KeyboardInterface objKeyboard = new KeyboardInterface(); if (type == "Pwd") { objKeyboard.IsPwd = true; } objKeyboard.Closing += new System.ComponentModel.CancelEventHandler(objKeyboard_Closing); objKeyboard.KeyString = KeyText; objKeyboard.Top = this.Top + this.Height - objKeyboard.Height; objKeyboard.Left = this.Left + this.Width / 2 - objKeyboard.Width / 2; objKeyboard.ShowDialog(); return(s_KeyText); }