4,439 Posted Topics
Re: [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. | |
Re: What about [this](http://www.daniweb.com/software-development/csharp/threads/437362/getting-started-with-c-the-list)? | |
Re: 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? | |
Re: 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. | |
Re: 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... | |
Re: 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) | |
Re: 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. | |
| |
Re: 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! | |
Re: 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) ... | |
Re: Runtime phase or during design phase, makes no difference. | |
Re: 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 | |
Re: 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. | |
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 … | |
Re: Loop through all Form.Controls. Check if the control is a GroupBox. If so, set top and left. | |
Re: 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++; } | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: 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? | |
Re: Of course it does! If it suits your needs depends on the programming task you have at hand. | |
Re: 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? | |
Re: 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) | |
Re: 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? | |
Re: 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)? | |
Re: 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? | |
Re: If you are not allowed to do it you can't do it unless you have the right permissions, I guess. | |
Re: [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. | |
Re: 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 … | |
Re: 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. … | |
Re: 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 … | |
Re: 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, … | |
Re: DRAW_WIDTH, DRAW_HEIGHT are the width and height of your bitmap. | |
Re: 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;** | |
Re: One of the main controls to use here will be [thisone](http://csharp.net-informations.com/datagridview/csharp-datagridview-tutorial.htm) | |
Re: 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. | |
Re: [Click Here](http://rosettacode.org/wiki/Caesar_cipher) | |
Re: You have to create a new thread. [Example](http://support.microsoft.com/default.aspx?scid=kb;en-us;815804). | |
Re: 30° equals pi/6 rad | |
Re: [Click Here](http://en.wikipedia.org/wiki/Random_number_generation) to find out how random(pseudo) numberare generated. | |
Re: Perhaps [this](http://www.youtube.com/watch?v=V2A8tcb_YyY) can help? | |
Re: Is it a serial device, USB device, other? Did you find no info in the documentation that came with it? | |
Re: I guess [this](http://www.dotnetperls.com/convert-string-byte-array) can help. | |
Re: Search DaniWeb, Google, example [Click Here](http://csharp.net-informations.com/excel/csharp-excel-tutorial.htm) | |
Re: 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. | |
Re: 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) | |
Re: 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) | |
Re: [Click Here](http://en.wikipedia.org/wiki/Hash_table) remember, Google is your friend. |
The End.