Click here to Skip to main content
15,893,622 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: Creating Add-ons for Firefox Pin
hidayatalishah25-Aug-08 1:41
hidayatalishah25-Aug-08 1:41 
GeneralRe: Creating Add-ons for Firefox Pin
hidayatalishah25-Aug-08 1:42
hidayatalishah25-Aug-08 1:42 
AnswerRe: Creating Add-ons for Firefox Pin
Robert.C.Cartaino25-Aug-08 6:26
Robert.C.Cartaino25-Aug-08 6:26 
AnswerRe: Creating Add-ons for Firefox Pin
Ashfield26-Aug-08 5:16
Ashfield26-Aug-08 5:16 
QuestionGDI Drawings and Erase Pin
afridy24-Aug-08 18:49
afridy24-Aug-08 18:49 
AnswerRe: GDI Drawings and Erase Pin
John Ad24-Aug-08 19:44
John Ad24-Aug-08 19:44 
GeneralRe: GDI Drawings and Erase Pin
afridy24-Aug-08 20:19
afridy24-Aug-08 20:19 
GeneralRe: GDI Drawings and Erase [modified] Pin
afridy25-Aug-08 3:56
afridy25-Aug-08 3:56 
Hai friends,

i wonder y this piece of code does not erase my rectangle drawn over the display dc. really annoying this stuffs, not works like specified when code :x)

ok friends, i have drawn a rectangle on the display dc as specified in the first post, assume drawn over the system tray area. so now i use the below code to erase it. the code is perfect. but winodws does not react to it Cry | :((

this was the successfull drawing part

[code]
hDisplay = CreateDCAsNull("DISPLAY", ByVal 0&, ByVal 0&, ByVal 0&)
hRgn = CreateRectRgn(rt.Left, rt.Top, rt.Right, rt.Bottom)
hBrush = CreateSolidBrush(vbRed)
FrameRgn hDisplay, hRgn, hBrush, 3, 3

Sleep 1000

[/code]
so now the rectangle is drawn and perfect. now i am erasing...

hDesktop = GetDesktopWindow
lngresult = InvalidateRgn(hDesktop, hRgn, False)

* i though the above piece of code would be enough. since not working, i added the follwoing also.

RedrawWindow hDesktop, 0&, hRgn, RDW_INVALIDATE Or RDW_UPDATENOW

Not working friends.

Gus pls help Frown | :(

modified on Monday, August 25, 2008 10:36 AM

QuestionHide control inherited from a base form in a specific derived form, this at design-time ! Pin
sixadOne22-Aug-08 13:53
sixadOne22-Aug-08 13:53 
AnswerRe: Hide control inherited from a base form in a specific derived form, this at design-time ! Pin
rtklueh23-Aug-08 4:16
rtklueh23-Aug-08 4:16 
GeneralRe: Hide control inherited from a base form in a specific derived form, this at design-time ! Pin
sixadOne23-Aug-08 4:56
sixadOne23-Aug-08 4:56 
GeneralRe: Hide control inherited from a base form in a specific derived form, this at design-time ! Pin
Frank Horn23-Aug-08 9:19
Frank Horn23-Aug-08 9:19 
GeneralRe: Hide control inherited from a base form in a specific derived form, this at design-time ! Pin
sixadOne24-Aug-08 5:31
sixadOne24-Aug-08 5:31 
QuestionDataSet HasChanges doesn't pick up changes made by bound TextBoxes Pin
rtklueh22-Aug-08 11:13
rtklueh22-Aug-08 11:13 
AnswerRe: DataSet HasChanges doesn't pick up changes made by bound TextBoxes Pin
Mycroft Holmes22-Aug-08 20:11
professionalMycroft Holmes22-Aug-08 20:11 
GeneralRe: DataSet HasChanges doesn't pick up changes made by bound TextBoxes Pin
rtklueh23-Aug-08 3:59
rtklueh23-Aug-08 3:59 
GeneralRe: DataSet HasChanges doesn't pick up changes made by bound TextBoxes Pin
sixadOne23-Aug-08 5:28
sixadOne23-Aug-08 5:28 
GeneralRe: DataSet HasChanges doesn't pick up changes made by bound TextBoxes Pin
Mycroft Holmes23-Aug-08 13:52
professionalMycroft Holmes23-Aug-08 13:52 
GeneralRe: DataSet HasChanges doesn't pick up changes made by bound TextBoxes Pin
rtklueh23-Aug-08 15:20
rtklueh23-Aug-08 15:20 
GeneralRe: DataSet HasChanges doesn't pick up changes made by bound TextBoxes Pin
rtklueh25-Aug-08 5:52
rtklueh25-Aug-08 5:52 
QuestionWindows Service Pin
varshavmane22-Aug-08 5:08
varshavmane22-Aug-08 5:08 
AnswerRe: Windows Service Pin
Pavel Klocek22-Aug-08 11:15
Pavel Klocek22-Aug-08 11:15 
GeneralRe: Windows Service Pin
varshavmane24-Aug-08 19:45
varshavmane24-Aug-08 19:45 
AnswerRe: Windows Service Pin
rtklueh23-Aug-08 4:06
rtklueh23-Aug-08 4:06 
AnswerRe: Windows Service Pin
lisan_al_ghaib23-Aug-08 12:23
lisan_al_ghaib23-Aug-08 12:23 

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.