Click here to Skip to main content
15,892,746 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to drawing text that can rotate in Tao.OpenGL Pin
Luc Pattyn4-Jan-12 2:07
sitebuilderLuc Pattyn4-Jan-12 2:07 
QuestionGet Windows Icons For Devices Pin
Kevin Marois3-Jan-12 13:05
professionalKevin Marois3-Jan-12 13:05 
AnswerRe: Get Windows Icons For Devices Pin
Richard Andrew x643-Jan-12 16:46
professionalRichard Andrew x643-Jan-12 16:46 
QuestionFill datagridview cell with color Pin
perry593-Jan-12 10:04
perry593-Jan-12 10:04 
AnswerRe: Fill datagridview cell with color Pin
Luc Pattyn3-Jan-12 10:37
sitebuilderLuc Pattyn3-Jan-12 10:37 
GeneralRe: Fill datagridview cell with color Pin
MahaKh4-Jan-12 4:01
MahaKh4-Jan-12 4:01 
AnswerRe: Fill datagridview cell with color Pin
Luc Pattyn4-Jan-12 4:03
sitebuilderLuc Pattyn4-Jan-12 4:03 
AnswerRe: Fill datagridview cell with color Pin
perry594-Jan-12 9:00
perry594-Jan-12 9:00 
QuestionAlternative to using a string as a key? Pin
venomation3-Jan-12 9:11
venomation3-Jan-12 9:11 
AnswerRe: Alternative to using a string as a key? Pin
Luc Pattyn3-Jan-12 9:23
sitebuilderLuc Pattyn3-Jan-12 9:23 
GeneralRe: Alternative to using a string as a key? Pin
venomation3-Jan-12 9:25
venomation3-Jan-12 9:25 
GeneralRe: Alternative to using a string as a key? Pin
SledgeHammer013-Jan-12 9:48
SledgeHammer013-Jan-12 9:48 
AnswerRe: Alternative to using a string as a key? Pin
Luc Pattyn3-Jan-12 10:38
sitebuilderLuc Pattyn3-Jan-12 10:38 
GeneralRe: Alternative to using a string as a key? Pin
SledgeHammer013-Jan-12 12:15
SledgeHammer013-Jan-12 12:15 
AnswerRe: Alternative to using a string as a key? Pin
jschell3-Jan-12 10:40
jschell3-Jan-12 10:40 
GeneralRe: Alternative to using a string as a key? Pin
venomation3-Jan-12 11:01
venomation3-Jan-12 11:01 
GeneralRe: Alternative to using a string as a key? Pin
jschell4-Jan-12 8:12
jschell4-Jan-12 8:12 
GeneralRe: Alternative to using a string as a key? Pin
SledgeHammer014-Jan-12 9:26
SledgeHammer014-Jan-12 9:26 
GeneralRe: Alternative to using a string as a key? Pin
jschell6-Jan-12 8:29
jschell6-Jan-12 8:29 
SledgeHammer01 wrote:
Its generally not a good idea to use strings as keys to get components like that. My boss is a notorious mispeller. Do you really want to spend time tracking down why your app doesn't work because somebody spelled it "scren" in 3 out of 100 places? GUIDs as I suggested earlier actually wouldn't be AS prone. Why? I'd probably type in "screen" myself because I can do that faster then copy & pasting from somewhere. With a GUID? I'm not going to type that in. Thats going to be a strict c&p.


I would suggest unit testing and system testing to solve that problem. Additionally that also solves the problem where they typed in "alternativeScreen" (a valid component) when it should have been "screen" (also valid.)

And myself I would be opposed to using a guid because that means that to figure out what component instance is in use one would need to look it up every time.

However depending on the actual requirements I would probably use a generated enumeration.
AnswerRe: Alternative to using a string as a key? Pin
Shameel3-Jan-12 16:22
professionalShameel3-Jan-12 16:22 
AnswerRe: Alternative to using a string as a key? Pin
BillWoodruff3-Jan-12 19:28
professionalBillWoodruff3-Jan-12 19:28 
AnswerRe: Alternative to using a string as a key? Pin
V.3-Jan-12 20:34
professionalV.3-Jan-12 20:34 
AnswerRe: Alternative to using a string as a key? Pin
Subin Mavunkal4-Jan-12 18:06
Subin Mavunkal4-Jan-12 18:06 
Questionhow to take a table name from a text box! Pin
mpvkrishnadhar3-Jan-12 7:39
mpvkrishnadhar3-Jan-12 7:39 
AnswerRe: how to take a table name from a text box! Pin
PIEBALDconsult3-Jan-12 7:43
mvePIEBALDconsult3-Jan-12 7:43 

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.