Reply to thread

This code will show it:


[code]

VirtualSearchKeyboard keyBoard = (VirtualSearchKeyboard)GUIWindowManager.GetWindow(1001);

keyBoard.Text = String.Empty;

keyBoard.Reset();

keyBoard.DoModal(activeWindow); // show it...


// keyBoard.Text will give you the input once the user has closed the keyboard

[/code]


If you want to be notified everytime a key is pressed on the keyboard, you can subscribe to the events like so:


[code]

keyBoard.TextChanged += new MediaPortal.Dialogs.VirtualSearchKeyboard.TextChangedEventHandler(keyboard_TextChanged); // add the event handler[/code]


Sam


Top Bottom