顯示具有 鼠標 標籤的文章。 顯示所有文章
顯示具有 鼠標 標籤的文章。 顯示所有文章

2022年12月8日 星期四

[C#]一般事件E EventArgs也能變成其他事件

 EventArgs是一個主要事件的基底基層,所以我們只要將EventArgs強制轉型成MouseEventArgs就好了

參考來源: https://cyfangnotepad.blogspot.com/2012/08/cnet-eventargs.html


private void lkl_ForgetPsw_DoubleClick(object sender, EventArgs e)
{
  MouseEventArgs Mouse = (MouseEventArgs)e;
  if (Mouse.Button == MouseButtons.Left)
  {
     MessageBox.Show("Ok");
   }

}

2019年9月1日 星期日

[C++]隱藏游標 鼠標 光標

::ShowCursor(true);//顯示滑鼠

如果要 不顯示則

::ShowCursor(false);//不顯示滑鼠






測試環境:MFC 2015

[SQL]顯示千分位與小數顯示

  CONVERT ( data_type [ ( length ) ] , expression [ , style ] ) CONVERT style參數說明 1  (expression為 money 或 smallmoney型別): 0 : 預設,保留小數位後兩位,並四捨...