4,439 Posted Topics

Member Avatar for Nebil

[Click Here](http://vb.net-informations.com/excel-2007/vb.net_excel_2007_open_file.htm) to learn how to open and read an excel file.

Member Avatar for Nebil
-1
7K
Member Avatar for Mr Programmer

What about [this](http://www.daniweb.com/software-development/csharp/threads/437362/getting-started-with-c-the-list)?

Member Avatar for <M/>
0
219
Member Avatar for TonyG_cyprus

Yes, Tony I also noticed it. And I thought, is it possible to draw a map of the world with all the members known locations? I guess most are from USA. The finals in my country(Belgium) start next month. Or is this just silly?

Member Avatar for <M/>
0
370
Member Avatar for mferarri

The string Split method returns an array of strings, so you cannot assign it to Array a. Use: string[] a = s.Split(' '); Now a is an array of strings. Side remark: Give meaningfull names to your variables, don't call them a,s et.

Member Avatar for kvprajapati
0
143
Member Avatar for jeele.edolas

Start a zoo. You have animals-->fish,mammals,birds,insects... under mammals you would have apes,cats... under cats you would have lion, panther... You could have visitors, feeds, personel...

Member Avatar for ddanbe
0
174
Member Avatar for yvrej17_1

I wonder if your code would ever compile and it certainly does not use two datagridviews. Here is an example on how to [loop through datagridviewrows](http://stackoverflow.com/questions/7777205/looping-through-datagridview)

Member Avatar for yvrej17_1
0
425
Member Avatar for vyalineconstantino

Consider lines 36-42 line 37 belongs to the if (no curly braces used) So the else if on line 42 will give you an error. I ALWAYS use curly braces, even if my if else if constructs only contain one line.

Member Avatar for ddanbe
0
306
Member Avatar for MasterHacker110
Member Avatar for sushilsth

Line 7: you pass i1 to the Rows collection, i1 is the column counter. Perfect example of giving sensible names to your counter variables. If you named i1, "col" or something you would not have made that mistake. Hope I helped you out!

Member Avatar for ddanbe
0
384
Member Avatar for piczim

On line12 use bmi = weight/(height*height); 2 times height is not the same as height squared. As should be. On line 19 use if(bmi <= 25) ...

Member Avatar for Ancient Dragon
0
129
Member Avatar for fugio
Member Avatar for nitin1

Are nested for-loops commutative or not? Is there a proof for it? Like integer multiplication and addition are commutative, 2*3 = 3*2 and 3+2 = 2+3

Member Avatar for rubberman
-1
156
Member Avatar for fugio

Hi Fugio, welcome here at Daniweb. First: line 4: why you substract 1 from Count? In the loop when i gets equal to Count it will leave the loop anyway, because your test is i < ...Count.

Member Avatar for ChrisHunter
0
2K
Member Avatar for ddanbe

Could one be preferred over the other in terms of performance? Both option have to traverse the whole array somehow to find out which string contains an 'a'. Or does it not matter much and is it just a syntax thing. Or are there better ways to do this? All …

Member Avatar for Ketsuekiame
0
286
Member Avatar for sushilsth
Member Avatar for ddanbe
0
87
Member Avatar for Jahliah

Maybe something like this? public class Match { public int match=0; } List<Match> M = new List<Match>(54); int i = 0; while (i < 54) { M[i].match = i; //... i++; }

Member Avatar for Jahliah
0
124
Member Avatar for sehrish_1

Why did you ever start a study? Do you now catched up so much brain damage you can't think for yourself anymore? Oh, and if you really want a project name, what about "Project A". Sorry man, I'm in a bad mood today.

Member Avatar for rubberman
-1
148
Member Avatar for GeekPlease

Don't know exactly what your intentions are. Are you trying to set up a [multiple document interface](http://msdn.microsoft.com/en-us/library/xyhh2e7e.aspx) ? The form **mForm** is created from a Form_Main class. What is Form_Main? If you set up a Form not through the designer but programmatically, you also have to set up all the …

Member Avatar for tinstaafl
0
467
Member Avatar for GeekPlease

Think there are not so many differences, except for the syntax.I like the syntax of C#. The syntax of VB looks weird and ugly to me, but that is a personal opinion.

Member Avatar for JorgeM
0
587
Member Avatar for donaldjoyal

When I'm in the ice cream bussiness and I have an app promoting my ice cream, that would surely decrease my ice cream incomes... Do you get wet when you stand in the rain? Are you trying to force an open door?

Member Avatar for donaldjoyal
-2
78
Member Avatar for pars99

Of course it does! If it suits your needs depends on the programming task you have at hand.

Member Avatar for ddanbe
0
201
Member Avatar for حسنين_1
Member Avatar for ddanbe
-1
126
Member Avatar for NardCake

FYI C# has no thing called Modules, VB.NET seems to have them, don't know about Java. If you have Classes and Namespaces, why would anyone need to have Modules?

Member Avatar for james.lu.75491856
0
215
Member Avatar for sumitrapaul123

Seems OK to me. If in more doubt just google, lots of explanations and tutorials out there.[ Example](http://www.codeproject.com/Articles/11541/The-Simplest-C-Events-Example-Imaginable)

Member Avatar for sumitrapaul123
0
105
Member Avatar for Learner010

Modules are used(as far as I know) in Visual Basic for Applications, VBA, the macro language used in Excel and Word. Are you referring to that, or do you use something like Visual Studio with VB.NET?

Member Avatar for shann_
0
222
Member Avatar for Reverend Jim
Member Avatar for nitin1
Re: OOPS

Do you mean [this](http://en.wiktionary.org/wiki/oops)? Or are you referring to [OOP](http://www.codeproject.com/Articles/22769/Introduction-to-Object-Oriented-Programming-Concep)?

Member Avatar for soutrik
0
245
Member Avatar for ManishGaikwad

Another point is, if the file is in a shared folder, maby other users are using it. It may be a file important to them. So why delete it on the fly without letting the other users know about it?

Member Avatar for deceptikon
0
502
Member Avatar for Jahliah

If you are not allowed to do it you can't do it unless you have the right permissions, I guess.

Member Avatar for ddanbe
0
96
Member Avatar for mesbahuk

[This](http://etutorials.org/Programming/visual-c-sharp/Part+III+Programming+Windows+Forms/Chapter+15+Advanced+Controls/Using+the+MonthCalendar+Control/) will get you started.

Member Avatar for ddanbe
0
989
Member Avatar for nadiah.izzati

Then use a procedure **"DisplayMaxPrice"** or something like that. In the procedure, start with a **MaxPrice := -1.0;** Iterate through all your records change **MaxPrice** to the price of a cellphone if it is greater than the current **MaxPrice**. Display **MaxPrice**, which after the end of the loop now must …

Member Avatar for ddanbe
0
161
Member Avatar for JOSheaIV

Long time ago I've seen some FORTRAN code! My knowledge about it has become very hazy. I still know, that every line starting with a **C** is a comment and any variable starting with I,J,K,L,M,N is an integer. That's why we all still have the habbit of using i,j,k etc. …

Member Avatar for ddanbe
0
233
Member Avatar for laurel.jackson.12

Add a button "Calculate" to your form. In the clickhandler Get the text of PI, Price and Diameter out of their respective textboxes. Convert to float or double, perform a multiplication. Convert this oucome to text and put that text in your total textbox. Btw. you can use the constant …

Member Avatar for laurel.jackson.12
0
302
Member Avatar for Kratoswoo

To set the font of a DGV cell, you could use this: Made a DGV with 3 columns in the designer and then used this code in the form load: private void Form1_Load(object sender, EventArgs e) { dataGridView1[0, 0].Value = "C1R1"; dataGridView1[1, 0].Value = "C2R1"; dataGridView1[2, 0].Value = "C3R1"; dataGridView1[1, …

Member Avatar for Kratoswoo
0
171
Member Avatar for hazel.lanavio
Member Avatar for Karan_4

Hi Karan 4, welcome at Daniweb! The **as** keyword is practically the same as a cast. So line 14 could be written **A a = (A)b;**

Member Avatar for ddanbe
0
101
Member Avatar for Pilot122x

One of the main controls to use here will be [thisone](http://csharp.net-informations.com/datagridview/csharp-datagridview-tutorial.htm)

Member Avatar for Pilot122x
0
273
Member Avatar for cocopium

Maybe you need a refreshment on what a for-loop is? [Click Here](http://www.zentut.com/c-tutorial/c-for-loop/) Other tutorials are easily found on the web.

Member Avatar for Gonbe
0
290
Member Avatar for cocopium
Member Avatar for mesbahuk

You have to create a new thread. [Example](http://support.microsoft.com/default.aspx?scid=kb;en-us;815804).

Member Avatar for ddanbe
0
281
Member Avatar for reincom
Member Avatar for nitin1

[Click Here](http://en.wikipedia.org/wiki/Random_number_generation) to find out how random(pseudo) numberare generated.

Member Avatar for deceptikon
0
134
Member Avatar for fhau013
Member Avatar for jasfer

Is it a serial device, USB device, other? Did you find no info in the documentation that came with it?

Member Avatar for ddanbe
0
185
Member Avatar for mesbahuk
Member Avatar for mesbahuk
0
266
Member Avatar for bansarisavaliya

Search DaniWeb, Google, example [Click Here](http://csharp.net-informations.com/excel/csharp-excel-tutorial.htm)

Member Avatar for ddanbe
0
129
Member Avatar for cocopium

You gave the answer yourself! one thousand = 1 * 1000 two hundred = 2 * 100 and 34 = 3 *10 +4 Now just add and you are done.

Member Avatar for cocopium
0
243
Member Avatar for fhau013

Totaly agree with Ketsuekiame, VS is very good! But if you insist you could use an editor of your liking(see C#Jaap perhaps) and use [this](http://msdn.microsoft.com/en-us/library/vstudio/78f4aasd.aspx)

Member Avatar for fhau013
0
237
Member Avatar for marcelopb90

You really need it? And it's got to be simple? And with a 0.0001 precision also? Phew, that's a hard one for all of us, meanwhile you could read [this](http://www.daniweb.com/community/rules)

Member Avatar for tinstaafl
0
77
Member Avatar for killer88
Member Avatar for ddanbe
-1
74

The End.