4,439 Posted Topics
Re: Did you consider the [chart control](http://msdn.microsoft.com/en-us/library/dd489237(v=vs.110).aspx)? | |
Re: In [this thread](http://www.daniweb.com/software-development/vbnet/threads/471648/is-vb-free-or-do-i-buy-it) you will find some info. | |
Re: Or do it recursively : (this is a classic.) [CODE]public int fact(int n) { if (n==0) return 1; else return n*fact(n-1) } Console.WriteLine("Type a number up to 20:"); int n = Convert.ToInt32(Console.ReadLine()); Console.WriteLine(this.fact(n));[/CODE] | |
Re: Use a while loop and the `isdigit` function. | |
Re: I don't know, but there exists something like [XNA](http://en.wikipedia.org/wiki/Microsoft_XNA) | |
Re: You could set the **FromBorderStyle** property to **None**. | |
Re: This goes best in WPF (Windows Presentation Foundation) Google. [Example](http://msdn.microsoft.com/en-us/magazine/cc163455.aspx). | |
Re: Do something like this: Dim btnArray(10) As System.Windows.Forms.Button For i As Integer = 0 To 9 btnArray(i) = New System.Windows.Forms.Button Next i | |
Re: Read [this](http://www.cs.umd.edu/class/sum2003/cmsc311/Notes/Data/toBaseTen.html) | |
Re: An abstract class has no implementation of its members. The implementation has to be provided by derived classes. A partial class is the same class split into two different files. | |
Re: Implementation is the code you write, to get things done. For interface [Click Here](http://msdn.microsoft.com/en-us/library/87d83y5b.aspx) | |
Re: LINQ stands for Language INtegrated Query; It is a sort of query tool inside VB to query a database, a List of objects or an XML file. In a way, the query becomes independent of the source. | |
Re: We trained hard, but it seemed that every time we were beginning to form up into teams, we would be reorganized. I was to learn later in life that we tend to meet any new situation by reorganizing; and a wonderful method it can be for creating the illusion of … | |
| |
Re: > I've tried doing it but it doesnt run Why doesn't it run? Show us code? | |
Re: On line 47 you are doing integer division! so if vars[0] + vars[1] + vars[2] + vars[3] + vars[4] for example equals 7, this would give: 7/5 = 1 for your average. Solution: If you divide by 5.0, this would give the correct 1.4 Also: why dont you use for … | |
Re: You could write it on a piece of paper and hand it over to your lecturer. You could write your text with a textprocessor and mail it. If you have written any code for a program that logs all your activities and you encounter problems with it, we would like … | |
Re: Hi Ajay 9, welcome to DaniWeb! Please post your question in a thread on his own, not at the end of a solved thread from 4 years ago. | |
Re: Your for loop on line 12 will not do anything, and you will continue with line 16. i = 0, and then look at the condition i > 1 to find out why. As for infinity: very simply said: a computer is just a number of switches and so are … | |
Re: I assume this is Turbo C? From K&R "The C programming language" second edition page 65: > 3.8 **Goto and Labels** > C provdes the infinitely-abusable *goto* statement, and labels to branch to. > Formally, the *goto* is never necessary, and in practice it is almost always easy to write … | |
Re: Why not use [toupper](http://www.cplusplus.com/reference/locale/toupper/) or tolower in your input, instead of doing (day1 == 'S' || day1 == 's')? | |
Re: Load the text of your file in a RichTextBox. Use a Find method of [RichTextBox](http://msdn.microsoft.com/en-us/library/system.windows.forms.richtextbox(v=vs.110).aspx) to find words. Apply other style to the found words. | |
Re: sum = Convert.ToInt32(dataGridView1.Rows(i).Cells(0).Value) + Convert.ToInt32(dataGridView1.Rows(i).Cells(2).Value) This adds two integers in column 1 and 3 of row i together. Store sum in the Value of a column you want. | |
Re: What do you have to do when you want to learn swimming? Jump into undeep water and train yourself, until you can swim. That way you will be able to swim in very deep water. Same with programming: start small and get more and more programming experience every day. If … | |
Re: Hi hvebsr welcome to DaniWeb. Probably means your date variable does not store hour,minute and second info. | |
Re: Hi Tahir Hashmi, welcome to DaniWeb! Could yo be more specific with your question? What message box, what picture list? Perhaps send us some examples? | |
Re: Very good idea I guess. The first language you have to learn is not computer language but the language of electrical measurement. [Perhaps start here](http://en.wikipedia.org/wiki/Electrical_measurements). In using a timer and a voltmeter alone, you never going to be able to measure power consumption. If you mean by a voltmeter, what … | |
Re: Hi sanus, welcome to DaniWeb. Think you posted in the wrong forum. But for an answer anyway,[Click Here](http://msdn.microsoft.com/en-us/library/6y3efyhx(v=vs.90).aspx) | |
Re: Never see you using cout to print out the arrays. | |
Re: I should use checkboxes here. That way you can select the options you want. Radiobutton are for mutabily exclusive selections. | |
Re: When in the debugger, did you already try to hover over a variable in the source with your mousepointer? | |
Re: Add an empty string between each entry or calculate a percentage if you know how many entries you have. | |
Re: If you click or move to a cell containing data, the label will contain a copy of it with this code: private void MyDGV_CellEnter(object sender, DataGridViewCellEventArgs e) { if (MyDGV[e.ColumnIndex, e.RowIndex].Value != null) { MyLabel.Text = MyDGV[e.ColumnIndex, e.RowIndex].Value.ToString(); } } | |
Re: Hi Stuart 1, welcome to DaniWeb. And your question is? | |
Re: @Ketsuekiame: does this meet your specs? `Console.WriteLine(Console.ReadLine().ToArray().Sum(s => s - 48));` | |
Re: I think [this video](http://www.youtube.com/watch?v=AVZPTzkQOcY) will help you out. | |
Re: Hi benjamin 8 welcome to DaniWeb. What is there to explain? Strictly speaking C# uses methods, not functions. If you know how to reverse a string and how to compare a string, this is easy. If you have any trouble, please show us your code and point out the difficulties … | |
Re: That is more likely the one that should stay (BTW it is Main, not main in C#) DO a search for "Main" in all the files you have in your project. | |
Re: Hi fliponymous, welcome at DaniWeb. Could you tell a bit more clearly, exactly wath you are trying to achieve? | |
Re: To get the look and feel of Haskell, I tried it out from my browser [see here](http://tryhaskell.org/) | |
Re: This will work, although normal practise is having a button in the form or dialog itself, to close it. namespace WindowsFormsApplication11 { public partial class Form1 : Form { Form Form2; // field inform1 class public Form1() { InitializeComponent(); // init and show form2 Form2 = new Form(); Form2.Text = … | |
Re: Use the Seek method [example](http://msdn.microsoft.com/en-us/library/system.io.filestream.seek(v=vs.110).aspx) | |
Re: Are WE supposed to do that? it is YOUR assignment, and we will gladly be helping with the code you already have and having problems with. It all starts with knowing what a prime number is. You know that, don't you? | |
Re: Your question is not very clear. What exactly do you want to do? Exit button == Close (X) in the right corner? Reset button ? Do you have a Calculate button on the form already? |
The End.