4,439 Posted Topics

Member Avatar for virupax

Did you consider the [chart control](http://msdn.microsoft.com/en-us/library/dd489237(v=vs.110).aspx)?

Member Avatar for xrjf
0
458
Member Avatar for Madhukumars

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.

Member Avatar for IconKana
0
203
Member Avatar for phephe

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]

Member Avatar for Armen_2
0
2K
Member Avatar for mystycs
Member Avatar for claush@dut

I don't know, but there exists something like [XNA](http://en.wikipedia.org/wiki/Microsoft_XNA)

Member Avatar for ddanbe
0
72
Member Avatar for mavtcr
Member Avatar for Thaverz_23

This goes best in WPF (Windows Presentation Foundation) Google. [Example](http://msdn.microsoft.com/en-us/magazine/cc163455.aspx).

Member Avatar for Karishma Kanhai
0
80
Member Avatar for sheelap

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

Member Avatar for Reverend Jim
0
3K
Member Avatar for john.kane.100483

Read [this](http://www.cs.umd.edu/class/sum2003/cmsc311/Notes/Data/toBaseTen.html)

Member Avatar for Schol-R-LEA
0
251
Member Avatar for YA RAMSAMKER

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.

Member Avatar for YA RAMSAMKER
0
162
Member Avatar for 21345572

Implementation is the code you write, to get things done. For interface [Click Here](http://msdn.microsoft.com/en-us/library/87d83y5b.aspx)

Member Avatar for ddanbe
0
38
Member Avatar for 21345572
Re: linq

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.

Member Avatar for ddanbe
0
49
Member Avatar for debasisdas

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 …

Member Avatar for James_28
8
17K
Member Avatar for chipo
Member Avatar for David W
0
160
Member Avatar for Ese
Member Avatar for StuXYZ
0
145
Member Avatar for lindy_1

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 …

Member Avatar for lindystarr
0
289
Member Avatar for 21303359

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 …

Member Avatar for 21303359
0
91
Member Avatar for 21303359
Member Avatar for frankvalentin

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.

Member Avatar for ddanbe
0
3K
Member Avatar for rron17

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 …

Member Avatar for vmanes
0
160
Member Avatar for rron17

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 …

Member Avatar for ddanbe
0
159
Member Avatar for Zehrina
Member Avatar for xNeverx

Why not use [toupper](http://www.cplusplus.com/reference/locale/toupper/) or tolower in your input, instead of doing (day1 == 'S' || day1 == 's')?

Member Avatar for ddanbe
0
177
Member Avatar for Sasi_1

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.

Member Avatar for ddanbe
0
352
Member Avatar for Thasarath

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.

Member Avatar for Thasarath
0
359
Member Avatar for tadas.bareikis

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 …

Member Avatar for Schol-R-LEA
0
205
Member Avatar for hvebsr

Hi hvebsr welcome to DaniWeb. Probably means your date variable does not store hour,minute and second info.

Member Avatar for hvebsr
0
97
Member Avatar for Tahir Hashmi

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?

Member Avatar for ddanbe
0
38
Member Avatar for Prisms

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 …

Member Avatar for ddanbe
0
204
Member Avatar for sanus

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)

Member Avatar for asarchit65
0
411
Member Avatar for JamesCherrill
Member Avatar for mirchi mirchi
Member Avatar for acmarshall
Member Avatar for lilrhace07

I should use checkboxes here. That way you can select the options you want. Radiobutton are for mutabily exclusive selections.

Member Avatar for cgeier
0
239
Member Avatar for DavidB
Member Avatar for DavidB
0
1K
Member Avatar for Vish0203

Add an empty string between each entry or calculate a percentage if you know how many entries you have.

Member Avatar for Vish0203
0
143
Member Avatar for Sammys.Man

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(); } }

Member Avatar for Fenrir()
0
174
Member Avatar for Stuart_1
Member Avatar for ddanbe
0
30
Member Avatar for fliponymous

@Ketsuekiame: does this meet your specs? `Console.WriteLine(Console.ReadLine().ToArray().Sum(s => s - 48));`

Member Avatar for ddanbe
0
378
Member Avatar for Typhooncoder

I think [this video](http://www.youtube.com/watch?v=AVZPTzkQOcY) will help you out.

Member Avatar for ddanbe
0
107
Member Avatar for benjamin_8

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 …

Member Avatar for Teme64
0
98
Member Avatar for sanu kaji

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.

Member Avatar for ddanbe
0
87
Member Avatar for fliponymous

Hi fliponymous, welcome at DaniWeb. Could you tell a bit more clearly, exactly wath you are trying to achieve?

Member Avatar for cgeier
0
104
Member Avatar for V3N0M
Member Avatar for V3N0M
0
172
Member Avatar for OCompany

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 = …

Member Avatar for OCompany
0
267
Member Avatar for Banfa
Member Avatar for schroaus
Member Avatar for overwraith

Use the Seek method [example](http://msdn.microsoft.com/en-us/library/system.io.filestream.seek(v=vs.110).aspx)

Member Avatar for overwraith
0
174
Member Avatar for narvey ann

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?

Member Avatar for rubberman
-1
238
Member Avatar for gh.fuz

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?

Member Avatar for gh.fuz
0
126

The End.