Click here to Skip to main content
15,915,603 members
Home / Discussions / C#
   

C#

 
GeneralRe: 4 simple problems Pin
gnadeem10-Dec-06 4:49
gnadeem10-Dec-06 4:49 
QuestionUpdating Many-to-Many Relations via Two Listboxes Pin
The Prisoner9-Dec-06 5:56
The Prisoner9-Dec-06 5:56 
Questionhow to view a file in a new window Pin
veluru krishna9-Dec-06 5:49
veluru krishna9-Dec-06 5:49 
AnswerRe: how to view a file in a new window Pin
teejayem9-Dec-06 6:26
teejayem9-Dec-06 6:26 
Questionhow to open a file in a new window Pin
veluru krishna9-Dec-06 5:48
veluru krishna9-Dec-06 5:48 
AnswerRe: how to open a file in a new window Pin
Christian Graus9-Dec-06 21:24
protectorChristian Graus9-Dec-06 21:24 
QuestionLimit Download Pin
Vertyg09-Dec-06 5:22
Vertyg09-Dec-06 5:22 
QuestionHow to control the controls of another form from current form Pin
rs20069-Dec-06 4:04
rs20069-Dec-06 4:04 
I want to draw a line on the panel of another form(such as Form2),part of
the code :
private void button3_Click(object sender, EventArgs e)
{
Form2 form = new Form2();
Graphics graphics = form.panel1.CreateGraphics();
graphics.Clear(System.Drawing.SystemColors.Control);
Font drawFont = new Font("Arial", 10);
SolidBrush drawBrush = new SolidBrush(Color.Red);
Pen pen = new Pen(drawBrush);
graphics.DrawLine(pen, 0, 0, 100, 100);
form.ShowDialog();
}
But I couldn't see the red line,I don't know why.
Thanks for your help!
AnswerRe: How to control the controls of another form from current form Pin
Karthik Kalyanasundaram9-Dec-06 4:47
Karthik Kalyanasundaram9-Dec-06 4:47 
GeneralRe: How to control the controls of another form from current form Pin
rs20069-Dec-06 16:53
rs20069-Dec-06 16:53 
GeneralRe: How to control the controls of another form from current form Pin
Colin Angus Mackay11-Dec-06 0:13
Colin Angus Mackay11-Dec-06 0:13 
AnswerRe: How to control the controls of another form from current form Pin
Ravi Bhavnani9-Dec-06 5:12
professionalRavi Bhavnani9-Dec-06 5:12 
GeneralRe: How to control the controls of another form from current form Pin
rs20069-Dec-06 17:04
rs20069-Dec-06 17:04 
QuestionHow to avoid from copy of windows in Visualg .Net C# Pin
snjama9-Dec-06 3:59
snjama9-Dec-06 3:59 
AnswerRe: How to avoid from copy of windows in Visualg .Net C# Pin
Robert Rohde9-Dec-06 4:26
Robert Rohde9-Dec-06 4:26 
AnswerRe: How to avoid from copy of windows in Visualg .Net C# Pin
mav.northwind9-Dec-06 4:28
mav.northwind9-Dec-06 4:28 
GeneralRe: How to avoid from copy of windows in Visualg .Net C# Pin
karam chandrabose9-Dec-06 9:08
karam chandrabose9-Dec-06 9:08 
QuestionRe: System.Security.Cryptography.RSAParameters Pin
edchan9-Dec-06 3:49
edchan9-Dec-06 3:49 
QuestionAdd Cotrol Problem Pin
MHASSANF9-Dec-06 3:21
MHASSANF9-Dec-06 3:21 
AnswerRe: Add Cotrol Problem Pin
Robert Rohde9-Dec-06 4:24
Robert Rohde9-Dec-06 4:24 
QuestionRe: Add Cotrol Problem Pin
MHASSANF10-Dec-06 2:55
MHASSANF10-Dec-06 2:55 
QuestionDoubt on C# virtual functions Pin
jithus9-Dec-06 2:30
jithus9-Dec-06 2:30 
AnswerRe: Doubt on C# virtual functions Pin
Robert Rohde9-Dec-06 2:48
Robert Rohde9-Dec-06 2:48 
GeneralRe: Doubt on C# virtual functions Pin
jithus9-Dec-06 3:35
jithus9-Dec-06 3:35 
GeneralRe: Doubt on C# virtual functions Pin
Robert Rohde9-Dec-06 4:22
Robert Rohde9-Dec-06 4:22 

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.