473,387 Members | 1,515 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

program code

msmaphangwa
Hi! I find it difficult to create my own code. Am creating a program that will be able to calculate the sum of two numbers and display the results on the screen, i manage to create a code of clear and close button but for calculate i cant. Please help.
May 15 '10 #1
3 1505
!NoItAll
297 100+
Sigh....

Expand|Select|Wrap|Line Numbers
  1. Dim addend_a as integer = 2
  2. Dim addend_b as integer = 6
  3. Dim sum as integer = addend_a + addend_b
  4.  
  5. msgbox sum.tostring
  6.  
  7.  
... now go read a book about programming
May 15 '10 #2
tlhintoq
3,525 Expert 2GB
May I suggest picking up a basic C# introductory book? It's not that people here don't want to be helpful, but there is a certain amount of basic learning work that one should really take upon themselves before asking for help. There are so many great "How do I build my first application" tutorials on the web... There are dozens of "Learn C# in 21 days", "My first C# program" books at your look book seller or even public library... Asking a forum, any forum, to hand-hold you through it is just redundant. In many ways it disrespects the people who have invested dozens of hours in the on-line tutorials and those that spent thousands of hours in authoring books.

Build a Program Now! in Visual C# by Microsoft Press, ISBN 0-7356-2542-5
is a terrific book that has you build a Windows Forms application, a WPF app, a database application, your own web browser.

C# Cookbooks
Are a great place to get good code, broken down by need, written by coding professionals. You can use the code as-is, but take the time to actually study it. These professionals write in a certain style for a reason developed by years of experience and heartache.

Microsoft Visual Studio Tip, 251 ways to improve your productivity, Microsoft press, ISBN 0-7356-2640-5
Has many, many great, real-world tips that I use all the time.

The tutorials below walk through making an application including inheritance, custom events and custom controls.
Building an application Part 1
Building an application part 2
May 15 '10 #3
@!NoItAll
Thank you,it did work
May 16 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Cyrus Lan | last post by:
I have a jar file, without source code, say abc.jar. I have set it in the CLASSPATH The main execute class in abc.jar is a.class. In the command prompt, I can execute the program by issuing...
1
by: Silver | last post by:
Hi everyone, I'm writing a program that has to do them following main() : ------- 3 objects are declared (two of type A and one of type B) The function frd_fun is called for two objects (B...
10
by: Vince | last post by:
The following is code for the classic tortoise and hare C assignment. I am posting this for educational purposes only. Please do not plagiarize as comp sci instructors regularly read newsgroups....
1
by: Hartmut Schroth | last post by:
Hello, I want to set the title of an aspx-page by program (from a localized ressource). Data binding in the HTML code like <title><%# SomeMethodCall() %></title> doesn't work. I have not found...
7
by: Mike | last post by:
What i want to do is have my c++ program, run a DOS program and copy a script from that DOS program to a file. I simply have no idea, how, or if it's plausable, to run DOS within a c++ program. ...
1
by: Evando | last post by:
I need a possible solution to tackle my assignment.The instruction again is to write a program code in C to convert from Roman numbers into Decimals.Any possible solution which will run is needed. ...
39
by: mike3 | last post by:
Hi. I was writing a program in C++ that generates fractals. I got this weird bug though right now that's holding it up and was wondering if you could help. Anyway, it seems that when this...
0
by: mike3 | last post by:
Hi. Just wanted to inform you that the code for the C++ fractal program has been taken down, the one that I had been debugging and was discussed in the threads "Bug in my C++ program seems...
1
by: randy18h | last post by:
Output: Enter a Value: //x6 Menu 1. Search 2. Locate for an index Choice: //if chosen 1: sample// Enter a value to search: 6 6
4
by: sherty | last post by:
need a c program code with run time error in the code.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.