Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-03-2005, 04:39 PM   #1 (permalink)
Stabbing my shoe
 
Join Date: Jan 2005
Location: Ahmedabad
Posts: 306
Default VB.NET help


Hi! I know almost nothing about VB.NET. I just installed its BETA edition.. I wish to make a program whose details I am giving below.. I have already made this program successfully in VB6 but in VB.NET, I am stuck. Please suggest the code..

--------------------------------------------------------------------
Actually, I am making a calculation program. There are seven subjects whose marks are to be entered. The program should then add all of them to give the total. The program should also calculate the percentage and show it.
In VB 6, I used Textboxes to enter marks and put a Label for Total and Percentage. I put the following code in the command button for calculating:

****************************************
Private Sub OK_Click()
e = Val(eng.Text)
m = Val(maths.Text)
ss = Val(ss.Text)
s = Val(sci.Text)
g = Val(guj.Text)
c = Val(com.Text)
o = Val(opt.Text)
t = e + m + ss + s + g + c + o
a = t * 100
p = a / 700
mrks.Caption = Str$(t)
percent.Caption = Str$(p)
End Sub
****************************************

Here: the command buttons name is OK..., 'e', 'm', 'ss', etc are name of text boxes used for filling numbers.. 't' is total and 'p' is percentage..
----------------------------------------------------------------

Now, what modifications should I make in this code which will be used in VB.NET.. When, I used the above code in VB.NET the program suggested a lot of errors..
>> Siddhartha
__________________
>> Siddhartha <<
> http://sidroy.wordpress.com <
> Beauty lies in the eyes of the Beer Holder <
//siddhartha// is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 06-03-2005, 11:53 AM   #2 (permalink)
Stabbing my shoe
 
Join Date: Jan 2005
Location: Ahmedabad
Posts: 306
Default

Guys, help me out..... Somebody....
__________________
>> Siddhartha <<
> http://sidroy.wordpress.com <
> Beauty lies in the eyes of the Beer Holder <
//siddhartha// is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by ico
- by Piyush
- by icebags
- by clinton
- by Charan

Advertisement




All times are GMT +5.5. The time now is 12:20 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2