RoboRocks said:I keep getting this error
Drewska said:Heres some.. started: Project: start Configuration: Debug ------
Performing main compilation...
c:\Documents and Settings\Owner\My Documents\SharpDevelop Projects\start\MainForm.cs(226,3): error CS0116: A namespace does not directly contain members such as fields or methods
Build complete -- 1 errors, 0 warnings
RoboRocks said:This is what I typed in:
RoboRocks said:Shall I use VB.NET Express Edition?
RoboRocks said:I did the scorecard on express but nothing comes up when I run the form.
abhishek_rox said:Hi, I need some help. While doing someonline tuts, I come across a few exercised, problem is I dont know what to do , can you please help me?
Exercise
Put two textboxes on your form. The first box asks users to enter a start position for a For Loop; the second textbox asks user to enter an end position for the For loop. When a button is clicked, the programme will add up the numbers between the start position and the end position. Display the answer in a message box. You can use this For Loop code
For i = startNumber To endNumber
answer = answer + i
Next i
Get the startNumber and endNumber from the textboxes.
abhishek_rox said:Exercise
Amend your code to check that the user has entered numbers in the textboxes. You will need an If statement to do this. If there's nothing in the textboxes, you can halt the programme with this code
if(startNumber) //Does Vb.net even support braces,I forgot :p
{
For i = startNumber To endNumber
answer = answer + i
Next i
}
else
ExitSub
abhishek_rox said:Put two textboxes on your form. The first box asks users to enter a start position for a For Loop; the second textbox asks user to enter an end position for the For loop. When a button is clicked, the programme will add up the numbers between the start position and the end position. Display the answer in a message box. You can use this For Loop code
For i = startNumber To endNumber
answer = answer + i
Next i
Get the startNumber and endNumber from the textboxes.
The bolded part is what thats really confusing me, other if we just have to get the text, then its simple
Thanx for the help