Ask Experts Questions for FREE Help !
Ask
    9hththt2's Avatar
    9hththt2 Posts: 59, Reputation: 1
    Junior Member
     
    #1

    Mar 23, 2009, 02:24 PM
    How do I "Reset" a PictureBox?
    I'm compiling something on VB... But I can't figure out how to "reset" a picturebox, after printing on it. :confused:
    Ex:

    Private Sub Text1_Change()
    Dim valor, contador, tb As Integer

    If Val(Text1) <= 0 Then
    (I need to "Reset" my picturebox here)
    End If

    valor = Val(Text1)
    For contador = 1 To 10
    tb = contador * valor
    Picture1.Print valor & " X " & contador & " = " & tb
    Next contador

    End Sub
    Perito's Avatar
    Perito Posts: 3,139, Reputation: 150
    Ultra Member
     
    #2

    Mar 23, 2009, 06:28 PM
    What version of VB?

    Is this a .NET version or VB6 or earlier?
    9hththt2's Avatar
    9hththt2 Posts: 59, Reputation: 1
    Junior Member
     
    #3

    Mar 24, 2009, 12:44 PM

    It's VB 6
    Perito's Avatar
    Perito Posts: 3,139, Reputation: 150
    Ultra Member
     
    #4

    Mar 24, 2009, 12:50 PM
    Try this

    Picture1.Cls
    9hththt2's Avatar
    9hththt2 Posts: 59, Reputation: 1
    Junior Member
     
    #5

    Mar 24, 2009, 01:19 PM
    I have tried:

    Me.Picture1.Picture = Nothing

    and

    Picture1.print = ""

    It doesn't work. :(
    It clears the picturebox.
    But if I print again, the text doesn't appear in the beginning of the picturebox.
    (the text printed appears as if I didn't clear the other)
    9hththt2's Avatar
    9hththt2 Posts: 59, Reputation: 1
    Junior Member
     
    #6

    Mar 24, 2009, 01:20 PM
    Yay! Thank you so much :) It worked :D

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Kenmore Ultra Wash Dishwasher flashing "clean" light needs to be reset [ 110 Answers ]

We paid a Sears repairman to come out when we had a flashing "Clean" light on our dishwasher, A Kenmore Ultra Wash 665.1603 or 1703, and he gave us the diagnostic code (buttons to push on the operating panel) and we have used it again after that, but I cannot find the order of the buttons to push...

Discovery, Animal Planet, "Lost Tapes" series: "Monster of Monterey" (Sharon Novak) [ 28 Answers ]

I watched this premier episode last night: Sharon Novak did a 171 day solo sailing trip and web-cammed it for nothingabout the real story. My opinion of the family of Discovery Channels has dropped several notches. Does anyone know the real story? I'll be the first to apologize if the...

Reset "Service Engine Soon" light [ 4 Answers ]

Just bought a 1998 GMC truck. The "Service Engine Soon" light is illuminated. Is there an easy way to reset it myself rather than take it to a shop? Thanks, dbteeitup

Oscar De La Hoya "Golden Boy" vs Floyd "Money" Mayweather Part 2 [ 1 Answers ]

Who would win between these 2. Oscar De La Hoya "Golden Boy" vs Floyd "Money" Mayweather Part 2 My vote is for Oscar to win this time by unanamous decision.


View more questions Search