I have a well running rdp client in vb.net. It has 2 forms, one for data entry (passwords, server names, etc) and the second form containing the rdp7 control maximized to fill the form(no form border, no min/max/X).
The problem for me is that when I click "log out" within the rdp session, it doesn't appear to trigger an "on_Disconnect" event, thus the form holding the rdp control stays open, but blank. Since it is full screen, I have to close it manually from the task bar icon or maximize the original data entry form and close that one to close the application.
My understanding of rdp terminology is in RDP session, "disconnect" only separates the client and server, but the session still runs on the server. By clicking "log off," both the client and server separate and the session is closed. What event,if any is triggered by this "log off?" How can I monitor for the clicking of the "Log off button," so I can close my client app too.
Otherwise, the app runs fine.
Thanks in advance.