C#經驗點滴

//回車換行:

  private void Form1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
  {
   if (e.KeyChar==(char)13)
   {
    SendKeys.Send("{TAB}");
   }
  }

//獲得用戶屏幕分辨率

Win  Form:   
System.Windows.Forms.Screen.PrimaryScreen.Bounds  就可以。  
返回的是一個Rectangle對象。  
 
Web:  
<script  language="JavaScript">  
           alert(screen.width  +  "*"  +  screen.height);  
</script>  

發佈了29 篇原創文章 · 獲贊 0 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章