Advertisement
2_2002-2004 Custom Controls/ Forms/ Menus #120637

TaskBar Height

The purpose of the code is to determine the height of the taskbar so that you can display a form at the bottom right hand corner of the screen everytime.

AI

ملخص الذكاء الاصطناعي: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

كود المصدر
original-source
' this code will display a form at the bottom right had corner everytime.
   dim WindowRect as RECT
   SystemParametersInfo SPI_GETWORKAREA, 0, WindowRect, 0
  
   FrmMain.Top = WindowRect.Bottom * Screen.TwipsPerPixelY - FrmMain.Height
   FrmMain.Left = WindowRect.Right * Screen.TwipsPerPixelX - FrmMain.Width
التعليقات الأصلية (3)
مسترجع من Wayback Machine