General VB Question

Discussion in 'Programming General' started by Elkins121, Mar 11, 2008.

General VB Question
  1. Unread #1 - Mar 11, 2008 at 12:33 AM
  2. Elkins121
    Joined:
    Sep 18, 2007
    Posts:
    63
    Referrals:
    0
    Sythe Gold:
    0

    Elkins121 Member

    General VB Question

    How can I, instead of using a sizable window, make it have no border, simply minimize, maximize, and close, as well as a drag-type tool bar. If you don't understand, just ask...Any help appreciated.
     
  3. Unread #2 - Mar 11, 2008 at 3:41 AM
  4. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    General VB Question

    You want to either add a canvas, and draw on to that, or draw on to the form. Add an event handler to detect clicks on the canvas, which in turn allow the user to drag and move the form.

    For the buttons, simply create a picturebox or something, and use their Click() event handlers to manage what they do.

    If theres one thing I hate, its direct giving out of source so people won't learn - I prefer to tell them what to do (which is usually blatantly obvious) and let them sort out the issue.
     
  5. Unread #3 - Mar 11, 2008 at 8:44 AM
  6. Stuart
    Joined:
    May 5, 2005
    Posts:
    1,580
    Referrals:
    2
    Sythe Gold:
    10

    Stuart Guru
    Banned

    General VB Question

    You can remove the border using the formborderstyle property in your forms properties.

    As Swan said for the draggable part of the form you make a picturebox on the top of your form then you can use the Mousemove sub for the picturebox to tell when you want to drag it.
     
< Add html files to a Visual Basic 2008 .exe program? | Visual Basic Screenshot taker help. >

Users viewing this thread
1 guest


 
 
Adblock breaks this site