Click here to Skip to main content
15,913,486 members
Home / Discussions / C#
   

C#

 
GeneralRe: need help with c# textbox Pin
Ennis Ray Lynch, Jr.3-Mar-08 17:23
Ennis Ray Lynch, Jr.3-Mar-08 17:23 
GeneralSpecifying the .NET version for dynamic code generation Pin
Ravi Bhavnani3-Mar-08 13:27
professionalRavi Bhavnani3-Mar-08 13:27 
Generalnews display in desktop application through rss feeds Pin
rao raja3-Mar-08 11:22
rao raja3-Mar-08 11:22 
GeneralRe: news display in desktop application through rss feeds Pin
Ravi Bhavnani3-Mar-08 13:29
professionalRavi Bhavnani3-Mar-08 13:29 
GeneralRe: news display in desktop application through rss feeds Pin
Ennis Ray Lynch, Jr.3-Mar-08 15:35
Ennis Ray Lynch, Jr.3-Mar-08 15:35 
GeneralRe: news display in desktop application through rss feeds Pin
Ravi Bhavnani4-Mar-08 2:37
professionalRavi Bhavnani4-Mar-08 2:37 
GeneralRe: news display in desktop application through rss feeds Pin
rao raja3-Mar-08 23:56
rao raja3-Mar-08 23:56 
GeneralDrawing grid... problem with scrolling. Pin
omnimny3-Mar-08 10:55
omnimny3-Mar-08 10:55 
Hello,

I've manipulated the code from this site
http://www.geekpedia.com/tutorial50_Drawing-with-Csharp.html[^], as follows at the bottom of the page, and modifying the form in the way to show scroll bars. Doing it I got some problems with scrolling.
In fact, running the form everything go well, scrolling with the bar it repaint well... But if I click on the arrow for scrolling, it doesn't repaint as well. Try to check and let me know, please, how to solve this problem.

protected override void OnPaint(PaintEventArgs e)
{

// Get the graphics object
Graphics gfx = e.Graphics;
// Create a new pen that we shall use for drawing the line
Pen myPen = new Pen(Color.PaleGoldenrod);
Pen myBPen = new Pen(Color.Goldenrod);
// Loop and create a horizontal line 10 pixels below the last one
for (int i = 0; i <= 3000; i = i + 10)
{
gfx.DrawLine(myPen, 0, i, 2990, i);
}
// Loop and create a vertical line 10 pixels next to the last one
for (int x = 0; x < 3000; x = x + 10)
{
gfx.DrawLine(myPen, x, 0, x, 2990);

}
// Loop and create horizontal line 40 pixels next to the last one
for (int z = 0; z < 3000; z = z + 40)
{
gfx.DrawLine(myBPen, 0, z, 2950, z);
}
// Loop and create a vertical line 40 pixels next to the last one
for (int zz = 0; zz < 3000; zz = zz + 40)
{
gfx.DrawLine(myBPen, zz, 0, zz, 2950);
}
}
GeneralRe: Drawing grid... problem with scrolling. Pin
Christian Graus3-Mar-08 15:31
protectorChristian Graus3-Mar-08 15:31 
GeneralRe: Drawing grid... problem with scrolling. Pin
omnimny3-Mar-08 19:55
omnimny3-Mar-08 19:55 
QuestionSpecifiy Crystal Report database dynamically at runtime Pin
jharker19873-Mar-08 10:12
jharker19873-Mar-08 10:12 
GeneralRe: Specifiy Crystal Report database dynamically at runtime Pin
Ennis Ray Lynch, Jr.3-Mar-08 11:00
Ennis Ray Lynch, Jr.3-Mar-08 11:00 
GeneralRe: Specifiy Crystal Report database dynamically at runtime Pin
jharker19873-Mar-08 11:05
jharker19873-Mar-08 11:05 
GeneralRe: Specifiy Crystal Report database dynamically at runtime Pin
Ennis Ray Lynch, Jr.3-Mar-08 11:10
Ennis Ray Lynch, Jr.3-Mar-08 11:10 
GeneralRe: Specifiy Crystal Report database dynamically at runtime Pin
jharker19873-Mar-08 13:18
jharker19873-Mar-08 13:18 
GeneralRe: Specifiy Crystal Report database dynamically at runtime Pin
Ennis Ray Lynch, Jr.3-Mar-08 15:32
Ennis Ray Lynch, Jr.3-Mar-08 15:32 
GeneralReference a config file in another project, same solution. Pin
DeepToot3-Mar-08 8:51
DeepToot3-Mar-08 8:51 
GeneralI need help with C# Pin
Alex5013-Mar-08 8:43
Alex5013-Mar-08 8:43 
GeneralRe: I need help with C# Pin
Lord Kixdemp3-Mar-08 8:47
Lord Kixdemp3-Mar-08 8:47 
JokeRe: I need help with C# Pin
Le centriste3-Mar-08 15:09
Le centriste3-Mar-08 15:09 
GeneralRe: I need help with C# Pin
Gareth H3-Mar-08 8:48
Gareth H3-Mar-08 8:48 
GeneralRe: I need help with C# Pin
Ennis Ray Lynch, Jr.3-Mar-08 8:53
Ennis Ray Lynch, Jr.3-Mar-08 8:53 
GeneralRe: I need help with C# Pin
DaveyM693-Mar-08 8:54
professionalDaveyM693-Mar-08 8:54 
GeneralRe: I need help with C# Pin
DeepToot3-Mar-08 8:56
DeepToot3-Mar-08 8:56 
GeneralRe: I need help with C# Pin
DaveyM693-Mar-08 9:06
professionalDaveyM693-Mar-08 9:06 

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.