Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dissable Close Button

Status
Not open for further replies.

dazzer123

IS-IT--Management
Nov 24, 2003
128
GB
I have a VB.Net app that opens up Microsoft Mappoint, what I want to be able to do is force the users to close Mappoint from the .Net app and not the Mappoint one. Is it possible using API to dissable the close button (x) on the Mappoint Window.
 
Hi Dazzer123,

I don't know VB, sorry. But perhaps you can translate the VC to VB yourself.
In VC it is :
Code:
EnableMenuItem ( GetSystemMenu ( hWnd, FALSE),
                 SC_CLOSE,
                 MF_BYCOMMAND | MF_GRAYED  );
(hWnd is the window handle of the window intended).

Marcel
 
Thanks for your help, I think I can translate this, i'll give it a go.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top