Click here to Skip to main content
16,010,334 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionWebbrowser control and temporary internet files Pin
Timen8-Jul-08 4:56
Timen8-Jul-08 4:56 
AnswerRe: Webbrowser control and temporary internet files Pin
Dave Kreskowiak8-Jul-08 17:02
mveDave Kreskowiak8-Jul-08 17:02 
Questionhelp Pin
iain65948-Jul-08 4:30
iain65948-Jul-08 4:30 
AnswerRe: help Pin
Christian Graus8-Jul-08 4:32
protectorChristian Graus8-Jul-08 4:32 
GeneralRe: help Pin
iain65948-Jul-08 5:31
iain65948-Jul-08 5:31 
GeneralRe: help Pin
Christian Graus8-Jul-08 5:49
protectorChristian Graus8-Jul-08 5:49 
GeneralRe: help Pin
Paul Conrad9-Jul-08 12:27
professionalPaul Conrad9-Jul-08 12:27 
AnswerRe: help Pin
Paul Conrad9-Jul-08 12:25
professionalPaul Conrad9-Jul-08 12:25 
Questioncan visual basic 6.0 freeze applications from running? Pin
Member 43705378-Jul-08 2:46
Member 43705378-Jul-08 2:46 
AnswerRe: can visual basic 6.0 freeze applications from running? Pin
Christian Graus8-Jul-08 4:33
protectorChristian Graus8-Jul-08 4:33 
AnswerRe: can visual basic 6.0 freeze applications from running? Pin
Dave Kreskowiak8-Jul-08 9:30
mveDave Kreskowiak8-Jul-08 9:30 
AnswerRe: can visual basic 6.0 freeze applications from running? Pin
Paul Conrad9-Jul-08 12:27
professionalPaul Conrad9-Jul-08 12:27 
Questionone of the dll does not work from new windows user account. Pin
coolsatty8-Jul-08 2:27
coolsatty8-Jul-08 2:27 
AnswerRe: one of the dll does not work from new windows user account. Pin
Ashfield8-Jul-08 3:45
Ashfield8-Jul-08 3:45 
Questiondeployment issue [modified] Pin
rohit tiwary8-Jul-08 1:21
rohit tiwary8-Jul-08 1:21 
QuestionDecrease SAP Logon Timeout Pin
Ahmet GULBAY8-Jul-08 0:54
Ahmet GULBAY8-Jul-08 0:54 
AnswerRe: Decrease SAP Logon Timeout Pin
Johan Hakkesteegt9-Jul-08 3:07
Johan Hakkesteegt9-Jul-08 3:07 
QuestionPaint Event Pin
stepdeb8-Jul-08 0:31
stepdeb8-Jul-08 0:31 
AnswerRe: Paint Event Pin
gilchinger8-Jul-08 1:10
gilchinger8-Jul-08 1:10 
AnswerRe: Paint Event Pin
Ajay.k_Singh8-Jul-08 1:39
Ajay.k_Singh8-Jul-08 1:39 
You may use a Boolean variable and set its value on button click, in paint event of panel keep the same code however just check for value of this Boolean variable before drawing the rectangle.

Such as –
----------------------------
Private Sub Panel1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint

If flag=True then

Dim g As Graphics = e.Graphics
Dim rect As New Rectangle(50, 30, 100, 100)
Dim lBrush As New LinearGradientBrush(rect, Color.Red, Color.Yellow, LinearGradientMode.BackwardDiagonal)
g.FillRectangle(lBrush, rect)

End If


End Sub
-------------------------

In case if you are going to draw more than just one rectangle in that panel, you may use an array of rectangle to draw multiple items on panel.

-Dave.

------------------------------------
http://www.componentone.com
------------------------------------

QuestionCRC Calculation [modified] Pin
MatthysDT7-Jul-08 23:13
MatthysDT7-Jul-08 23:13 
AnswerRe: CRC Calculation Pin
Chinners8-Jul-08 4:30
Chinners8-Jul-08 4:30 
GeneralRe: CRC Calculation Pin
MatthysDT10-Jul-08 5:18
MatthysDT10-Jul-08 5:18 
GeneralRe: CRC Calculation Pin
MatthysDT14-Jul-08 1:35
MatthysDT14-Jul-08 1:35 
QuestionTreeView Problem - Dot Net Pin
Dot Net Jantu7-Jul-08 20:10
Dot Net Jantu7-Jul-08 20:10 

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.