Results 1 to 5 of 5
  1. #1
    CoderNever's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    https://mpgh.net MPGHCash: $700,458,011
    Posts
    1,198
    Reputation
    131
    Thanks
    2,236
    My Mood
    Buzzed

    [Tut][Visual Basic][Snippet][C&P] Resizing a Window to a photosize

    Well I'm sure you all wondered how guza44_44 made his form re-size to the size of the picture. Well I thought I would release my way of doing it.

    1. Add a Timer
    2. Set the Interval to 1
    3. Place the below text in Timer1's Code

    Code:
    Me.Height = PictureBox1.Image.Height + 60
            Me.Width = PictureBox1.Image.Width + 15
    What this does it sets the hieght of the picture the height of the form and vise versa for the width. Its adds 60 to the height do to the form borders and ads 15 for the width.

    PS : guza44_44 guess I am in that 10% lol

    Almost Forgot : Credits to guza44_44 for stealing his idea :P
    Last edited by CoderNever; 11-16-2009 at 11:12 PM.

  2. #2
    guza44_44's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    433
    Reputation
    16
    Thanks
    310
    omg sucha noob, lol jk ya thats pretty much how i did it but the number after the + all depends on how you have your form too cus it changes if u change the style, :3 <3<3<3
    [IMG]https://i304.photobucke*****m/albums/nn168/guza44/sig-1.png[/IMG]

  3. #3
    PixieCorp-Backup's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Location
    Crying in a corner waiting for unban
    Posts
    23
    Reputation
    10
    Thanks
    2
    My Mood
    Sad
    Cool I'ma use this, I got a good idea for something

  4. #4
    Dreamer's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Seattle
    Posts
    8,745
    Reputation
    393
    Thanks
    1,481
    My Mood
    Bitchy
    ty i need this for me screen shot tool
    Resource Team: Feb/5/2012 - May/5/2012
    Middleman: April/25/2012 - September/16/12


  5. #5
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by Coder Never View Post
    Well I'm sure you all wondered how guza44_44 made his form re-size to the size of the picture. Well I thought I would release my way of doing it.

    1. Add a Timer
    2. Set the Interval to 1
    3. Place the below text in Timer1's Code

    Code:
    Me.Height = PictureBox1.Image.Height + 60
            Me.Width = PictureBox1.Image.Width + 15
    What this does it sets the hieght of the picture the height of the form and vise versa for the width. Its adds 60 to the height do to the form borders and ads 15 for the width.

    PS : guza44_44 guess I am in that 10% lol

    Almost Forgot : Credits to guza44_44 for stealing his idea :P
    This is pretty the same

    Gj!
    -Rest in peace leechers-

    Your PM box is 100% full.

Similar Threads

  1. [TUT] Visual Basic - Keylogger
    By tempta43 in forum Visual Basic Programming
    Replies: 17
    Last Post: 04-04-2010, 07:56 PM
  2. [TUT] How to Print Text in Visual Basic
    By Mr. Jingles in forum Visual Basic Programming
    Replies: 0
    Last Post: 09-08-2009, 08:23 PM
  3. [Tut] Visual Basic Assorted Tutorials
    By drgnforce9 in forum Visual Basic Programming
    Replies: 3
    Last Post: 09-07-2009, 10:25 AM
  4. Replies: 3
    Last Post: 01-28-2009, 09:16 AM
  5. problem with the visual basic tut
    By Elliwood in forum WarRock - International Hacks
    Replies: 5
    Last Post: 05-30-2007, 12:45 AM

Tags for this Thread