Click here to Skip to main content
15,886,693 members
Home / Discussions / C#
   

C#

 
Questionhow to setup C# TCPClient timeout Pin
George_George12-Aug-07 22:36
George_George12-Aug-07 22:36 
QuestionConnection to SQL ! Pin
mrkeivan12-Aug-07 21:59
mrkeivan12-Aug-07 21:59 
AnswerRe: Connection to SQL ! Pin
Giorgi Dalakishvili12-Aug-07 22:09
mentorGiorgi Dalakishvili12-Aug-07 22:09 
Questionvertical align in richtextbox Pin
Cuciu12-Aug-07 21:38
Cuciu12-Aug-07 21:38 
Questionc# - Painting problem Pin
T.D.Prasad12-Aug-07 21:27
T.D.Prasad12-Aug-07 21:27 
AnswerRe: c# - Painting problem Pin
Albu Marius12-Aug-07 22:31
Albu Marius12-Aug-07 22:31 
AnswerRe: c# - Painting problem Pin
Cuciu12-Aug-07 22:42
Cuciu12-Aug-07 22:42 
QuestionRe: c# - Painting problem Pin
T.D.Prasad12-Aug-07 23:51
T.D.Prasad12-Aug-07 23:51 
Cuciu,

Thanks for the suggestion. My problem is partially solved. Still the following problem persists. If I colse the messagebox, while it is on the rubber recatngle, that part is not redrawn.

Further, the suggested method doesn't work if I use "e.Graphics.Clear(BackColor)".

Could you please explain why?

My main problem is the Following:

<br />
        private void FormMap_Paint(object Sender, PaintEventArgs e)<br />
        //----------------------------------------------------<br />
        // OnPaint event handler. Copies bitmap image of Map<br />
        // object to form's canvas when form needs repainting.<br />
        //----------------------------------------------------<br />
        {<br />
            e.Graphics.Clear(this.BackColor);<br />
            e.Graphics.DrawImage(Map.BMP, 0, 0);<br />
            DrawFenceline();<br />
            HiliteOn();<br />
        }<br />


my Map object is stored on a bitmap. In form paint event I am drawing bitmap on to form. Then a fenceline is drawn (a region of rubberband lines) which is used to select a group of objects.

However, when I display a message box (or other form) on this form I am having problems with rubberband lines as explained earlier.

Any help to overcome this problem?

Regards,
Prasad
AnswerRe: c# - Painting problem Pin
Christian Graus13-Aug-07 0:31
protectorChristian Graus13-Aug-07 0:31 
AnswerRe: c# - Painting problem Pin
Christian Graus12-Aug-07 23:52
protectorChristian Graus12-Aug-07 23:52 
QuestionReading Numeric and AlphaNumeric Values from Excel Pin
meeram39512-Aug-07 20:10
meeram39512-Aug-07 20:10 
AnswerRe: Reading Numeric and AlphaNumeric Values from Excel Pin
travlos718-Mar-09 6:14
travlos718-Mar-09 6:14 
AnswerRe: Reading Numeric and AlphaNumeric Values from Excel Pin
InfoBridgeSolutions17-Aug-10 19:30
InfoBridgeSolutions17-Aug-10 19:30 
QuestionDatagrid paging-c# windows application Pin
hemchandars12-Aug-07 20:06
hemchandars12-Aug-07 20:06 
AnswerRe: Datagrid paging-c# windows application Pin
Jax_qqq12-Aug-07 21:41
Jax_qqq12-Aug-07 21:41 
GeneralRe: Datagrid paging-c# windows application Pin
hemchandars13-Aug-07 1:03
hemchandars13-Aug-07 1:03 
Questionhow to Read folder contents [modified] Pin
salmonraju12-Aug-07 20:05
salmonraju12-Aug-07 20:05 
AnswerRe: how to Read folder contents Pin
Michael Sync12-Aug-07 20:18
Michael Sync12-Aug-07 20:18 
GeneralRe: how to Read folder contents Pin
salmonraju12-Aug-07 21:02
salmonraju12-Aug-07 21:02 
AnswerRe: how to Read folder contents Pin
tker12-Aug-07 20:29
tker12-Aug-07 20:29 
GeneralRe: how to Read folder contents Pin
salmonraju12-Aug-07 21:01
salmonraju12-Aug-07 21:01 
Questioncrystal reports Pin
monuSaini12-Aug-07 19:58
monuSaini12-Aug-07 19:58 
AnswerRe: crystal reports Pin
Imranlogi12-Aug-07 20:33
Imranlogi12-Aug-07 20:33 
GeneralRe: crystal reports Pin
monuSaini12-Aug-07 20:49
monuSaini12-Aug-07 20:49 
GeneralRe: crystal reports Pin
Imranlogi12-Aug-07 21:18
Imranlogi12-Aug-07 21:18 

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.