Click here to Skip to main content
15,890,527 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Repost Pin
Peace ON6-Jul-10 23:29
Peace ON6-Jul-10 23:29 
GeneralRe: Repost Pin
R. Giskard Reventlov6-Jul-10 23:28
R. Giskard Reventlov6-Jul-10 23:28 
GeneralRe: Repost Pin
Sandeep Mewara6-Jul-10 23:33
mveSandeep Mewara6-Jul-10 23:33 
GeneralRe: Repost Pin
R. Giskard Reventlov7-Jul-10 0:30
R. Giskard Reventlov7-Jul-10 0:30 
GeneralRe: Repost Pin
Sandeep Mewara7-Jul-10 0:31
mveSandeep Mewara7-Jul-10 0:31 
Questionmotionless analog clock Pin
Hemant Thaker6-Jul-10 21:06
Hemant Thaker6-Jul-10 21:06 
AnswerRe: motionless analog clock Pin
Sandeep Mewara6-Jul-10 23:30
mveSandeep Mewara6-Jul-10 23:30 
JokeRe: motionless analog clock Pin
Hemant Thaker7-Jul-10 5:53
Hemant Thaker7-Jul-10 5:53 
private void drawclock4(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
Rectangle rec = new Rectangle(20, 20, 250, 250);
LinearGradientBrush linearbrush = new LinearGradientBrush(rec, Color.Black, Color.Black, 225);
g.FillEllipse(linearbrush, 20, 20, 200, 200);
linearbrush.LinearColors = new Color[] { Color.White, Color.White, };
g.FillEllipse(linearbrush, 30, 30, 180, 180);
linearbrush.LinearColors = new Color[] { Color.White, Color.White };
g.FillEllipse(linearbrush, 33, 33, 174, 174);
SolidBrush solidbrush = new SolidBrush(Color.Black);
Font textFont = new Font("Arial Black", 12F);
g.DrawString("12", textFont, solidbrush, 109, 40);
g.DrawString("11", textFont, solidbrush, 75, 50);
g.DrawString("10", textFont, solidbrush, 47, 75);
g.DrawString("9", textFont, solidbrush, 43, 110);
g.DrawString("8", textFont, solidbrush, 52, 145);
g.DrawString("7", textFont, solidbrush, 75, 170);
g.DrawString("6", textFont, solidbrush, 113, 180);
g.DrawString("5", textFont, solidbrush, 150, 170);
g.DrawString("4", textFont, solidbrush, 173, 145);
g.DrawString("3", textFont, solidbrush, 182, 110);
g.DrawString("2", textFont, solidbrush, 173, 75);
g.DrawString("1", textFont, solidbrush, 150, 50);
g.TranslateTransform(120, 120, MatrixOrder.Append);

int hour = DateTime.Now.Hour;
int min = DateTime.Now.Minute;
int sec = DateTime.Now.Second;



// Create Pens
Pen hourPen = new Pen(Color.DarkBlue, 4);
Pen minutePen = new Pen(Color.DarkGreen, 3);
Pen secondPen = new Pen(Color.DarkRed, 2);

// Create angles
double secondAngle = 2.0 * Math.PI * sec / 60.0;
double minuteAngle = 2.0 * Math.PI * (min + sec / 60.0) / 60.0;
double hourAngle = 2.0 * Math.PI * (hour + min / 60.0) / 12.0;
// Set centre point
Point centre = new Point(0, 0);
// Draw Hour Hand


//Point hourHand = new Point((int)(40 * Math.Sin(hourAngle)), (int)(-40 * Math.Cos(hourAngle)));
//g.DrawLine(hourPen, centre, hourHand);
// Draw Minute Hand
Point minHand = new Point((int)(70 * Math.Sin(minuteAngle)), (int)(-70 * Math.Cos(minuteAngle)));
g.DrawLine(minutePen, centre, minHand);
// Draw Second Hand
//Point secHand = new Point((int)(70 * Math.Sin(secondAngle)),(int)(-70 * Math.Cos(secondAngle)));
//g.DrawLine(secondPen, centre, secHand);
// Invalidate();
}
By:
Hemant Thaker

QuestionUpload File error Pin
Member 32222646-Jul-10 20:37
Member 32222646-Jul-10 20:37 
AnswerRe: Upload File error Pin
R. Giskard Reventlov6-Jul-10 22:30
R. Giskard Reventlov6-Jul-10 22:30 
AnswerRe: Upload File error Pin
Sandeep Mewara6-Jul-10 23:38
mveSandeep Mewara6-Jul-10 23:38 
QuestionASP.Net Crystal Reports Pin
indian1436-Jul-10 15:24
indian1436-Jul-10 15:24 
AnswerRe: ASP.Net Crystal Reports Pin
Sandeep Mewara6-Jul-10 19:14
mveSandeep Mewara6-Jul-10 19:14 
GeneralRe: ASP.Net Crystal Reports Pin
indian1436-Jul-10 19:16
indian1436-Jul-10 19:16 
GeneralRe: ASP.Net Crystal Reports Pin
Sandeep Mewara6-Jul-10 19:20
mveSandeep Mewara6-Jul-10 19:20 
Questionrdlc Pin
Thanusree Duth6-Jul-10 0:35
Thanusree Duth6-Jul-10 0:35 
AnswerRe: rdlc Pin
The Man from U.N.C.L.E.6-Jul-10 8:05
The Man from U.N.C.L.E.6-Jul-10 8:05 
Questionneed detail info about session [modified] Pin
dittu75-Jul-10 23:40
dittu75-Jul-10 23:40 
AnswerRe: need detail info about session Pin
Ankur\m/6-Jul-10 0:07
professionalAnkur\m/6-Jul-10 0:07 
AnswerRe: need detail info about session Pin
raju melveetilpurayil6-Jul-10 1:48
professionalraju melveetilpurayil6-Jul-10 1:48 
GeneralRe: need detail info about session Pin
dittu76-Jul-10 23:00
dittu76-Jul-10 23:00 
GeneralRe: need detail info about session Pin
raju melveetilpurayil7-Jul-10 7:25
professionalraju melveetilpurayil7-Jul-10 7:25 
QuestionAccess value from dynamically generated textboxes in the gridview. Pin
anada88865-Jul-10 20:41
anada88865-Jul-10 20:41 
AnswerRe: Access value from dynamically generated textboxes in the gridview. Pin
m@dhu5-Jul-10 22:20
m@dhu5-Jul-10 22:20 
AnswerRe: Access value from dynamically generated textboxes in the gridview. Pin
anada88866-Jul-10 0:33
anada88866-Jul-10 0:33 

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.