Click here to Skip to main content
15,908,843 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: process not starting on x64 bit OS Pin
Richard MacCutchan24-Aug-11 6:11
mveRichard MacCutchan24-Aug-11 6:11 
AnswerRe: process not starting on x64 bit OS Pin
Dalek Dave24-Aug-11 23:39
professionalDalek Dave24-Aug-11 23:39 
QuestionForm in SplitContainer Pin
daemonsead200823-Aug-11 22:48
daemonsead200823-Aug-11 22:48 
AnswerRe: Form in SplitContainer Pin
Dave Kreskowiak24-Aug-11 3:40
mveDave Kreskowiak24-Aug-11 3:40 
QuestionFontProblem Pin
JR21223-Aug-11 21:30
JR21223-Aug-11 21:30 
AnswerRe: FontProblem Pin
Dave Kreskowiak24-Aug-11 3:59
mveDave Kreskowiak24-Aug-11 3:59 
GeneralRe: FontProblem Pin
JR21224-Aug-11 4:54
JR21224-Aug-11 4:54 
GeneralRe: FontProblem Pin
Dave Kreskowiak25-Aug-11 7:03
mveDave Kreskowiak25-Aug-11 7:03 
The logic in your posted code doesn't make much sense. I suggest rewriting it to seperate functionality.

The biggest problem I see is that your logic missed cases, like Settings.ChessFont being an invalid font name, or if Settings.ChessFont is empty (use String.Empty instead of "") or null, you go into a second If statement unneccessarily. The comparison you're making in this second If also doesn't amke sense and is completely unneccessary.

If should be if the Settings.ChessFont is empty, or is an invalid name, default to a known font family name.

The first thing I would do is move the code that loads the font family name from settings to its own method. This method would have to load the setting from wherever, then VERIFY that the family name exists in the available fonts, both system and/or in the private collection, then return that name.

QuestionMultiple datasource on rdlc in asp.net Pin
C#Coudou23-Aug-11 20:13
C#Coudou23-Aug-11 20:13 
Questiongroup by years Pin
sorin_zan23-Aug-11 7:58
sorin_zan23-Aug-11 7:58 
AnswerRe: group by years Pin
Dave Kreskowiak23-Aug-11 10:48
mveDave Kreskowiak23-Aug-11 10:48 
AnswerRe: group by years Pin
Dalek Dave23-Aug-11 11:21
professionalDalek Dave23-Aug-11 11:21 
AnswerRe: group by years Pin
Shahan Ayyub23-Aug-11 14:09
Shahan Ayyub23-Aug-11 14:09 
AnswerRe: group by years Pin
Luc Pattyn23-Aug-11 16:54
sitebuilderLuc Pattyn23-Aug-11 16:54 
GeneralRe: group by years Pin
sorin_zan23-Aug-11 20:11
sorin_zan23-Aug-11 20:11 
AnswerRe: group by years [modified] Pin
Luc Pattyn23-Aug-11 17:00
sitebuilderLuc Pattyn23-Aug-11 17:00 
GeneralRe: group by years Pin
sorin_zan23-Aug-11 19:38
sorin_zan23-Aug-11 19:38 
GeneralRe: group by years Pin
Shahan Ayyub24-Aug-11 5:59
Shahan Ayyub24-Aug-11 5:59 
GeneralRe: group by years Pin
sorin_zan24-Aug-11 7:17
sorin_zan24-Aug-11 7:17 
QuestionRe: group by years Pin
Shahan Ayyub24-Aug-11 21:52
Shahan Ayyub24-Aug-11 21:52 
AnswerRe: group by years Pin
sorin_zan25-Aug-11 0:26
sorin_zan25-Aug-11 0:26 
GeneralRe: group by years Pin
sorin_zan23-Aug-11 20:09
sorin_zan23-Aug-11 20:09 
GeneralRe: group by years Pin
sorin_zan23-Aug-11 21:10
sorin_zan23-Aug-11 21:10 
Questionplease help me how to fix this program this is a calculator in vb6.0 Pin
VBBeginerGSM22-Aug-11 3:26
VBBeginerGSM22-Aug-11 3:26 
AnswerRe: please help me how to fix this program this is a calculator in vb6.0 Pin
Simon_Whale22-Aug-11 3:27
Simon_Whale22-Aug-11 3:27 

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.