Click here to Skip to main content
16,010,392 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Based on month all dates want to display datagrid... Pin
N a v a n e e t h13-Mar-07 23:12
N a v a n e e t h13-Mar-07 23:12 
QuestionSpell check utility in win forms with text editor Pin
Pushpa Setty13-Mar-07 18:17
Pushpa Setty13-Mar-07 18:17 
AnswerRe: Spell check utility in win forms with text editor Pin
Dmitry Khudorozhkov13-Mar-07 22:30
Dmitry Khudorozhkov13-Mar-07 22:30 
QuestionScrabble Pin
HardeepKaur13-Mar-07 15:54
HardeepKaur13-Mar-07 15:54 
AnswerRe: Scrabble Pin
TwoFaced13-Mar-07 16:49
TwoFaced13-Mar-07 16:49 
GeneralRe: Scrabble [modified] Pin
TwoFaced14-Mar-07 17:54
TwoFaced14-Mar-07 17:54 
GeneralRe: Scrabble Pin
HardeepKaur15-Mar-07 11:51
HardeepKaur15-Mar-07 11:51 
GeneralRe: Scrabble Pin
TwoFaced15-Mar-07 19:10
TwoFaced15-Mar-07 19:10 
I would create a Tile class. It would probably make sense to inherit from picturebox again. A tile has two important properties
1) It's value
2) It's letter

The class could take the letter and value in the constructor. The image to use could be determined by the letter passed. A captitol 'A' has a ascii value of 65 and corrisponds to Tile001.jpg. So to figure out which image to use you could get the ascii value of the letter passed, for example ASC(letter) and subtract 64. You can then construct a string that matches the appropriate image name and set the image for the picturebox.

To place it on the board you could iterate through your 'Tiles' in the rack and test if the letter is the letter needed. If it is you could move it onto the board by adding the Tile object to the control collection of the appropriate square.
GeneralRe: Scrabble Pin
HardeepKaur16-Mar-07 5:46
HardeepKaur16-Mar-07 5:46 
GeneralRe: Scrabble Pin
TwoFaced16-Mar-07 6:49
TwoFaced16-Mar-07 6:49 
GeneralRe: Scrabble Pin
HardeepKaur16-Mar-07 11:24
HardeepKaur16-Mar-07 11:24 
GeneralRe: Scrabble Pin
TwoFaced16-Mar-07 14:15
TwoFaced16-Mar-07 14:15 
GeneralRe: Scrabble Pin
HardeepKaur17-Mar-07 5:16
HardeepKaur17-Mar-07 5:16 
QuestionLooking to show off your skills ?? Pin
al96813-Mar-07 12:06
al96813-Mar-07 12:06 
AnswerRe: Looking to show off your skills ?? Pin
CPallini13-Mar-07 12:36
mveCPallini13-Mar-07 12:36 
AnswerRe: Looking to show off your skills ?? Pin
Dave Kreskowiak13-Mar-07 14:22
mveDave Kreskowiak13-Mar-07 14:22 
QuestionVB 6 to VB.NET question Do While Not EOF equivalent Pin
aro198113-Mar-07 11:09
aro198113-Mar-07 11:09 
AnswerRe: VB 6 to VB.NET question Do While Not EOF equivalent Pin
TwoFaced13-Mar-07 11:59
TwoFaced13-Mar-07 11:59 
QuestionNoughts and Crosses Pin
Anybloodyid13-Mar-07 9:30
Anybloodyid13-Mar-07 9:30 
AnswerRe: Noughts and Crosses Pin
Marcus J. Smith13-Mar-07 10:33
professionalMarcus J. Smith13-Mar-07 10:33 
GeneralRe: Noughts and Crosses Pin
Anybloodyid13-Mar-07 12:17
Anybloodyid13-Mar-07 12:17 
QuestionHow I can connect VB.net to SQL Server 2005 Express? Pin
ATC13-Mar-07 8:55
ATC13-Mar-07 8:55 
AnswerRe: How I can connect VB.net to SQL Server 2005 Express? Pin
Harini N K13-Mar-07 19:54
Harini N K13-Mar-07 19:54 
GeneralRe: How I can connect VB.net to SQL Server 2005 Express? Pin
ATC14-Mar-07 9:14
ATC14-Mar-07 9:14 
QuestionScreenSaver's child process dies a-borning Pin
jim_taylor13-Mar-07 8:50
jim_taylor13-Mar-07 8:50 

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.