.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

How to drawline in c# then how can i erase bit by bit using c#

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

Frnds any one tell me how to drawline in c# and erase bit by bit instead of using "clear()" method

View Complete Post

More Related Resource Links

Erase Phantom System Health Records failed (reason: 193)

Hello, On standalone server job step is failing with below message. ================================== Date  02/08/2010 12:07:48 Log  Job History (syspolicy_purge_history) Step ID  3 Server  DPRSQL1 Job Name  syspolicy_purge_history Step Name  Erase Phantom System Health Records. Duration  00:00:00 Sql Severity  0 Sql Message ID  0 Operator Emailed   Operator Net sent   Operator Paged   Retries Attempted  0 Message Executed as user: DPR\dprsql1. The process could not be created for step 3 of job 0xA4E39092C0176B4AB4A2A2FE0B743FB1 (reason: 193).  The step failed. ===================== -------------------------------------------------------------------------------------- SEELCT @@VERSION: ======================================= Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (X64) Mar 29 2009 10:11:52 Copyright (c) 1988-2008 Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.0 <X64> (Build 6002: Service Pack 2) ======================================= No error in SQL Server Errorlog

Problem using Drawline

I want to test the drawline method but I have difficulties in actually using the method. I have used this code, but the program exits with an exception. Anybody know why??       private void button3_Click(object sender, EventArgs e) {     Pen blackPen = new Pen(Color.Black, 3);     // Create coordinates of points that define line.     int x1 = 100;     int y1 = 100;     int x2 = 500;     int y2 = 100;     // Draw line to screen. g.DrawLine(blackPen, x1, y1, x2, y2); //g is defined by this code:   graphics g; }

Overflow exception on DrawLine method ?


The following lines in a form throws exception. I dont understand the reason for this exception.



protected override void OnPaint(PaintEventArgs e)



            using (Pen pp = new Pen(Color.FromArgb(225, 237, 139, 76)))


                e.Graphics.DrawLine( pp,205,1600, 550, -1073740352);

// However the following line does not producess the error

// e.Graphics.DrawLine( pp,205, 1599, 550, -1073740352);





Anyone there please explain the reason for this exception.

Any help would be appreciated.


Regards Vallarasu S. BreakingDotNet.blogspot.com
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend