Click here to Skip to main content
15,896,606 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
QuestionAdding Intellisense/AutoComplete/Error Marking to Application? Pin
Saul Johnson7-Jul-08 8:22
Saul Johnson7-Jul-08 8:22 
AnswerRe: Adding Intellisense/AutoComplete/Error Marking to Application? Pin
jzonthemtn7-Jul-08 10:09
jzonthemtn7-Jul-08 10:09 
GeneralRe: Adding Intellisense/AutoComplete/Error Marking to Application? Pin
Saul Johnson7-Jul-08 20:21
Saul Johnson7-Jul-08 20:21 
GeneralRe: Adding Intellisense/AutoComplete/Error Marking to Application? Pin
jzonthemtn8-Jul-08 12:02
jzonthemtn8-Jul-08 12:02 
GeneralRe: Adding Intellisense/AutoComplete/Error Marking to Application? Pin
Saul Johnson8-Jul-08 19:56
Saul Johnson8-Jul-08 19:56 
QuestionMultiple interfaces in a type definition Pin
supercat97-Jul-08 6:32
supercat97-Jul-08 6:32 
AnswerRe: Multiple interfaces in a type definition Pin
Christian Graus7-Jul-08 8:20
protectorChristian Graus7-Jul-08 8:20 
GeneralRe: Multiple interfaces in a type definition Pin
supercat97-Jul-08 17:48
supercat97-Jul-08 17:48 
GeneralRe: Multiple interfaces in a type definition Pin
Daniel Grunwald7-Jul-08 23:57
Daniel Grunwald7-Jul-08 23:57 
GeneralRe: Multiple interfaces in a type definition Pin
supercat98-Jul-08 5:28
supercat98-Jul-08 5:28 
QuestionMP3 file over phone Pin
Jason_martin877-Jul-08 5:56
Jason_martin877-Jul-08 5:56 
QuestionNot able to Debug application. Pin
Binod K7-Jul-08 4:00
Binod K7-Jul-08 4:00 

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.