Click here to Skip to main content
15,794,850 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I have a well running rdp client in 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.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900