Adblock breaks this site

persistence?

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

  1. fury6000

    fury6000 Member

    Joined:
    Jan 21, 2008
    Posts:
    34
    Referrals:
    0
    Sythe Gold:
    0
    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!
     
  2. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    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?
     
  3. fury6000

    fury6000 Member

    Joined:
    Jan 21, 2008
    Posts:
    34
    Referrals:
    0
    Sythe Gold:
    0
    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:
     
  4. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    persistence?

    There is a property called auto redraw (i think)
     
  5. fury6000

    fury6000 Member

    Joined:
    Jan 21, 2008
    Posts:
    34
    Referrals:
    0
    Sythe Gold:
    0
    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.
     
  6. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    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 >


 
 
Adblock breaks this site