Click here to Skip to main content
15,921,548 members
Home / Discussions / C#
   

C#

 
QuestionHow to access IE's menu bar Pin
tatchung22-Nov-05 23:02
tatchung22-Nov-05 23:02 
QuestionHow to rundomize in ASP.NET C# Pin
RookieProgrammer22-Nov-05 22:17
RookieProgrammer22-Nov-05 22:17 
AnswerRe: How to rundomize in ASP.NET C# Pin
Giles23-Nov-05 9:04
Giles23-Nov-05 9:04 
GeneralHow do i do that? Pin
RookieProgrammer23-Nov-05 21:54
RookieProgrammer23-Nov-05 21:54 
GeneralRe: How do i do that? Pin
tatchung24-Nov-05 14:54
tatchung24-Nov-05 14:54 
Questionselect the date Pin
momoo22-Nov-05 21:20
momoo22-Nov-05 21:20 
AnswerRe: select the date Pin
Stanciu Vlad22-Nov-05 21:49
Stanciu Vlad22-Nov-05 21:49 
QuestionProblem with Paint Pin
naglbitur22-Nov-05 21:12
naglbitur22-Nov-05 21:12 
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. Let me show you a little what I am talking about:
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); //this line gets partially drawn
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 Vlad22-Nov-05 21:30
Stanciu Vlad22-Nov-05 21:30 
QuestionConfig file using MS EnterpriseLib Pin
SheenSylesh22-Nov-05 18:50
SheenSylesh22-Nov-05 18:50 
QuestionWhat is STA mode Pin
kourvoisier22-Nov-05 17:53
kourvoisier22-Nov-05 17:53 
AnswerRe: What is STA mode Pin
kourvoisier23-Nov-05 5:46
kourvoisier23-Nov-05 5:46 
AnswerRe: What is STA mode Pin
mav.northwind23-Nov-05 6:18
mav.northwind23-Nov-05 6:18 
GeneralRe: What is STA mode Pin
kourvoisier23-Nov-05 10:41
kourvoisier23-Nov-05 10:41 
QuestionTypeLib for interop assembly changes case of method name Pin
turbochimp22-Nov-05 14:38
turbochimp22-Nov-05 14:38 
Questionadding a Link Pin
picasso222-Nov-05 13:40
picasso222-Nov-05 13:40 
AnswerRe: adding a Link Pin
Christian Graus22-Nov-05 15:10
protectorChristian Graus22-Nov-05 15:10 
QuestionResizing window Pin
picasso222-Nov-05 13:39
picasso222-Nov-05 13:39 
AnswerRe: Resizing window Pin
Curtis Schlak.22-Nov-05 14:58
Curtis Schlak.22-Nov-05 14:58 
QuestionItemCommand triggering off of a dropdownlist Pin
Baatezu22-Nov-05 13:36
Baatezu22-Nov-05 13:36 
QuestionEventLog Pin
Guinness4Strength22-Nov-05 12:15
Guinness4Strength22-Nov-05 12:15 
AnswerRe: EventLog Pin
Guinness4Strength23-Nov-05 4:15
Guinness4Strength23-Nov-05 4:15 
QuestionChanging default format for DateTime.ToString() Pin
Dan Neely22-Nov-05 10:51
Dan Neely22-Nov-05 10:51 
AnswerRe: Changing default format for DateTime.ToString() Pin
Joshua Quick22-Nov-05 11:39
Joshua Quick22-Nov-05 11:39 
GeneralRe: Changing default format for DateTime.ToString() Pin
Dan Neely22-Nov-05 11:49
Dan Neely22-Nov-05 11:49 

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.