Simulare l’evento Validating

A volte può capitare (almeno a me) di utilizzare l’evento Validanting per delle decodifiche (xes IDCliente – RagioneSociale) appare chiaro che in situazioni come questa sarebbe utile avere una funzione PerformValidating, che invochi l’elaborazione contenuta nell’evento e ci dica se la validazione è riuscita o meno, da utilizzare quando modifichiamo il record per evitare la … Leggi tutto

Tutto quello che avreste voluto sapere sull’Owner-Drawing

http://msdn.microsoft.com/msdnmag/issues/04/02/CuttingEdge/default.aspx In questo articolo Dino Esposito tratta in maniera approfondita i seguenti argomenti: – Customizing Menu Rendering – Overriding the Menu of a Form – The MeasureItem Event – The DrawItem Event – Painting the Menu Item – Context Menu and TextBoxes – Using Graphical Menus Seamlessly e risponde implicitamente ad un mio dubbio circa … Leggi tutto

La classe System.Windows.Forms.SystemInformation

Esplorando il Namespace System.Windows.Forms mi sono imbattuto nella classe System.Windows.Forms.SystemInformation che consente di ricavare tramite le sue proprietà Shared moltissime informazioni legate all’interfaccia utente e al sistema. Ecco alcuni esempi:         System.Windows.Forms.SystemInformation.BootMode         System.Windows.Forms.SystemInformation.MouseButtons         System.Windows.Forms.SystemInformation.MousePresent         System.Windows.Forms.SystemInformation.MouseWheelPresent         System.Windows.Forms.SystemInformation.Network         System.Windows.Forms.SystemInformation.MonitorCount         System.Windows.Forms.SystemInformation.PrimaryMonitorSize         System.Windows.Forms.SystemInformation.BorderSize         System.Windows.Forms.SystemInformation.CaptionHeight         System.Windows.Forms.SystemInformation.HorizontalScrollBarHeight         System.Windows.Forms.SystemInformation.VerticalScrollBarWidth