Android Question VB.Net MessageBox problem

LeeM

Member
Licensed User
Longtime User
I'm asking this here as I'm sure there are some great .net programmers around these parts.

I'm creating a 'remote control' app using B4A and the Bluetooth tutorial (my tablet controls a vb.net app).
I press a button on my tablet and the corresponding Button_Click event is fired in my vb.net app.
B4X:
Call NextGameButton_Click(Me, EventArgs.Empty)

Everything is working great so far but occasionally a MessageBox is shown in the .net app. and I need to click the Yes/No or OK button (via remote control) but I don't know how to do this in .net as there are no click events.
Can anyone offer any solutions ?
 

LeeM

Member
Licensed User
Longtime User
Thanks, that pointed me in the right direction.

For anyone else who's interested the code is
B4X:
My.Computer.Keyboard.SendKeys("~", True) 'Enter key
for MessageBoxs with just OK as a response and

B4X:
My.Computer.Keyboard.SendKeys("Y", True)
My.Computer.Keyboard.SendKeys("N", True)
for Yes/No response.
 
Upvote 0
Top