Question Form buttons Vb.NET menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Spot_1337's Avatar Active Member
    Reputation
    16
    Join Date
    Feb 2007
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Form buttons Vb.NET

    Hello,
    I'm making a little program and wonder how do i add buttons to the form (beside the minimize,maximize,exit buttons) in visual basic 2008 express edition .


    or if its possible to bind ctrl+h to hide form and ctrl+s to show it.

    Thank you!
    Last edited by Spot_1337; 10-04-2008 at 08:52 AM.

    Question Form buttons Vb.NET
  2. #2
    EmiloZ's Avatar Flying Piggy Back
    CoreCoins Purchaser
    Reputation
    538
    Join Date
    Jun 2007
    Posts
    1,393
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think you can add a button to the form , but for the CTRL+H add me on msn : [email protected]
    Why fill up a signature?

  3. #3
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use minimise, and create a sub to handle Me.Minimise that hides it to the tray.

  4. #4
    EmiloZ's Avatar Flying Piggy Back
    CoreCoins Purchaser
    Reputation
    538
    Join Date
    Jun 2007
    Posts
    1,393
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ReidE96 View Post
    Use minimise, and create a sub to handle Me.Minimise that hides it to the tray.
    He does mean add a new button to the bar q; '
    Why fill up a signature?

  5. #5
    Spot_1337's Avatar Active Member
    Reputation
    16
    Join Date
    Feb 2007
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Added you on msn EmiloZ

  6. #6
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, most of the time folk just create the bar on the form itself and hide the standard one for doing that sort of stuff. Or they fiddle with the XML.

  7. #7
    Spot_1337's Avatar Active Member
    Reputation
    16
    Join Date
    Feb 2007
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if i create my own bar how do i make it movable so the whole app moves?

  8. #8
    maclone's Avatar / Authenticator enabled
    Reputation
    2420
    Join Date
    Nov 2007
    Posts
    8,726
    Thanks G/R
    0/1029
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You need a Picture box named PictureBox1 for this.

    Code:
    'Picture Box Form Move
    
        Private _move As Boolean = False
        Dim differencePoint As New Point
    
        Private Sub PictureBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown
            _move = True
            differencePoint = e.Location
        End Sub
    
        Private Sub PictureBox1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove
            If _move Then
                Dim newX As Int32 = (Me.Location.X - differencePoint.X) + (e.X)
                Dim newY As Int32 = (Me.Location.Y - differencePoint.Y) + (e.Y)
                Me.Location = New Point(newX, newY)
            End If
        End Sub
    
        Private Sub PictureBox1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseUp
            _move = False
        End Sub
    Zomfg. And no, don't ask. - Dombo did it.

  9. #9
    Spot_1337's Avatar Active Member
    Reputation
    16
    Join Date
    Feb 2007
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yay it worked but now i have another problem
    i cant see the sides / bottom now , know how to fix this?

  10. #10
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not quite sure what you mean by "can't see the sides/bottom". Sides/bottom of what? A screenshot would help.

  11. #11
    Spot_1337's Avatar Active Member
    Reputation
    16
    Join Date
    Feb 2007
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    u know the blue sides /bottom of every windows program xd try to minimize ie explorer and look at the sides

  12. #12
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I always use Firefox, always Maximised, and I have a custom theme :P But I know the blue bits you mean. Check the form is enabled, because disabling it does that as far as I recall.

  13. #13
    Spot_1337's Avatar Active Member
    Reputation
    16
    Join Date
    Feb 2007
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ... i have disable it and then i made my own as you said i should
    Yeah, most of the time folk just create the bar on the form itself and hide the standard one for doing that sort of stuff.

  14. #14
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There we go then. That's where the border's gone. You just need to make your own border too

  15. #15
    Spot_1337's Avatar Active Member
    Reputation
    16
    Join Date
    Feb 2007
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh thank you soo much +rep

Page 1 of 2 12 LastLast

Similar Threads

  1. [Question] Rep button
    By shad8w in forum Community Chat
    Replies: 2
    Last Post: 01-11-2012, 11:53 AM
  2. [html] Question about buttons
    By Ascelyn in forum Programming
    Replies: 8
    Last Post: 04-08-2010, 03:05 AM
  3. Another question about the Battle.net scam and retriving possibilitys
    By Paradiise in forum World of Warcraft General
    Replies: 4
    Last Post: 06-01-2009, 08:27 AM
All times are GMT -5. The time now is 07:37 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search