Click here to Skip to main content
15,890,717 members
Home / Discussions / C#
   

C#

 
Questionhow to get x,y coordinates when drawing rectangle on the picture box Pin
ash_ng17-Oct-10 19:37
ash_ng17-Oct-10 19:37 
AnswerRe: how to get x,y coordinates when drawing rectangle on the picture box Pin
Khaniya17-Oct-10 20:33
professionalKhaniya17-Oct-10 20:33 
AnswerRe: how to get x,y coordinates when drawing rectangle on the picture box Pin
johannesnestler19-Oct-10 4:14
johannesnestler19-Oct-10 4:14 
QuestionSQL Backing up with SMO & C# ? Pin
Mohammad Dayyan17-Oct-10 4:49
Mohammad Dayyan17-Oct-10 4:49 
AnswerRe: SQL Backing up with SMO & C# ? Pin
Ravi Bhavnani17-Oct-10 6:01
professionalRavi Bhavnani17-Oct-10 6:01 
GeneralRe: SQL Backing up with SMO & C# ? Pin
Mohammad Dayyan7-Nov-10 2:20
Mohammad Dayyan7-Nov-10 2:20 
AnswerRe: SQL Backing up with SMO & C# ? Pin
Luc Pattyn17-Oct-10 6:38
sitebuilderLuc Pattyn17-Oct-10 6:38 
QuestionA good way to store this information? Pin
stephen.darling16-Oct-10 12:33
stephen.darling16-Oct-10 12:33 
Hello.

I need to look after a number of elements in the periodic chemistry, with their values, eg:

Na = 23
O = 16
H = 1

etc.

I will have an input box, where someone could input a molecular structure using a formula, for example.

NaOH

My program would then total the individual atomic values for that structure, so the above would be 40.

My question is, should I store my periodic table like the following:

const int Na = 23
const int O = 16

etc

Or should I create an enum, or would there be a better method I have overlooked?

Thank you
Steve
AnswerRe: A good way to store this information? Pin
Mycroft Holmes16-Oct-10 12:41
professionalMycroft Holmes16-Oct-10 12:41 
GeneralRe: A good way to store this information? Pin
OriginalGriff16-Oct-10 22:07
mveOriginalGriff16-Oct-10 22:07 
GeneralRe: A good way to store this information? Pin
PIEBALDconsult17-Oct-10 13:27
mvePIEBALDconsult17-Oct-10 13:27 
AnswerRe: A good way to store this information? PinPopular
Luc Pattyn16-Oct-10 13:24
sitebuilderLuc Pattyn16-Oct-10 13:24 
GeneralRe: A good way to store this information? Pin
Keith Barrow17-Oct-10 4:58
professionalKeith Barrow17-Oct-10 4:58 
GeneralRe: A good way to store this information? Pin
stephen.darling17-Oct-10 10:29
stephen.darling17-Oct-10 10:29 
AnswerRe: A good way to store this information? Pin
PIEBALDconsult17-Oct-10 13:26
mvePIEBALDconsult17-Oct-10 13:26 
GeneralRe: A good way to store this information? Pin
stephen.darling17-Oct-10 15:05
stephen.darling17-Oct-10 15:05 
GeneralRe: A good way to store this information? Pin
PIEBALDconsult17-Oct-10 15:12
mvePIEBALDconsult17-Oct-10 15:12 
GeneralRe: A good way to store this information? Pin
stephen.darling18-Oct-10 5:00
stephen.darling18-Oct-10 5:00 
AnswerRe: A good way to store this information? Pin
W Balboos, GHB20-Oct-10 1:29
W Balboos, GHB20-Oct-10 1:29 
GeneralRe: A good way to store this information? Pin
stephen.darling20-Oct-10 7:40
stephen.darling20-Oct-10 7:40 
QuestionDynamic array of PictureBoxes with scroll-bars? Pin
DaveGriffith15-Oct-10 15:59
DaveGriffith15-Oct-10 15:59 
AnswerRe: Dynamic array of PictureBoxes with scroll-bars? Pin
Luc Pattyn15-Oct-10 17:27
sitebuilderLuc Pattyn15-Oct-10 17:27 
AnswerRe: Dynamic array of PictureBoxes with scroll-bars? Pin
DaveGriffith17-Oct-10 10:33
DaveGriffith17-Oct-10 10:33 
GeneralRe: Dynamic array of PictureBoxes with scroll-bars? Pin
Luc Pattyn17-Oct-10 10:41
sitebuilderLuc Pattyn17-Oct-10 10:41 
GeneralRe: Dynamic array of PictureBoxes with scroll-bars? Pin
forkus200024-Oct-10 19:15
forkus200024-Oct-10 19:15 

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.