Click here to Skip to main content
15,920,111 members
Home / Discussions / C#
   

C#

 
AnswerRe: Printer driver Pin
Giles23-Nov-05 9:08
Giles23-Nov-05 9:08 
Questionmoving the mouse Pin
Sam 200623-Nov-05 8:10
Sam 200623-Nov-05 8:10 
AnswerRe: moving the mouse Pin
User 665823-Nov-05 8:38
User 665823-Nov-05 8:38 
GeneralRe: moving the mouse Pin
Sam 200623-Nov-05 11:59
Sam 200623-Nov-05 11:59 
QuestionSource safe slow pulling files - NAnt Get Pin
glocklt423-Nov-05 7:11
glocklt423-Nov-05 7:11 
AnswerRe: Source safe slow pulling files - NAnt Get Pin
Daniel Turini23-Nov-05 7:44
Daniel Turini23-Nov-05 7:44 
GeneralRe: Source safe slow pulling files - NAnt Get Pin
glocklt423-Nov-05 7:49
glocklt423-Nov-05 7:49 
QuestionProblem with Paint Pin
naglbitur23-Nov-05 6:48
naglbitur23-Nov-05 6:48 
Hi there.
I am having a bit of a problem with Paint. I have a form and then when a user selects a certain choice from a menu the program puts several label controls with a text on the form. The program is also supposed to draw some lines when the same selection is made but it does not. This is what I did:
private void dowhatIwant(object sender, EventArgs e)
{

this.Paint += new PaintEventHandler(p2_Paint);
...
... //here is the code that puts the labels on the form
}
...
...
private void p2_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
Pen p = new Pen(Color.Black,1);
Point p1 = new Point(88, 32);
Point p2 = new Point(299, 32);
g.DrawLine(p, p1, p2);
Point p3 = new Point(68, 106);
Point p4 = new Point(115, 106);
g.DrawLine(p, p3, p4);
...
...
}
I have several more lines I want to draw but only the first one shows? Can someone please show me the error of my ways? Confused | :confused:
Thank you,



FJ
AnswerRe: Problem with Paint Pin
Stanciu Vlad23-Nov-05 6:57
Stanciu Vlad23-Nov-05 6:57 
QuestionListview drag drop and Ghost icon issue Pin
sameerhanda23-Nov-05 4:09
sameerhanda23-Nov-05 4:09 
AnswerRe: Listview drag drop and Ghost icon issue Pin
Curtis Schlak.23-Nov-05 12:12
Curtis Schlak.23-Nov-05 12:12 
QuestionPlease help with problem – multiple audio file playback(c#) Pin
truly_pringled23-Nov-05 4:03
truly_pringled23-Nov-05 4:03 
GeneralRe: Please help with problem – multiple audio file playback(c#) Pin
mav.northwind23-Nov-05 4:25
mav.northwind23-Nov-05 4:25 
QuestionRe: Please help with problem – multiple audio file playback(c#) Pin
truly_pringled23-Nov-05 5:32
truly_pringled23-Nov-05 5:32 
AnswerRe: Please help with problem – multiple audio file playback(c#) Pin
Dave Kreskowiak23-Nov-05 5:44
mveDave Kreskowiak23-Nov-05 5:44 
AnswerRe: Please help with problem – multiple audio file playback(c#) Pin
truly_pringled24-Nov-05 3:48
truly_pringled24-Nov-05 3:48 
QuestionSystem.Resources.MissingManifestResourceException Pin
Dan Neely23-Nov-05 3:50
Dan Neely23-Nov-05 3:50 
AnswerRe: System.Resources.MissingManifestResourceException Pin
Dan Neely23-Nov-05 5:32
Dan Neely23-Nov-05 5:32 
QuestionConditional Installation of merge module? Pin
mav.northwind23-Nov-05 3:38
mav.northwind23-Nov-05 3:38 
Questionuser interface standards Pin
rmedo23-Nov-05 3:03
rmedo23-Nov-05 3:03 
AnswerRe: user interface standards Pin
Dan Neely23-Nov-05 4:23
Dan Neely23-Nov-05 4:23 
AnswerRe: user interface standards Pin
Not Active23-Nov-05 5:54
mentorNot Active23-Nov-05 5:54 
QuestionUI control hot key (Alt+?) Pin
smurfy3423-Nov-05 2:56
smurfy3423-Nov-05 2:56 
AnswerRe: UI control hot key (Alt+?) Pin
Dan Neely23-Nov-05 3:56
Dan Neely23-Nov-05 3:56 
GeneralRe: UI control hot key (Alt+?) Pin
smurfy3423-Nov-05 4:16
smurfy3423-Nov-05 4:16 

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.