IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   C# (https://www.ircforumlari.net/c/)
-   -   Kapat butonunu pasifleştirmek (https://www.ircforumlari.net/c/124405-kapat-butonunu-pasiflestirmek.html)

Cemalizim 19 Temmuz 2008 16:01

Kapat butonunu pasifleştirmek
 
Uygulamanızın menu çubuğunda bulunan (X) kapat butonunu pasifleştirmek

PHP- Kodu:

private const int SC_CLOSE 0xF060;
          private const 
int MF_GRAYED 0x1;
 
          [
DllImport("user32.dll")]
          private static 
extern IntPtr GetSystemMenu(IntPtr hWndbool bRevert);
 
          [
DllImport("user32.dll")]
          private static 
extern int EnableMenuItem(IntPtr hMenuint wIDEnableItemint wEnable);
 
          private 
void Form1_Load(object senderSystem.EventArgs e)
          {
               
EnableMenuItem(GetSystemMenu(this.Handlefalse), SC_CLOSEMF_GRAYED);
          } 

Alıntıdır


Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 04:43.

Powered by vBulletin® Version 3.8.8 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2024 IRCForumlari.Net