Click here to Skip to main content
15,895,256 members
Home / Discussions / C#
   

C#

 
QuestionHOW TO Call the Save Method of an MDI Child Form from the MDI Form Toolbar Menu Pin
Old Gun9-Apr-06 17:03
Old Gun9-Apr-06 17:03 
AnswerRe: HOW TO Call the Save Method of an MDI Child Form from the MDI Form Toolbar Menu Pin
CWIZO9-Apr-06 21:01
CWIZO9-Apr-06 21:01 
QuestionDataGrid's Style (C# Windows Form) Pin
yagang9-Apr-06 16:42
yagang9-Apr-06 16:42 
AnswerRe: DataGrid's Style (C# Windows Form) Pin
yagang10-Apr-06 16:21
yagang10-Apr-06 16:21 
QuestionMethod Overloading Troubles Pin
Skoder9-Apr-06 16:35
Skoder9-Apr-06 16:35 
AnswerRe: Method Overloading Troubles Pin
S. Senthil Kumar9-Apr-06 18:15
S. Senthil Kumar9-Apr-06 18:15 
GeneralRe: Method Overloading Troubles Pin
Skoder11-Apr-06 16:15
Skoder11-Apr-06 16:15 
QuestionWant code fragment to move line around on Form Pin
...---...9-Apr-06 11:01
...---...9-Apr-06 11:01 
Hi,
Please see the following code below:
//////////////////////////////////////////////

.....
private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
xOrigin = Form1.ActiveForm.ClientRectangle.Width/2;
yOrigin = Form1.ActiveForm.ClientRectangle.Height/2;
DrawThisLine(e.Graphics);
}

public void DrawThisLine(Graphics g)
{
Pen pen = new Pen(Color.Black, 3);
g.DrawLine(pen, xOrigin, yOrigin, xOrigin + 75, yOrigin + 75);
}

private void timer1_Tick(object sender, System.EventArgs e)
{

}
....
///////////////////////////////////////////

I have tried to use the timer1 object and the timer1 event but can't seem to get the line to move around on the Form1. Ultimately I'd like it to rotate around like a clock hand but at this point I'll take any code fragment just to get it in some sort of animated motion.

Thanks a lot in advance....





AnswerRe: Want code fragment to move line around on Form Pin
Guffa9-Apr-06 11:09
Guffa9-Apr-06 11:09 
GeneralRe: Want code fragment to move line around on Form Pin
...---...9-Apr-06 13:22
...---...9-Apr-06 13:22 
AnswerRe: Want code fragment to move line around on Form Pin
Guffa9-Apr-06 19:06
Guffa9-Apr-06 19:06 
QuestionRepeater XmlNodeList Question Pin
eggie59-Apr-06 9:58
eggie59-Apr-06 9:58 
QuestionEvent of starting applications Pin
Sergey Gorchichko9-Apr-06 8:26
Sergey Gorchichko9-Apr-06 8:26 
QuestionGetPixel from Graphics object Pin
Fouad_kayali9-Apr-06 6:32
Fouad_kayali9-Apr-06 6:32 
AnswerRe: GetPixel from Graphics object Pin
Jakob Farian Krarup9-Apr-06 8:15
Jakob Farian Krarup9-Apr-06 8:15 
GeneralRe: GetPixel from Graphics object Pin
Leyu9-Apr-06 9:32
Leyu9-Apr-06 9:32 
AnswerRe: GetPixel from Graphics object Pin
Robert Rohde9-Apr-06 22:56
Robert Rohde9-Apr-06 22:56 
QuestionHelp Code Pin
nwr_mn9-Apr-06 6:16
nwr_mn9-Apr-06 6:16 
AnswerRe: Help Code Pin
User 66589-Apr-06 7:21
User 66589-Apr-06 7:21 
QuestionHelp me on Steganography Pin
nwr_mn9-Apr-06 6:13
nwr_mn9-Apr-06 6:13 
AnswerRe: Help me on Steganography Pin
Joshua Quick9-Apr-06 11:37
Joshua Quick9-Apr-06 11:37 
QuestionHelp me on Steganography Pin
nwr_mn9-Apr-06 6:03
nwr_mn9-Apr-06 6:03 
AnswerRe: Help me on Steganography Pin
Paul Conrad9-Apr-06 6:57
professionalPaul Conrad9-Apr-06 6:57 
QuestionHelp on the following Code in Steganography in Bitmaps Pin
nwr_mn9-Apr-06 5:58
nwr_mn9-Apr-06 5:58 
AnswerRe: Help on the following Code in Steganography in Bitmaps Pin
Ravi Bhavnani9-Apr-06 6:04
professionalRavi Bhavnani9-Apr-06 6:04 

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.