Click here to Skip to main content
15,914,013 members
Home / Discussions / C#
   

C#

 
QuestionMessage Resource file version info Pin
cturn21-Aug-09 6:03
cturn21-Aug-09 6:03 
AnswerRe: Message Resource file version info Pin
Saksida Bojan21-Aug-09 6:26
Saksida Bojan21-Aug-09 6:26 
GeneralRe: Message Resource file version info Pin
cturn21-Aug-09 6:34
cturn21-Aug-09 6:34 
GeneralRe: Message Resource file version info Pin
Saksida Bojan21-Aug-09 7:13
Saksida Bojan21-Aug-09 7:13 
GeneralRe: Message Resource file version info Pin
cturn21-Aug-09 8:39
cturn21-Aug-09 8:39 
GeneralRe: Message Resource file version info Pin
Saksida Bojan21-Aug-09 9:59
Saksida Bojan21-Aug-09 9:59 
GeneralRe: Message Resource file version info Pin
cturn25-Aug-09 12:37
cturn25-Aug-09 12:37 
GeneralRe: Message Resource file version info Pin
cturn26-Aug-09 5:29
cturn26-Aug-09 5:29 
QuestionSwitch, case? Pin
nhqlbaislwfiikqraqnm21-Aug-09 5:52
nhqlbaislwfiikqraqnm21-Aug-09 5:52 
AnswerRe: Switch, case? Pin
0x3c021-Aug-09 6:00
0x3c021-Aug-09 6:00 
GeneralRe: Switch, case? Pin
nhqlbaislwfiikqraqnm21-Aug-09 6:10
nhqlbaislwfiikqraqnm21-Aug-09 6:10 
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 

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.