Results 1 to 8 of 8
  1. #1
    hopefordope's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Herndon,VA
    Posts
    264
    Reputation
    9
    Thanks
    86
    My Mood
    Psychedelic

    Arrow help with resizing form?

    hello i am making a web browser and i am givving a button this function
    Code:
    FormBorderStyle = Windows.Forms.FormBorderStyle.None
            WindowState = FormWindowState.Maximized
    which will work as full screen mode

    how do i make it so if i click the button again it restore it to its normal size
    Code:
    FormBorderStyle = Windows.Forms.FormBorderStyle.Sizable
            WindowState = FormWindowState.Normal


    also

    does any one know how to hide the taskbar along with the taskbar????
    Last edited by hopefordope; 06-03-2010 at 11:21 AM.

    Press Thank You[IMG]https://i45.tinypic.com/2hg8w0n.jpghttps://img1.UploadScreensho*****m/images/main/2/3203234450.jpg[/IMG]










    My Releases
    Injector 3G
    Injector 2G
    Injector 1G
    Super Spammer
    CA Cleaner
    My Tutorials
    How to Make a real Injector(PerX)
    How to Make a Calculator(leeched)

  2. #2
    Shark23's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Kansas
    Posts
    424
    Reputation
    10
    Thanks
    55
    My Mood
    Cool
    Assign a boolean variable maximized. If maximized is true and the button gets pressed, restore to normal size. If not and the button is pressed, maximize the form.

    "does any one know how to hide the taskbar along with the taskbar????"
    What?
    Assembly Programmer

  3. #3
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    You need to toggle the window state by using the IF statement. Here's how you can do it:

    Code:
    If Me.WindowState = FormWindowState.Maximized Then
                Me.WindowState = FormWindowState.Normal
            Else
                Me.WindowState = FormWindowState.Maximized
            End If
    For hiding your program from the taskbar, use the following command:

    Code:
    Me.ShowInTaskbar = False
    Where me is your current form. You can change it with whatever Form you like. To show the form in the taskbar, simply set the value to True.

    Hope this helps

  4. #4
    hopefordope's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Herndon,VA
    Posts
    264
    Reputation
    9
    Thanks
    86
    My Mood
    Psychedelic
    thanks you flame the first part worked flawlessly but for the second one i meant to say that how do i hide the taskbar not my icon in the taskbar but the taskbar itself

    Press Thank You[IMG]https://i45.tinypic.com/2hg8w0n.jpghttps://img1.UploadScreensho*****m/images/main/2/3203234450.jpg[/IMG]










    My Releases
    Injector 3G
    Injector 2G
    Injector 1G
    Super Spammer
    CA Cleaner
    My Tutorials
    How to Make a real Injector(PerX)
    How to Make a Calculator(leeched)

  5. #5
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    So you mean literally remove the taskbar?

  6. #6
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Quote Originally Posted by hopefordope View Post
    thanks you flame the first part worked flawlessly but for the second one i meant to say that how do i hide the taskbar not my icon in the taskbar but the taskbar itself
    change form border style to "none"
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  7. #7
    hopefordope's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Herndon,VA
    Posts
    264
    Reputation
    9
    Thanks
    86
    My Mood
    Psychedelic
    yeah but it temporarily hides and it can be restored

    Press Thank You[IMG]https://i45.tinypic.com/2hg8w0n.jpghttps://img1.UploadScreensho*****m/images/main/2/3203234450.jpg[/IMG]










    My Releases
    Injector 3G
    Injector 2G
    Injector 1G
    Super Spammer
    CA Cleaner
    My Tutorials
    How to Make a real Injector(PerX)
    How to Make a Calculator(leeched)

  8. #8
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Quote Originally Posted by hopefordope View Post
    thanks you flame the first part worked flawlessly but for the second one i meant to say that how do i hide the taskbar not my icon in the taskbar but the taskbar itself
    Hmm.. I once did a side bar application in which I hide the task bar. Following is the code for the hiding, but unfortunately it works on XP and Vista only. Right now I've 7 installed so, I can't check it. Anyways, here's the MSDN standard API calls to hide and show the task bar:

    ■ First add these declarations:


    Private Declare Function SetWindowPos Lib "user32"( ByVal hwnd As Long , ByVal hWndInsertAfter As Long , ByVal x As Long , ByVal y As Long , ByVal cx As Long , ByVal cy As Long , ByVal wFlags As Long ) As Long
    Private Declare Function FindWindow Lib "user32" Alias "FindWindowA"( ByVal lpClassName As String , ByVal lpWindowName As String ) As Long
    Const SWPHIDEWINDOW = & H80
    Const SWPSHOWWINDOW = & H40
    Dim TaskBarHwnd As Long

    Then on Form's Load event, add the following line:

    TaskBarHwnd = FindWindow( "Shell_traywnd", "")

    Then add the following sub-procedures that call show and hide the task bar:

    Sub HideTaskbar()
    Call SetWindowPos(TaskBarHwnd,0 & ,0 & ,0 & ,0 & ,0 & ,SWPHIDEWINDOW)
    End Sub

    Sub ShowTaskbar()
    Call SetWindowPos(TaskBarHwnd,0 & ,0 & ,0 & ,0 & ,0 & ,SWPSHOWWINDOW)
    End Sub

    Finally, call these subs as required !!!

    Hope this helps !!

Similar Threads

  1. [Help Request] Need help with numpad while recording macro !
    By JonathanTBM in forum Vindictus Help
    Replies: 2
    Last Post: 05-10-2011, 07:37 PM
  2. [Help Request] help with ca hacks
    By moises8 in forum Combat Arms Help
    Replies: 4
    Last Post: 05-10-2011, 05:55 PM
  3. [Help Request] Anyone can help with this ?
    By devileyebg in forum Vindictus Help
    Replies: 1
    Last Post: 05-01-2011, 03:57 PM
  4. [Help Request] need help with mod
    By .:MUS1CFR34K:. in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 4
    Last Post: 05-01-2011, 12:40 PM
  5. [Help Request] need help with modding
    By BayBee Alyn in forum Combat Arms Help
    Replies: 0
    Last Post: 04-27-2011, 09:06 PM