آرام جان گل
چهارشنبه 13 مرداد 1389, 11:04 صبح
سلام
من تمامی صفحاتی را که با دستور window.open() باز می کنم رو نوار ابزار (TaskBar) می افتد
من در Load فرم این کد را می نویسم
کد من :
this.Img_Btn_PaymentRequets_Print.Attributes.Add("onclick", "window.open('PaymentRequetsPrint.aspx','mywindow'" + "," + "'height=" + System.Windows.Forms.Screen.PrimaryScreen.Bounds.H eight * (0.8) + ",width = " + System.Windows.Forms.Screen.PrimaryScreen.Bounds.W idth * (0.8) + ",left=" + System.Windows.Forms.Screen.PrimaryScreen.Bounds.W idth * (0.1) + ",top=" + System.Windows.Forms.Screen.PrimaryScreen.Bounds.H eight * (0.1) + ", scrollbars =yes ')");
ممنون راهنمایی کنید
من تمامی صفحاتی را که با دستور window.open() باز می کنم رو نوار ابزار (TaskBar) می افتد
من در Load فرم این کد را می نویسم
کد من :
this.Img_Btn_PaymentRequets_Print.Attributes.Add("onclick", "window.open('PaymentRequetsPrint.aspx','mywindow'" + "," + "'height=" + System.Windows.Forms.Screen.PrimaryScreen.Bounds.H eight * (0.8) + ",width = " + System.Windows.Forms.Screen.PrimaryScreen.Bounds.W idth * (0.8) + ",left=" + System.Windows.Forms.Screen.PrimaryScreen.Bounds.W idth * (0.1) + ",top=" + System.Windows.Forms.Screen.PrimaryScreen.Bounds.H eight * (0.1) + ", scrollbars =yes ')");
ممنون راهنمایی کنید