Click here to Skip to main content
15,899,313 members
Home / Discussions / C#
   

C#

 
AnswerRe: Basic Question On Constructor Stuff Pin
PIEBALDconsult2-Jun-11 16:23
mvePIEBALDconsult2-Jun-11 16:23 
GeneralRe: Basic Question On Constructor Stuff Pin
PozzaVecia3-Jun-11 11:10
PozzaVecia3-Jun-11 11:10 
AnswerRe: Basic Question On Constructor Stuff Pin
BobJanova3-Jun-11 4:34
BobJanova3-Jun-11 4:34 
QuestionGrid rendering problem in windows forms Pin
venomation2-Jun-11 5:38
venomation2-Jun-11 5:38 
GeneralRe: Grid rendering problem in windows forms Pin
thatraja2-Jun-11 8:21
professionalthatraja2-Jun-11 8:21 
AnswerRe: Grid rendering problem in windows forms Pin
Luc Pattyn2-Jun-11 8:47
sitebuilderLuc Pattyn2-Jun-11 8:47 
GeneralRe: Grid rendering problem in windows forms Pin
venomation2-Jun-11 9:28
venomation2-Jun-11 9:28 
AnswerRe: Grid rendering problem in windows forms Pin
Luc Pattyn2-Jun-11 9:36
sitebuilderLuc Pattyn2-Jun-11 9:36 
We're not done yet. I have two comments on your code:

1.
the remove-then-add-a-handler stuff looks unnecessary. Why are you doing this?

2.
once you fixed the error, you are drawing a large number of tiny adjacent rectangles, which means a lot of computational effort, and also each tiny edge gets drawn twice. And all you really need for a grid of N by N cells, is N+1 horizontal lines and N+1 vertical lines. That does not take more code, it does not have nested for loops, and even may be less error prone!

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Please use <PRE> tags for code snippets, they improve readability.
CP Vanity has been updated to V2.3

GeneralRe: Grid rendering problem in windows forms Pin
venomation2-Jun-11 9:57
venomation2-Jun-11 9:57 
AnswerRe: Grid rendering problem in windows forms Pin
Luc Pattyn2-Jun-11 10:02
sitebuilderLuc Pattyn2-Jun-11 10:02 
AnswerRe: Grid rendering problem in windows forms Pin
Luc Pattyn2-Jun-11 10:54
sitebuilderLuc Pattyn2-Jun-11 10:54 
QuestionNot Working RegistryKey.openSubKey in windows 7 Pin
vishnukamath2-Jun-11 3:32
vishnukamath2-Jun-11 3:32 
AnswerRe: Not Working RegistryKey.openSubKey in windows 7 Pin
Wayne Gaylard2-Jun-11 4:00
professionalWayne Gaylard2-Jun-11 4:00 
AnswerRe: Not Working RegistryKey.openSubKey in windows 7 Pin
Luc Pattyn2-Jun-11 4:14
sitebuilderLuc Pattyn2-Jun-11 4:14 
GeneralRe: Not Working RegistryKey.openSubKey in windows 7 Pin
GenJerDan2-Jun-11 4:28
GenJerDan2-Jun-11 4:28 
Questionis there any way to make Silent installation to my C# program - on Visual-Studio Pin
goldsoft2-Jun-11 1:41
goldsoft2-Jun-11 1:41 
AnswerRe: is there any way to make Silent installation to my C# program - on Visual-Studio Pin
Luc Pattyn2-Jun-11 2:41
sitebuilderLuc Pattyn2-Jun-11 2:41 
AnswerRe: is there any way to make Silent installation to my C# program - on Visual-Studio Pin
Dave Kreskowiak2-Jun-11 4:15
mveDave Kreskowiak2-Jun-11 4:15 
Questionread excel file with OleDbCommand Pin
MrKBA2-Jun-11 1:19
MrKBA2-Jun-11 1:19 
AnswerRe: read excel file with OleDbCommand Pin
PIEBALDconsult2-Jun-11 3:06
mvePIEBALDconsult2-Jun-11 3:06 
GeneralRe: read excel file with OleDbCommand Pin
MrKBA2-Jun-11 3:24
MrKBA2-Jun-11 3:24 
GeneralRe: read excel file with OleDbCommand Pin
Wayne Gaylard2-Jun-11 4:03
professionalWayne Gaylard2-Jun-11 4:03 
QuestionMicrosoft Report on Network c# 2010 ? [modified] Pin
Paramu19732-Jun-11 1:09
Paramu19732-Jun-11 1:09 
QuestionHow to Systematic Development and Programming Pin
Anubhava Dimri1-Jun-11 22:56
Anubhava Dimri1-Jun-11 22:56 
AnswerRe: How to Systematic Development and Programming Pin
Pete O'Hanlon1-Jun-11 23:18
mvePete O'Hanlon1-Jun-11 23:18 

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.