请教一下,在C#中开发 B/S 模式窗体,怎样实现全屏效果,就是 窗体的地址栏,状态栏,标题栏不能有。

解决方案 »

  1.   

    window.open(url,'winname',fullscreen)
    试看...
      

  2.   

    是不是要这种效果<SCRIPT LANGUAGE="javascript">   
    window.open ('http://www.baidu.com','newwindow','fullscreen=1,toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')   
    </SCRIPT>  
      

  3.   

    这个应该是没有地址栏,标题栏,看你浏览器了function MachakFull(url){
       var x = screen.availWidth;
       var y = screen.availHeight;
       window.open(url, 'makeful', 'fullscreen=yes,channelmode=yes,titlebar=no,toolbar=no,scrollbars=auto,resizable=no,status=no,copyhistory=no,location=no,menubar=no,width='+x+',height='+y);
    }
    fullscreen 在xp sp2下已经是被屏蔽了具体可看:
    Users of Internet Explorer got sick of Web sites opening a window
    fullscreen and "stealing" their desktop. In a lot of cases, people had no
    idea how to rid themselves of the fullscreen page. Many Windows users do
    not know about Alt+Tab and even those that do found themselves in a
    situation where they could Alt+Tab away from the fullscreen IE window,
    but when they returned to Internet Explorer, they found it occupying
    their entire desktop again.Of course, the simple solution to the problem is to bring the fullscreen
    IE window into focus and hit Alt+F4 to close it - assuming the site
    author hasn't written client-side JavaScript to intercept Alt+F4, which
    I've also seen - however, the sequence of commands to close the
    fullscreen window can be considered pretty complicated for a lot of
    computer users, and I've seen people hit the reset button when presented
    with a fullscreen IE window they could not figure out how to close.To remove some user anxiety and make the Web a less hostile place,
    Microsoft has wisely chosen to now display a title and status bar on
    every newly opened window by default - the status bar (and perhaps the
    titlebar) can be removed by the end-user if they so wish, but the Web
    site author has no control over those settings.Even if you have no malicious intent, the potential for mis-use remains,
    and as a result, the functionality has been removed.

      

  4.   

    window.showModalDialog(url, arg, 'status:no;dialogWidth:'+screen.availWidth+';dialogHeight:'+screen.availHeight);
      

  5.   

    两行搞定this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
    this.WindowState = FormWindowState.Maximized;
      

  6.   

    js 
    是不行的f11 才行。