Windows Phone Developers

Thursday, September 16, 2010

How to make Windows Form fit FullScreen using VB.NET

We have already seen How to Get Width and Height of Desktop Screen using C#/VB.NET in previous post. The following VB.NET snippet provides a method to make the Windows Form fir the Desktop screen

Dim iWidth As Integer = Screen.PrimaryScreen.Bounds.Width
        Dim iHeight As Integer = Screen.PrimaryScreen.Bounds.Height

        Me.Width = iWidth
        Me.Height = iHeight

        Me.Location = New System.Drawing.Point(0, 0)



You can add this snippet in Form_Load sub Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon

1 comment:

  1. You can add share your interview questions here.

    ReplyDelete