Results 1 to 5 of 5
  1. #1

    Default Setting form boundaries in VB.NET?


    Unsaon pag set so that dili jud mulapas ang form outside sa desktop?

  2. #2

    Default Re: Setting form boundaries in VB.NET?

    First you should get the size of your desktop by using sysinfo.ocx control object.
    Then dynamically adjust your window (.width + .left) to not exceed sysinfo.WorkAreaWidth / Screen.TwipsPerPixelX and
    (.top + .height) <= .WorkAreaHeight / Screen.TwipsPerPixelY

  3. #3

    Default Re: Setting form boundaries in VB.NET?

    Huh?

  4. #4

    Default Re: Setting form boundaries in VB.NET?

    Quote Originally Posted by DeathFox
    Huh?
    hehehe nag libog na noon....to be simple u can trap the dimensions of your form through the resize event of the form just like in vb6 you will have to set its width and height to scale width and scale height on the resize event

  5. #5

    Default Re: Setting form boundaries in VB.NET?

    Use rectangle Clipbounding...

    This object:

    My.Computer.Screen.WorkingArea

    When you resize or move your form, just get its location(X,Y)/Size and compare it with the WorkingArea. If mu sobra na sa WorkingArea or ang size sa form is more than the WorkingArea then disallow moving/resizing your form.

  6.    Advertisement

Similar Threads

 
  1. Help with events in VB.NET
    By DeathFox in forum Programming
    Replies: 5
    Last Post: 12-17-2007, 08:07 PM
  2. how to create dll like shell32 in vb.net
    By kibotizer in forum Programming
    Replies: 7
    Last Post: 12-17-2007, 11:22 AM
  3. Using custom cursors in VB.NET
    By DeathFox in forum Programming
    Replies: 0
    Last Post: 11-25-2007, 09:42 PM
  4. MOVED: Harcoding or Drag'n'Drop in VB.NET
    By vern in forum Software & Games (Old)
    Replies: 0
    Last Post: 11-10-2007, 02:27 PM
  5. Harcoding or Drag'n'Drop in VB.NET
    By DeathFox in forum Programming
    Replies: 2
    Last Post: 11-09-2007, 09:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top