need help about picture box
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

Thread: need help about picture box

  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
    Share on Google+

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

    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
    Share on Google+

  3. #3
    Join Date
    Mar 2009
    Posts
    118

    Re: need help about picture box

    plz help in appropriate way ...
    Share on Google+

  4. #4
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    15,002

    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!
    Share on Google+

  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
    Share on Google+

  6. #6
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,860

    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.
    Share on Google+

  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
    Share on Google+

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

    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.
    Share on Google+

  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 ...
    Share on Google+

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

    Re: need help about picture box

    Well, have you even attempted something yet ¿
    Share on Google+

  11. #11
    Join Date
    Mar 2009
    Posts
    118

    Re: need help about picture box

    not yet, please give me start
    Share on Google+

  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.
    Share on Google+

  13. #13
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    15,002

    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!
    Share on Google+

  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 01:18 AM.
    Share on Google+

  15. #15
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    15,002

    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!
    Share on Google+

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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center