Click here to Skip to main content
15,917,176 members
Home / Discussions / C#
   

C#

 
JokeRe: Create and connect my checklistBox with my local database in csharp smart device project Pin
Michel Godfroid20-Apr-10 3:36
Michel Godfroid20-Apr-10 3:36 
GeneralRe: Create and connect my checklistBox with my local database in csharp smart device project Pin
Tunisien8620-Apr-10 3:42
Tunisien8620-Apr-10 3:42 
GeneralRe: Create and connect my checklistBox with my local database in csharp smart device project Pin
Michel Godfroid20-Apr-10 4:04
Michel Godfroid20-Apr-10 4:04 
QuestionWindows Desktop Sharing as service... Pin
Jacob Dixon20-Apr-10 3:10
Jacob Dixon20-Apr-10 3:10 
AnswerRe: Windows Desktop Sharing as service... Pin
Michel Godfroid20-Apr-10 3:57
Michel Godfroid20-Apr-10 3:57 
GeneralRe: Windows Desktop Sharing as service... Pin
Jacob Dixon20-Apr-10 4:23
Jacob Dixon20-Apr-10 4:23 
GeneralRe: Windows Desktop Sharing as service... Pin
Michel Godfroid20-Apr-10 6:33
Michel Godfroid20-Apr-10 6:33 
QuestionWM_PAINT message in textbox Pin
thomus0720-Apr-10 3:02
thomus0720-Apr-10 3:02 
int WM_Paint_Handler(
        IntPtr hwnd, uint msg, uint wParam, int lParam,
        ref bool handled)
    {
        Win32.PAINTSTRUCT ps = new Win32.PAINTSTRUCT();

        Graphics gr = Graphics.FromHdc(Win32.BeginPaint(hwnd, ref ps));
        DrawButton(gr, this.Capture &&
            (this.ClientRectangle.Contains(lastCursorCoordinates)));
        gr.Dispose();
        Win32.EndPaint(hwnd, ref ps);
        handled = true;
        return 0;
    }



The above code is from MSDN

I am subclassing textbox and trying to draw some lines over it. Instead of DrawButton in the above function, I draw lines. I don't want to use rich text box. Everything is fine. But when textbox control gets repainted, like I minimize and restore the form which has textbox control, the already available text in the textbox disappears. What's happening?
AnswerRe: WM_PAINT message in textbox Pin
Luc Pattyn20-Apr-10 3:38
sitebuilderLuc Pattyn20-Apr-10 3:38 
GeneralRe: WM_PAINT message in textbox Pin
thomus0720-Apr-10 3:46
thomus0720-Apr-10 3:46 
Questionhow can i show progress in Progress bar on MDI form from child form Pin
wasifmuneer19-Apr-10 21:58
wasifmuneer19-Apr-10 21:58 
AnswerRe: how can i show progress in Progress bar on MDI form from child form Pin
Anindya Chatterjee20-Apr-10 0:09
Anindya Chatterjee20-Apr-10 0:09 
AnswerRe: how can i show progress in Progress bar on MDI form from child form Pin
StM0n20-Apr-10 1:05
StM0n20-Apr-10 1:05 
AnswerRe: how can i show progress in Progress bar on MDI form from child form Pin
wasifmuneer20-Apr-10 20:35
wasifmuneer20-Apr-10 20:35 
QuestionJPEG deinterlacing Pin
Chesnokov Yuriy19-Apr-10 21:13
professionalChesnokov Yuriy19-Apr-10 21:13 
QuestionRe: JPEG deinterlacing Pin
Chesnokov Yuriy19-Apr-10 22:16
professionalChesnokov Yuriy19-Apr-10 22:16 
QuestionExporting Datagridview Headers to excel Pin
ZiggyNet19-Apr-10 20:33
ZiggyNet19-Apr-10 20:33 
AnswerRe: Exporting Datagridview Headers to excel Pin
Mycroft Holmes19-Apr-10 22:40
professionalMycroft Holmes19-Apr-10 22:40 
RantRe: Exporting Datagridview Headers to excel Pin
ZiggyNet20-Apr-10 3:46
ZiggyNet20-Apr-10 3:46 
GeneralRe: Exporting Datagridview Headers to excel Pin
Mycroft Holmes20-Apr-10 12:25
professionalMycroft Holmes20-Apr-10 12:25 
QuestionWhy the form be changed? [modified][Solved] Pin
yu-jian19-Apr-10 20:21
yu-jian19-Apr-10 20:21 
QuestionRe: Why the form be changed? Pin
Michel Godfroid19-Apr-10 20:37
Michel Godfroid19-Apr-10 20:37 
AnswerRe: Why the form be changed? Pin
Mycroft Holmes19-Apr-10 22:42
professionalMycroft Holmes19-Apr-10 22:42 
GeneralRe: Why the form be changed? Pin
yu-jian20-Apr-10 6:58
yu-jian20-Apr-10 6:58 
QuestionBlock a method execution Pin
Hum Dum19-Apr-10 18:59
Hum Dum19-Apr-10 18:59 

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.