Click here to Skip to main content
15,891,253 members
Home / Discussions / C#
   

C#

 
AnswerRe: Switch, case? Pin
Ennis Ray Lynch, Jr.21-Aug-09 6:10
Ennis Ray Lynch, Jr.21-Aug-09 6:10 
GeneralRe: Switch, case? Pin
nhqlbaislwfiikqraqnm21-Aug-09 6:21
nhqlbaislwfiikqraqnm21-Aug-09 6:21 
QuestionHow to store and retrieve ZIP files from oracle 10g. ZIP files consist of heavy satellite images. Pin
Antim Singh Parmar21-Aug-09 5:47
Antim Singh Parmar21-Aug-09 5:47 
AnswerRe: How to store and retrieve ZIP files from oracle 10g. ZIP files consist of heavy satellite images. Pin
Hristo-Bojilov21-Aug-09 8:43
Hristo-Bojilov21-Aug-09 8:43 
Questiondrawing multi line Pin
mgroses21-Aug-09 5:45
mgroses21-Aug-09 5:45 
AnswerRe: drawing multi line [modified] Pin
Henry Minute21-Aug-09 6:46
Henry Minute21-Aug-09 6:46 
GeneralRe: drawing multi line [modified] Pin
mgroses21-Aug-09 10:34
mgroses21-Aug-09 10:34 
GeneralRe: drawing multi line Pin
Henry Minute21-Aug-09 11:41
Henry Minute21-Aug-09 11:41 
mgroses wrote:
If I minimize the form and maximize again, all lines disappear. Do you have any idea about it? How can I solve this problem


This is because in the panel1_Paint event handler you only draw the lines if drawLine is true. When the Panel is resized drawLine is still false. One way to solve this is to handle the Form.Resize event like this:
private void Form1_Resize(object sender, EventArgs e)
{
    drawLine = true;
}


but really this is just patching one hole at a time. Get another program running at the same time as your application. Make sure that its window is not maximised and then move it so that it partly covers the images and lines in your application and then move it away. Are your lines redrawn? How are you going to cure that?

The problem is that the design of your program is wrong. You need to arrange things so that everything is drawn every time the panel repaints. There are too many ways of doing that to give them here. Why don't you have a think about it, have a go and come back if you have any problems.

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

GeneralRe: drawing multi line Pin
mgroses22-Aug-09 6:18
mgroses22-Aug-09 6:18 
AnswerRe: drawing multi line Pin
TAFIN22-Aug-09 20:21
TAFIN22-Aug-09 20:21 
QuestionHow to select right size icon from imagelist with multiple resolution icons Pin
shultas21-Aug-09 4:43
shultas21-Aug-09 4:43 
AnswerRe: How to select right size icon from imagelist with multiple resolution icons Pin
Saksida Bojan21-Aug-09 5:31
Saksida Bojan21-Aug-09 5:31 
GeneralRe: How to select right size icon from imagelist with multiple resolution icons Pin
shultas22-Aug-09 2:26
shultas22-Aug-09 2:26 
QuestionHow to insert the values in to two database tables in C# Pin
himanshu_roy8121-Aug-09 3:29
himanshu_roy8121-Aug-09 3:29 
AnswerRe: How to insert the values in to two database tables in C# Pin
Pete O'Hanlon21-Aug-09 3:37
mvePete O'Hanlon21-Aug-09 3:37 
AnswerRe: How to insert the values in to two database tables in C# Pin
Keith Barrow21-Aug-09 3:38
professionalKeith Barrow21-Aug-09 3:38 
AnswerRe: How to insert the values in to two database tables in C# Pin
PIEBALDconsult21-Aug-09 4:38
mvePIEBALDconsult21-Aug-09 4:38 
Questionhow to redirect the page when the particular cell in the datagridview is double clikced Pin
Anjani Poornima21-Aug-09 3:26
Anjani Poornima21-Aug-09 3:26 
AnswerRe: how to redirect the page when the particular cell in the datagridview is double clikced Pin
Henry Minute21-Aug-09 5:51
Henry Minute21-Aug-09 5:51 
GeneralRe: how to redirect the page when the particular cell in the datagridview is double clikced Pin
Anjani Poornima21-Aug-09 22:03
Anjani Poornima21-Aug-09 22:03 
GeneralRe: how to redirect the page when the particular cell in the datagridview is double clikced Pin
Henry Minute22-Aug-09 2:30
Henry Minute22-Aug-09 2:30 
AnswerRe: how to redirect the page when the particular cell in the datagridview is double clikced Pin
Saksida Bojan21-Aug-09 6:32
Saksida Bojan21-Aug-09 6:32 
Questionhow to call method of mdi child form from mdi parent form Pin
Tridip Bhattacharjee21-Aug-09 3:21
professionalTridip Bhattacharjee21-Aug-09 3:21 
AnswerRe: how to call method of mdi child form from mdi parent form Pin
0x3c021-Aug-09 3:27
0x3c021-Aug-09 3:27 
QuestionUnable to read Private Key as XML String Pin
Jadhav Ajay21-Aug-09 2:25
professionalJadhav Ajay21-Aug-09 2:25 

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.