persistence?

Discussion in 'Programming General' started by fury6000, Apr 14, 2008.

persistence?
  1. Unread #1 - Apr 14, 2008 at 6:56 PM
  2. fury6000
    Joined:
    Jan 21, 2008
    Posts:
    34
    Referrals:
    0
    Sythe Gold:
    0

    fury6000 Member

    persistence?

    Hey guys out there. I have recently noticed that when i draw text to a picture box in visual basic 2005 express, and then move something else over the text in the picture box, the text somehow gets "erased". I looked this up and im pretty sure it's called persistence. Is there any way I can avoid the text getting "erased"? If there is certain code required to do this, it would be helpful if i can get it. Thanks!
     
  3. Unread #2 - Apr 14, 2008 at 7:09 PM
  4. jdsfighter
    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0

    jdsfighter Forum Addict
    Visual Basic Programmers

    persistence?

    Try posting this in the .Net section, but I'll try to answer. Do you have the picture boxes auto redraw set to true?
     
  5. Unread #3 - Apr 14, 2008 at 7:29 PM
  6. fury6000
    Joined:
    Jan 21, 2008
    Posts:
    34
    Referrals:
    0
    Sythe Gold:
    0

    fury6000 Member

    persistence?

    lol i have to be honest- i feel like an idiot saying this, but im not completely sure how to set the auto redraw property to true or flase, but that's what i have been trying to look up:eek:
     
  7. Unread #4 - Apr 14, 2008 at 7:39 PM
  8. jdsfighter
    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0

    jdsfighter Forum Addict
    Visual Basic Programmers

    persistence?

    There is a property called auto redraw (i think)
     
  9. Unread #5 - Apr 14, 2008 at 7:45 PM
  10. fury6000
    Joined:
    Jan 21, 2008
    Posts:
    34
    Referrals:
    0
    Sythe Gold:
    0

    fury6000 Member

    persistence?

    in the 2005 version? I dont think i saw an auto redraw property there, but i guess thats why u said that u "think" lol.
     
  11. Unread #6 - Apr 14, 2008 at 10:07 PM
  12. jdsfighter
    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0

    jdsfighter Forum Addict
    Visual Basic Programmers

    persistence?

    What about putting the code to draw the text under the picture box's paint sub?

    I don't use .net much so I don't have everything memorized.
     
< [Help] text1 + label1 | Microsoft Agent in vb 2005 >

Users viewing this thread
1 guest


 
 
Adblock breaks this site