Click here to Skip to main content
16,004,944 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: control Dev Pin
Mekong River30-Apr-05 6:33
Mekong River30-Apr-05 6:33 
GeneralVB.NET Solution Statistics - Tips Pin
GuruPandian30-Apr-05 2:59
GuruPandian30-Apr-05 2:59 
GeneralRe: VB.NET Solution Statistics - Tips Pin
Dave Kreskowiak30-Apr-05 3:31
mveDave Kreskowiak30-Apr-05 3:31 
QuestionHow to clear picturebox in vb.net Pin
meghadwivedi30-Apr-05 0:32
meghadwivedi30-Apr-05 0:32 
AnswerRe: How to clear picturebox in vb.net Pin
GuruPandian30-Apr-05 3:18
GuruPandian30-Apr-05 3:18 
AnswerRe: How to clear picturebox in vb.net Pin
Dave Kreskowiak30-Apr-05 3:26
mveDave Kreskowiak30-Apr-05 3:26 
GeneralRe: How to clear picturebox in vb.net Pin
GuruPandian30-Apr-05 3:31
GuruPandian30-Apr-05 3:31 
GeneralRe: How to clear picturebox in vb.net Pin
Dave Kreskowiak30-Apr-05 4:14
mveDave Kreskowiak30-Apr-05 4:14 
I have and your method doesn't work to clear the PictureBox.
Private Sub DrawPoints()
    '  Your method
    PictureBox1.BackgroundImage = Nothing
    Dim g As Graphics = PictureBox1.CreateGraphics()
    '  My method
    'g.Clear(PictureBox1.BackColor)
    g.DrawLine(Pens.Gray, CInt(PictureBox1.Width / 2), 0, CInt(PictureBox1.Width / 2), CInt(PictureBox1.Height))
    g.DrawCurve(Pens.Red, Points)
    g.Dispose()
End Sub

Using your method, the picture box is never cleared before the curves are redrawn. Using my method, it's cleared every time.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

QuestionHow can we customize the crystal report design at run time? Pin
Madni Abbasi29-Apr-05 23:35
Madni Abbasi29-Apr-05 23:35 
Generalif Pin
Yulianto.29-Apr-05 17:46
Yulianto.29-Apr-05 17:46 
GeneralRe: if Pin
Fernando Soto29-Apr-05 19:06
Fernando Soto29-Apr-05 19:06 
GeneralGetSchemeTable problem - IsKeyColumn Pin
Len Miller29-Apr-05 16:06
Len Miller29-Apr-05 16:06 
GeneralRe: GetSchemeTable problem - IsKeyColumn Pin
Len Miller29-Apr-05 16:36
Len Miller29-Apr-05 16:36 
General0xFFFFB0FF Pin
John Shaw29-Apr-05 11:03
John Shaw29-Apr-05 11:03 
GeneralRe: 0xFFFFB0FF Pin
Scott Page24-May-05 4:07
professionalScott Page24-May-05 4:07 
GeneralShutdown in VB.NET Pin
Snaker29-Apr-05 10:34
Snaker29-Apr-05 10:34 
GeneralRe: Shutdown in VB.NET Pin
Fernando Soto29-Apr-05 12:43
Fernando Soto29-Apr-05 12:43 
GeneralRe: Shutdown in VB.NET Pin
vertig073029-Apr-05 16:11
vertig073029-Apr-05 16:11 
Generalparsing a multi-line text box Pin
zasskarMtnBiker29-Apr-05 8:49
zasskarMtnBiker29-Apr-05 8:49 
GeneralRe: parsing a multi-line text box Pin
zasskarMtnBiker29-Apr-05 9:26
zasskarMtnBiker29-Apr-05 9:26 
General.net framework Pin
Lisana29-Apr-05 8:44
Lisana29-Apr-05 8:44 
GeneralRe: .net framework Pin
Fernando Soto29-Apr-05 9:36
Fernando Soto29-Apr-05 9:36 
GeneralTransparent Form Pin
Joey Picerno29-Apr-05 8:27
Joey Picerno29-Apr-05 8:27 
GeneralRe: Transparent Form Pin
Suman Singh5-May-05 3:57
professionalSuman Singh5-May-05 3:57 
GeneralRe: Transparent Form Pin
Joey Picerno5-May-05 6:37
Joey Picerno5-May-05 6:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.