Click here to Skip to main content
15,923,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to use resources? Pin
I'm a beginner9-Dec-07 2:35
I'm a beginner9-Dec-07 2:35 
GeneralBar Code Pin
hadad8-Dec-07 13:27
hadad8-Dec-07 13:27 
GeneralRe: Bar Code Pin
Christian Graus8-Dec-07 14:17
protectorChristian Graus8-Dec-07 14:17 
GeneralRe: Bar Code Pin
Luis Alonso Ramos8-Dec-07 16:54
Luis Alonso Ramos8-Dec-07 16:54 
GeneralRe: Bar Code Pin
Luke Lovegrove8-Dec-07 19:39
Luke Lovegrove8-Dec-07 19:39 
GeneralCracker Barrel Peg Game Pin
randomo8-Dec-07 12:18
randomo8-Dec-07 12:18 
GeneralRe: Cracker Barrel Peg Game Pin
Anthony Mushrow8-Dec-07 12:35
professionalAnthony Mushrow8-Dec-07 12:35 
GeneralRe: Cracker Barrel Peg Game Pin
Christian Graus8-Dec-07 12:41
protectorChristian Graus8-Dec-07 12:41 
Well, no-one is going to do your homework for you, but here are some starters


randomo wrote:
Graphics Draw = CreateGraphics();


Never, ever do this. Do all drawing in your paint event. Open your app. Open calculator. Drag the calculator over your window. The reason it doesn't redraw itself properly, is that you used CreateGraphics.

Rather than an array of colors, keep an array of bools, specifying if a hole has a peg in it or not. The color is a rendering detail, and can be worked out from the bool.

An array of bools is easier to use to work out if a peg is there, and where it can move.

Christian Graus - Microsoft MVP - C++

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

GeneralRe: Cracker Barrel Peg Game Pin
randomo9-Dec-07 10:44
randomo9-Dec-07 10:44 
QuestionReferences for solution?? Pin
daavena8-Dec-07 9:56
daavena8-Dec-07 9:56 
AnswerRe: References for solution?? Pin
pmarfleet8-Dec-07 10:07
pmarfleet8-Dec-07 10:07 
GeneralRe: References for solution?? Pin
daavena8-Dec-07 10:12
daavena8-Dec-07 10:12 
GeneralRe: References for solution?? Pin
pmarfleet8-Dec-07 10:28
pmarfleet8-Dec-07 10:28 
GeneralRe: References for solution?? Pin
daavena8-Dec-07 10:35
daavena8-Dec-07 10:35 
Generalserver for multi-person video chat and live broadcasting Pin
eroy4u8-Dec-07 9:35
eroy4u8-Dec-07 9:35 
Generalupdating DataBase Problem (delete row) Pin
Ami8-Dec-07 8:48
Ami8-Dec-07 8:48 
GeneralRe: updating DataBase Problem (delete row) Pin
Giorgi Dalakishvili8-Dec-07 8:58
mentorGiorgi Dalakishvili8-Dec-07 8:58 
GeneralRe: updating DataBase Problem (delete row) Pin
Ami8-Dec-07 9:01
Ami8-Dec-07 9:01 
GeneralRe: updating DataBase Problem (delete row) Pin
Giorgi Dalakishvili8-Dec-07 9:16
mentorGiorgi Dalakishvili8-Dec-07 9:16 
GeneralUsing SQL Server Database Pin
AndyHug8-Dec-07 8:17
AndyHug8-Dec-07 8:17 
GeneralCheckBoxList Pin
anupamwb8-Dec-07 7:50
anupamwb8-Dec-07 7:50 
AnswerRe: CheckBoxList Pin
Ravi Bhavnani8-Dec-07 8:00
professionalRavi Bhavnani8-Dec-07 8:00 
GeneralRe: CheckBoxList Pin
Xmen Real 8-Dec-07 16:41
professional Xmen Real 8-Dec-07 16:41 
GeneralCheck multiple rows in datagridview without losing selection Pin
Hynkar8-Dec-07 7:46
Hynkar8-Dec-07 7:46 
QuestionClass Libraries Pin
Poolee8-Dec-07 7:30
Poolee8-Dec-07 7:30 

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.