Click here to Skip to main content
15,900,108 members
Home / Discussions / C#
   

C#

 
Question[Message Deleted] Pin
albCode20-Feb-06 6:44
albCode20-Feb-06 6:44 
AnswerRe: Run EXE File Pin
Dave Kreskowiak20-Feb-06 7:17
mveDave Kreskowiak20-Feb-06 7:17 
GeneralRe: Run EXE File Pin
albCode20-Feb-06 7:33
albCode20-Feb-06 7:33 
GeneralRe: Run EXE File Pin
Alvaro Mendez20-Feb-06 8:21
Alvaro Mendez20-Feb-06 8:21 
GeneralRe: Run EXE File Pin
Dave Kreskowiak20-Feb-06 8:54
mveDave Kreskowiak20-Feb-06 8:54 
GeneralRe: Run EXE File Pin
Judah Gabriel Himango20-Feb-06 8:59
sponsorJudah Gabriel Himango20-Feb-06 8:59 
GeneralRe: Run EXE File Pin
Dave Kreskowiak20-Feb-06 9:49
mveDave Kreskowiak20-Feb-06 9:49 
QuestionCondensing Constructer Code... Pin
#coder0520-Feb-06 6:43
#coder0520-Feb-06 6:43 
Hi,
I am writing an application that solves sudoku puzzles (you can learn sudoku at www.websudoku.com if you dont already know it). Although it works, there are a couple of things I would like to do and dont know how to.

1. I have 81 text boxes for each cell in the 9x9 puzzle. SharpDevelop (www.icsharpcode.com) generated constructer code for each one (2000 lines!) Is there any way, since the code is mostly identical for all of them, I can define them all at once, in a loop? It would save a lot of space, and make the code neater.


// <br />
// cell32<br />
// <br />
this.cell32.BackColor = System.Drawing.Color.PaleGreen;<br />
this.cell32.DetectUrls = false;<br />
this.cell32.Font = new System.Drawing.Font("Courier New", 6.65F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));<br />
this.cell32.Location = new System.Drawing.Point(44, 128);<br />
this.cell32.MaxLength = 1;<br />
this.cell32.Name = "cell32";<br />
this.cell32.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;<br />
this.cell32.Size = new System.Drawing.Size(40, 40);<br />
this.cell32.TabIndex = 29;<br />
this.cell32.Text = " 1 2 3\n 4 5 6\n 7 8 9";<br />
this.cell32.WordWrap = false;<br />
this.cell32.Leave += new System.EventHandler(this.CellLeave);<br />
this.cell32.TextChanged += new System.EventHandler(this.CellTextChanged);<br />
this.cell32.Enter += new System.EventHandler(this.CellEnter);


Obviously, the cells' Names are different, as are their Locations, and their TabIndexs



2. This is probably a stupid question. Every time I run the program, the command line appears. This does not need to happen, right? Why does it, and how can I make it not happen? I've made other apps which dont do it.


You can get the app and the source (if youre really that interested) at...
http://wilmington-web.net/sudoku/


Thanks for all your (prompt) help.Smile | :) Smile | :)

I have gone to find myself. If I come back before I return, please keep me here.
AnswerRe: Condensing Constructer Code... Pin
BlackDice20-Feb-06 7:28
BlackDice20-Feb-06 7:28 
AnswerRe: Condensing Constructer Code... Pin
S. Senthil Kumar20-Feb-06 7:55
S. Senthil Kumar20-Feb-06 7:55 
GeneralRe: Condensing Constructer Code... Pin
#coder0521-Feb-06 11:52
#coder0521-Feb-06 11:52 
QuestionVideo Player codec, whats next? Pin
ChevyVanDude20-Feb-06 6:29
ChevyVanDude20-Feb-06 6:29 
QuestionMoron of the day award... Pin
Ravi Bhavnani20-Feb-06 6:09
professionalRavi Bhavnani20-Feb-06 6:09 
AnswerSolution Pin
Ravi Bhavnani20-Feb-06 6:22
professionalRavi Bhavnani20-Feb-06 6:22 
AnswerRe: Moron of the day award... Pin
malharone20-Feb-06 6:23
malharone20-Feb-06 6:23 
GeneralRe: Moron of the day award... Pin
Ravi Bhavnani20-Feb-06 6:29
professionalRavi Bhavnani20-Feb-06 6:29 
AnswerRe: Moron of the day award... Pin
leppie20-Feb-06 10:53
leppie20-Feb-06 10:53 
QuestionWeb service Pin
magnifique20-Feb-06 5:45
magnifique20-Feb-06 5:45 
QuestionNameValueCollection or HashTable Pin
student_rhr20-Feb-06 5:34
student_rhr20-Feb-06 5:34 
GeneralRe: NameValueCollection or HashTable Pin
Guffa20-Feb-06 7:04
Guffa20-Feb-06 7:04 
AnswerRe: NameValueCollection or HashTable Pin
NatLang20-Feb-06 9:12
NatLang20-Feb-06 9:12 
AnswerRe: NameValueCollection or HashTable Pin
leppie20-Feb-06 10:57
leppie20-Feb-06 10:57 
QuestionDesign Strategy Question Pin
gantww20-Feb-06 5:28
gantww20-Feb-06 5:28 
AnswerRe: Design Strategy Question Pin
Alvaro Mendez20-Feb-06 6:34
Alvaro Mendez20-Feb-06 6:34 
GeneralRe: Design Strategy Question Pin
gantww20-Feb-06 7:35
gantww20-Feb-06 7:35 

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.