CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 29
  1. #1
    Join Date
    Mar 2009
    Posts
    118

    need help about picture box

    i need help about a picture box , i want a code which can zoom in and zoom out the image in picture box by mouse .. plz help

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: need help about picture box

    Do a search here on CG in this forum for Zoom pictures - you'll find a number of great threads by GremlinSA, DanH just to name a couple of graphics gurus here

  3. #3
    Join Date
    Mar 2009
    Posts
    118

    Re: need help about picture box

    plz help in appropriate way ...

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: need help about picture box

    He just did, didn't he? Refresh the page...
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    Join Date
    Mar 2009
    Posts
    118

    Re: need help about picture box

    Quote Originally Posted by dglienna View Post
    He just did, didn't he? Refresh the page...

    i did'nt understand

  6. #6
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: need help about picture box

    Quote Originally Posted by mahii View Post
    i did'nt understand
    He told you what to search for and that there were some good posts here on the subject already. I would suggest that you follow the suggestion and search the forum, no need to someone explaining it all over if it has already been posted.

  7. #7
    Join Date
    Mar 2009
    Posts
    118

    Re: need help about picture box

    this means everything has been left on searching ......... no one knowsthe code

    i searched the forum , but i want in VB6 that also in pictureBox

  8. #8
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: need help about picture box

    Quote Originally Posted by mahii View Post
    this means everything has been left on searching ......... no one knowsthe code
    No. This means that you don't want to search, and prefer to be spoonfed. Sooner or later in your career, you will realise that you actually have to do these things yourself. If you don't want to learn, that is your problem.
    Never say no to learn new things, never be scared to learn new things. Look into the future, see yourself 5 years from now, do you still want to be spoonfed, don't you want to be at a level where you can conquer almost any problem you face ¿¿¿

    I did a search for zoom in this VB 6 forum, and found these - there were a total of 125 threads amazing!!!! :

    http://www.codeguru.com/forum/showth...highlight=zoom

    http://www.codeguru.com/forum/showth...highlight=zoom

    http://www.codeguru.com/forum/showth...highlight=zoom

    http://www.codeguru.com/forum/showth...highlight=zoom

    Now, if it is not too much trouble for you, I humply ask you to have a look at those threads, study them carefully and learn from them. Start with a project, and attempt the codes in there, examine the attachments in those threads.

  9. #9
    Join Date
    Mar 2009
    Posts
    118

    Re: need help about picture box

    Quote Originally Posted by HanneSThEGreaT View Post
    No. This means that you don't want to search, and prefer to be spoonfed. Sooner or later in your career, you will realise that you actually have to do these things yourself. If you don't want to learn, that is your problem.
    Never say no to learn new things, never be scared to learn new things. Look into the future, see yourself 5 years from now, do you still want to be spoonfed, don't you want to be at a level where you can conquer almost any problem you face ¿¿¿

    I did a search for zoom in this VB 6 forum, and found these - there were a total of 125 threads amazing!!!! :

    http://www.codeguru.com/forum/showth...highlight=zoom

    http://www.codeguru.com/forum/showth...highlight=zoom

    http://www.codeguru.com/forum/showth...highlight=zoom

    http://www.codeguru.com/forum/showth...highlight=zoom

    Now, if it is not too much trouble for you, I humply ask you to have a look at those threads, study them carefully and learn from them. Start with a project, and attempt the codes in there, examine the attachments in those threads.

    really great posts ... really amazing ... but my problem is different ... i want when any image will be shown in a pictureBox ... if its size exceeds the size of a picture box . there should be horizantal as well as vertical scrollers with zoom in and zoomout functinality by mouse scroller button but not with commond button ...

  10. #10
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: need help about picture box

    Well, have you even attempted something yet ¿

  11. #11
    Join Date
    Mar 2009
    Posts
    118

    Re: need help about picture box

    not yet, please give me start

  12. #12
    Join Date
    Apr 2006
    Location
    Kolkata, India
    Posts
    278

    Re: need help about picture box

    Mahii,

    The POP of all great codes has helped you by sparing his precious time.
    You have to start with mouse events + experimenting with Picture box ,Controls etc.
    I think by reading your posts you want someone to write the entire code for you.
    We only help them who helps themselves.
    Other wise Hannesthegreat is right.
    Try out something yourself, then come back with what you have created.

  13. #13
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: need help about picture box

    Try the solution from a few of those sample solutions, and they try it on your own. A more logical question would have been:

    I load a picture into the pb but it doesn't fit because it's too big. How can I change:
    Code:
    ' THIS in code blocks
    into something that can help me?

    Then we can help you...
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  14. #14
    Join Date
    Apr 2006
    Location
    Kolkata, India
    Posts
    278

    Red face Re: need help about picture box

    /[code]
    Put a picture in PB then use a slider control set its parameters then move the slider check whats happening
    divide the x axis & y axis by n

    something like:
    x=640 ' where x is the height
    y=480 ' where y is the width
    then divide this by 2 which comes to 320x140 thus the picture is zoomed without distorting.
    hope this helps.
    [code]
    Last edited by dsrahul; May 15th, 2009 at 12:18 AM.

  15. #15
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: need help about picture box

    Use code tags, or don't post at all, please. You'll confuse him further
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured