By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,312 Members | 1,323 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,312 IT Pros & Developers. It's quick & easy.

simple code hopefully??

P: n/a
I am brand new to this programming especially C#. I am confused (at the
moment). I have bought two books to get started to learn C# language and
Visual C#.net 2003 in 24 hours. Which is the best to learn the straight
language or the VS techniques??? I am using VS2005 team suite, but have come
to a halt as confused think I am jumping ahead too quickly. I have done a
lovely form for my PDA but is useless as does not do anything, would like
some suggestion for code. I have a form with one button and three text
boxes. The aim is to put a value into box one and a value into box two and
after press button (calculate) and answer is given is a simple division
between value one and two and out put goes into box 3. I have tried to find
examples in my book but get more confused, can someone help with code??

Cheers
Barry
Nov 17 '05 #1
Share this Question
Share on Google+
13 Replies


P: n/a
There are many great books on C# - too many to cite a best. Here's one of my
favorite 2.0 books though.
http://shrinkster.com/8mu

As far as PDA development, check out www.devbuzz.com , www.opennetcf.org and
www.knowdotnet.com all of them have some good resources in CF development
and if I can be of any help, please don't hesitate to ask. With respect to
your app, I can gladly send you the code to do what you want, is that all yo
uneeded though?
"tindog" <ti****@tpg.com.au> wrote in message
news:43******@dnews.tpgi.com.au...
I am brand new to this programming especially C#. I am confused (at the
moment). I have bought two books to get started to learn C# language and
Visual C#.net 2003 in 24 hours. Which is the best to learn the straight
language or the VS techniques??? I am using VS2005 team suite, but have
come to a halt as confused think I am jumping ahead too quickly. I have
done a lovely form for my PDA but is useless as does not do anything, would
like some suggestion for code. I have a form with one button and three text
boxes. The aim is to put a value into box one and a value into box two and
after press button (calculate) and answer is given is a simple division
between value one and two and out put goes into box 3. I have tried to find
examples in my book but get more confused, can someone help with code??

Cheers
Barry

Nov 17 '05 #2

P: n/a
Thanks for prompt reply. Simple code is all I need at the moment this may
give me assistance in conjunction with your references. If I want to expand
form eg put in another box and combine formulas etc. I am a Registered Nurse
and am trying to do simple drug calcs (can do it manually or with a
calculator) but got ahead of myself and decided to design something quite
useless without associated code. Thanks again for advice.

"W.G. Ryan - MVP" <Wi*********@nospam.gmail.com> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
There are many great books on C# - too many to cite a best. Here's one of
my favorite 2.0 books though.
http://shrinkster.com/8mu

As far as PDA development, check out www.devbuzz.com , www.opennetcf.org
and www.knowdotnet.com all of them have some good resources in CF
development and if I can be of any help, please don't hesitate to ask.
With respect to your app, I can gladly send you the code to do what you
want, is that all yo uneeded though?
"tindog" <ti****@tpg.com.au> wrote in message
news:43******@dnews.tpgi.com.au...
I am brand new to this programming especially C#. I am confused (at the
moment). I have bought two books to get started to learn C# language and
Visual C#.net 2003 in 24 hours. Which is the best to learn the straight
language or the VS techniques??? I am using VS2005 team suite, but have
come to a halt as confused think I am jumping ahead too quickly. I have
done a lovely form for my PDA but is useless as does not do anything,
would like some suggestion for code. I have a form with one button and
three text boxes. The aim is to put a value into box one and a value into
box two and after press button (calculate) and answer is given is a simple
division between value one and two and out put goes into box 3. I have
tried to find examples in my book but get more confused, can someone help
with code??

Cheers
Barry


Nov 17 '05 #3

P: n/a
Good advise also.
Cheers
Barry
"Carpet Crawler" <ca****@crawler.net> wrote in message
news:eT***************@TK2MSFTNGP15.phx.gbl...
tindog wrote:
I am brand new to this programming especially C#. I am confused (at
the moment). I have bought two books to get started to learn C#
language and Visual C#.net 2003 in 24 hours. Which is the best to
learn the straight language or the VS techniques??? I am using
VS2005 team suite, but have come to a halt as confused think I am
jumping ahead too quickly. I have done a lovely form for my PDA but
is useless as does not do anything, would like some suggestion for
code. I have a form with one button and three text boxes. The aim is
to put a value into box one and a value into box two and after press
button (calculate) and answer is given is a simple division between
value one and two and out put goes into box 3. I have tried to find
examples in my book but get more confused, can someone help with
code??

Cheers
Barry


Ha ha - yeah it's easy to create a window or a dialogue box - but the
cruncher is that it doesn't really do anything. If you are interesting in
C#, learn the language. If it is a 24 hr book they probably will walk you
step-by-step through some IDE [probably Visual Studio] anyway. But you
have
to learn a language to use these IDEs .. learning the IDE comes as you
write
out the program examples in the books. Jump in.

Nov 17 '05 #4

P: n/a
Barry,

Personally, I don't think those 24-hour books (or 21-day books) are
worth beans. If I were you I'd get O'Reilly's Learning C#, Programming
C#, and their C# Cookbook. Those three are pretty much all you'll need
for the next year or so. I have them all and they're all worth it.
Read Learning C# from front to back like a book, and you'll have a great
start.

You should also learn what you can about Object Orientation, if you
don't know about objects already. There are probably some OO books out
there that use Java in their examples, but those should be fine since
Java and C# use almost exactly the same syntax style. OO is a
fundamental concept, and once you understand that, C# (and Java) will
become much easier.

--
jeremiah();

tindog wrote:
I am brand new to this programming especially C#. I am confused (at the
moment). I have bought two books to get started to learn C# language and
Visual C#.net 2003 in 24 hours. Which is the best to learn the straight
language or the VS techniques??? I am using VS2005 team suite, but have come
to a halt as confused think I am jumping ahead too quickly. I have done a
lovely form for my PDA but is useless as does not do anything, would like
some suggestion for code. I have a form with one button and three text
boxes. The aim is to put a value into box one and a value into box two and
after press button (calculate) and answer is given is a simple division
between value one and two and out put goes into box 3. I have tried to find
examples in my book but get more confused, can someone help with code??

Cheers
Barry

Nov 17 '05 #5

P: n/a
"tindog" <ti****@tpg.com.au> wrote in message
news:43******@dnews.tpgi.com.au...
I am brand new to this programming especially C#. I am confused (at the
moment). I have bought two books to get started to learn C# language and
Visual C#.net 2003 in 24 hours. Which is the best to learn the straight
language or the VS techniques??? I am using VS2005 team suite, but have
come to a halt as confused think I am jumping ahead too quickly. I have
done a lovely form for my PDA but is useless as does not do anything, would
like some suggestion for code. I have a form with one button and three text
boxes. The aim is to put a value into box one and a value into box two and
after press button (calculate) and answer is given is a simple division
between value one and two and out put goes into box 3. I have tried to find
examples in my book but get more confused, can someone help with code??

Cheers
Barry


The advice the others have given you is teh correct advice, but just do you
can get your form working ...

double d1 = double.Parse(textbox1.Text);
double d2 = double.Parse(textbox2.Text);

textbox3.Text = (d1 / d2).ToString();

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
Nov 17 '05 #6

P: n/a
some sound advice thanks I will look into them as I certainly am very
interested in C# and programming for fun.

Barry
"jeremiah johnson" <us**@example.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Barry,

Personally, I don't think those 24-hour books (or 21-day books) are worth
beans. If I were you I'd get O'Reilly's Learning C#, Programming C#, and
their C# Cookbook. Those three are pretty much all you'll need for the
next year or so. I have them all and they're all worth it. Read Learning
C# from front to back like a book, and you'll have a great start.

You should also learn what you can about Object Orientation, if you don't
know about objects already. There are probably some OO books out there
that use Java in their examples, but those should be fine since Java and
C# use almost exactly the same syntax style. OO is a fundamental concept,
and once you understand that, C# (and Java) will become much easier.

--
jeremiah();

tindog wrote:
I am brand new to this programming especially C#. I am confused (at the
moment). I have bought two books to get started to learn C# language and
Visual C#.net 2003 in 24 hours. Which is the best to learn the straight
language or the VS techniques??? I am using VS2005 team suite, but have
come to a halt as confused think I am jumping ahead too quickly. I have
done a lovely form for my PDA but is useless as does not do anything,
would like some suggestion for code. I have a form with one button and
three text boxes. The aim is to put a value into box one and a value into
box two and after press button (calculate) and answer is given is a
simple division between value one and two and out put goes into box 3. I
have tried to find examples in my book but get more confused, can someone
help with code??

Cheers
Barry

Nov 17 '05 #7

P: n/a
tindog wrote:
some sound advice thanks I will look into them as I certainly am very
interested in C# and programming for fun.


If you're *that* new (like I am) you should read Programming in the Key
of C# by Charles Petzold as your first book. It's amazing, and it's
ideal for anyone who really needs C# explained from the ground up. I
read it first, and then it made all the other books so much clearer than
they would have been otherwise (Programming C#, Murach's C#, etc. etc.)
Nov 17 '05 #8

P: n/a
Thank you for code Richard,
Now I really am going to show my ignorance
double d1 = double.Parse(textbox1.Text); \\ goes inbetween braces in texbox1
code??.
double d2 code goes in textbox2 between braces??
and code showing formula goes in text box three between braces thus doing
away with the calc button?? I have purposely left designations as textbox1
etc. so titles are not wrong but when debug is used comes back with name d1
does not exist nor d2 name does not exist.
Barry

"Richard Blewett [DevelopMentor]" <richard at nospam dotnetconsult dot co
dot uk> wrote in message news:u8*************@TK2MSFTNGP12.phx.gbl...
"tindog" <ti****@tpg.com.au> wrote in message
news:43******@dnews.tpgi.com.au...
I am brand new to this programming especially C#. I am confused (at the
moment). I have bought two books to get started to learn C# language and
Visual C#.net 2003 in 24 hours. Which is the best to learn the straight
language or the VS techniques??? I am using VS2005 team suite, but have
come to a halt as confused think I am jumping ahead too quickly. I have
done a lovely form for my PDA but is useless as does not do anything,
would like some suggestion for code. I have a form with one button and
three text boxes. The aim is to put a value into box one and a value into
box two and after press button (calculate) and answer is given is a simple
division between value one and two and out put goes into box 3. I have
tried to find examples in my book but get more confused, can someone help
with code??

Cheers
Barry


The advice the others have given you is teh correct advice, but just do
you can get your form working ...

double d1 = double.Parse(textbox1.Text);
double d2 = double.Parse(textbox2.Text);

textbox3.Text = (d1 / d2).ToString();

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Nov 17 '05 #9

P: n/a
John,
Yes I am That New. I will check out a review sound like a good answer. I
definately am having trouble with learn C# in "21 Days or 24 Hour formats"

Barry

"John Salerno" <jo******@NOSPAMgmail.com> wrote in message
news:RJ********************@rcn.net...
tindog wrote:
some sound advice thanks I will look into them as I certainly am very
interested in C# and programming for fun.


If you're *that* new (like I am) you should read Programming in the Key of
C# by Charles Petzold as your first book. It's amazing, and it's ideal for
anyone who really needs C# explained from the ground up. I read it first,
and then it made all the other books so much clearer than they would have
been otherwise (Programming C#, Murach's C#, etc. etc.)

Nov 17 '05 #10

P: n/a
John,
Was that title as you stated and second part was A PRIMER FOR ASPIRING
PROGRAMMERS??? If it is I will order through Angus and Robertson here in
Australia (Says has a backlog so may be a while before I can get it)....

"tindog" <ti****@tpg.com.au> wrote in message
news:43******@dnews.tpgi.com.au...
John,
Yes I am That New. I will check out a review sound like a good answer. I
definately am having trouble with learn C# in "21 Days or 24 Hour formats"

Barry

"John Salerno" <jo******@NOSPAMgmail.com> wrote in message
news:RJ********************@rcn.net...
tindog wrote:
some sound advice thanks I will look into them as I certainly am very
interested in C# and programming for fun.


If you're *that* new (like I am) you should read Programming in the Key
of C# by Charles Petzold as your first book. It's amazing, and it's ideal
for anyone who really needs C# explained from the ground up. I read it
first, and then it made all the other books so much clearer than they
would have been otherwise (Programming C#, Murach's C#, etc. etc.)


Nov 17 '05 #11

P: n/a
tindog wrote:
John,
Was that title as you stated and second part was A PRIMER FOR ASPIRING
PROGRAMMERS??? If it is I will order through Angus and Robertson here in
Australia (Says has a backlog so may be a while before I can get it)....


Yes, that's the full title. Definitely get it, you'll learn so much! I
sure did!
Nov 17 '05 #12

P: n/a
"tindog" <ti****@tpg.com.au> wrote in message
news:43******@dnews.tpgi.com.au...
Thank you for code Richard,
Now I really am going to show my ignorance
double d1 = double.Parse(textbox1.Text); \\ goes inbetween braces in
texbox1 code??.
double d2 code goes in textbox2 between braces??
and code showing formula goes in text box three between braces thus doing
away with the calc button?? I have purposely left designations as textbox1
etc. so titles are not wrong but when debug is used comes back with name
d1 does not exist nor d2 name does not exist.
Barry

"Richard Blewett [DevelopMentor]" <richard at nospam dotnetconsult dot co
dot uk> wrote in message news:u8*************@TK2MSFTNGP12.phx.gbl...
"tindog" <ti****@tpg.com.au> wrote in message
news:43******@dnews.tpgi.com.au...
I am brand new to this programming especially C#. I am confused (at the
moment). I have bought two books to get started to learn C# language and
Visual C#.net 2003 in 24 hours. Which is the best to learn the straight
language or the VS techniques??? I am using VS2005 team suite, but have
come to a halt as confused think I am jumping ahead too quickly. I have
done a lovely form for my PDA but is useless as does not do anything,
would like some suggestion for code. I have a form with one button and
three text boxes. The aim is to put a value into box one and a value into
box two and after press button (calculate) and answer is given is a
simple division between value one and two and out put goes into box 3. I
have tried to find examples in my book but get more confused, can someone
help with code??

Cheers
Barry


The advice the others have given you is teh correct advice, but just do
you can get your form working ...

double d1 = double.Parse(textbox1.Text);
double d2 = double.Parse(textbox2.Text);

textbox3.Text = (d1 / d2).ToString();

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk


No, all the code goes in the button click event handler (the code you want
to execute when you click the button).

Regards

Richard Blewett - DevelopMentor http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
Nov 17 '05 #13

P: n/a
Thank you Richard (very much),
All worked out okay with your guidance I have even added a few more
parameters for more complex calculations. I definately will be reading some
of the easy follow programming books that have been mentioned to me plus
websites.

Cheers
Barry (avid follower of this newsgroup)
Long live C#

"Richard Blewett [DevelopMentor]" <richard at nospam dotnetconsult dot co
dot uk> wrote in message news:em*************@tk2msftngp13.phx.gbl...
"tindog" <ti****@tpg.com.au> wrote in message
news:43******@dnews.tpgi.com.au...
Thank you for code Richard,
Now I really am going to show my ignorance
double d1 = double.Parse(textbox1.Text); \\ goes inbetween braces in
texbox1 code??.
double d2 code goes in textbox2 between braces??
and code showing formula goes in text box three between braces thus doing
away with the calc button?? I have purposely left designations as
textbox1 etc. so titles are not wrong but when debug is used comes back
with name d1 does not exist nor d2 name does not exist.
Barry

"Richard Blewett [DevelopMentor]" <richard at nospam dotnetconsult dot co
dot uk> wrote in message news:u8*************@TK2MSFTNGP12.phx.gbl...
"tindog" <ti****@tpg.com.au> wrote in message
news:43******@dnews.tpgi.com.au...
I am brand new to this programming especially C#. I am confused (at the
moment). I have bought two books to get started to learn C# language and
Visual C#.net 2003 in 24 hours. Which is the best to learn the straight
language or the VS techniques??? I am using VS2005 team suite, but have
come to a halt as confused think I am jumping ahead too quickly. I have
done a lovely form for my PDA but is useless as does not do anything,
would like some suggestion for code. I have a form with one button and
three text boxes. The aim is to put a value into box one and a value
into box two and after press button (calculate) and answer is given is a
simple division between value one and two and out put goes into box 3. I
have tried to find examples in my book but get more confused, can
someone help with code??

Cheers
Barry
The advice the others have given you is teh correct advice, but just do
you can get your form working ...

double d1 = double.Parse(textbox1.Text);
double d2 = double.Parse(textbox2.Text);

textbox3.Text = (d1 / d2).ToString();

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk


No, all the code goes in the button click event handler (the code you want
to execute when you click the button).

Regards

Richard Blewett - DevelopMentor http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Nov 17 '05 #14

This discussion thread is closed

Replies have been disabled for this discussion.