4,439 Posted Topics
![]() | Re: Quick solution is to swap the parameters of one of the functions. Could be a little weird, but it helps I guess. |
Re: "Makefile". The name alone fills my whole being with horror. The time I wasted getting it right! But then again, perhaps I did not RTFM enough, because being young I was too eager to get things done quickly... Because of that experience, I love IDEs. | |
Re: Another idea is to store your resources IN your application. [Click Here](http://msdn.microsoft.com/nl-be/library/7k989cfy(v=vs.80).aspx) for some details. | |
Re: You could use the Tag property to store an Identifying string or the GoupBox, your checkbox relates to. | |
Re: Also: have a close look at line 10 and line 11 of your above code. | |
Re: I don't mind downvoters either. Most of the time they are probably correct. What I hate is that I don't know the downvoter and more important that I don't know the reason for the downvote. If I at least would have a reason, I could learn from it and improve … | |
Complex numbers are seldom used in daily life, altough you could say that every real number is complex, but with the imaginary part equal to zero. And btw. "complex" is a bit of a misnomer, perhaps we should call them "easies", because often they make it easier to perform certain … | |
Re: Don't store them in a string array, use a **List<string>** type instead. | |
Re: Could you give a bit more info? Or is [this](http://www.codeproject.com/Articles/3703/How-to-Load-Display-images-with-C) helpfull enough? | |
Re: Hi zaw1234, welcome at Daniweb! Try Google: type **IT engineer free course** | |
Re: I think the OP left 4 years ago, and probably went to Mars or is there already. | |
Re: Or try [this code snippet](http://www.daniweb.com/software-development/csharp/code/364073/how-to-set-up-a-modal-dialog-form) | |
Re: What result should the computer return? Computers cannot and never will do a divide by zero. An error is generated and you can catch it with code. | |
Re: I should init sum to zero before the while and line 16 should read **sum := sum + Price;** EDIT: ho, count should also be initialised to zero. | |
Re: In a way it makes sense! An integer cannot hold numbers as big as 10^300 and higher, hence the negative values | |
Re: My wife has the same problem Tony. She hardly can send an SMS with her cell phone and she wonders what can be so interesting about, what she calls "THAT THING!", that I'm always buzy with it. Instead of watching TV with her. Duh! | |
Re: [This article](http://en.wikipedia.org/wiki/Random_number_generation) is a good start. The most common method used in computer laguages is called the linear congruential method. Something with multiplication of a seed and modulo a big prime number. But hey, I'm lazy so all I do if I want a number between 1 and 10: **Random … | |
Re: @ Iamateur: This code is meaningless! But if you have a program project, where you need a texbox to fill in only an email address, then this is super code to have! | |
Re: What do you mean by **Active Directory** ? | |
Re: Hi anthony.i.bilic, welcome here! Perhaps you could post some introductions in the **Community introductions**? | |
Re: First: never name your functions as **fn2** etc. Give them meanigfull names Like **Multiply** or something. In your case 3 function names pop up: **ReadInMatrix** (no parameters, returns a matrix) **Multiply**(with as parameters 2 matrices and returns a matrix) **DisplayMatrix**(Multiplied matrix as parameter, return void) | |
Re: Yes SIR! At your command SIR! Is is too difficult for people from Dar Es Salaam to pose a question in a more friendly manner? | |
Re: This is what I would have done: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication9 { class Program { static void Main(string[] args) { // declare and init an int array // or use Console readline as you did I'm just quick and dirty here int[] mynumbers = … | |
Re: What is not working? We are mere humans, not gods! Btw. **its** (in your title) should be written as **it's**. | |
Re: > Too bad C and C++ doesn't have that. Yeah, languages tend to evolve and improve. Did you also notice that the # sign in C# is in fact two + signs merged together? | |
Re: Hey you are getting [philosophical](http://en.wikipedia.org/wiki/Nihilism)! | |
Re: When you declare a variable, the compiler gets a "box" and labels it with the name of your variable. The kind of box taken, depends on the type of your variable. The "box" will be bigger if the type is float, than in case of an int. Let us say … | |
Re: Hi welcome here! Could you please elaborate on what you are trying to achieve? | |
Re: I infer you are a non OO programmer(like I was) and want to learn more? [This article](http://www.codeproject.com/Articles/15269/Static-Keyword-Demystified) can perhaps clarify some points about the static keyword. | |
This may look as a very silly question, so be it. I recently was advising a new member to read the rules, but to my astonishment I could not find them myself! Tried different search terms and other ways, believe me. Perhaps a clearly visible button? Nice greetings to everyone … | |
Re: I have the second edition of "The C++ programming language" by Bjarne Stroustrup. In it he describes a parser. Every C++ programmer should have a copy of it. I guess newer prints do exist. I devised a console calculator out of it (pity for you in C#) but if it … | |
Re: If you want to keep the vertical lines, look in your code for **e.Graphics.DrawRectangle** use two Drawlines instead. I haven't tested this, but I should give it a try. | |
Re: Time to play computer! Take a piece of paper and a pencil. On top put **i** , **j** , **Count** , perhaps **j%10** etc. Now start looping and fill in line per line, the values of the variables or expressions. Do this until **i <= to** or until you find … | |
Re: Don't know if it is of any imortance but on line 20 you have **alarmPuls** instead of what it should be **alarmPulse** | |
Re: Is this about a DataTable or a DataGridView? | |
Re: [Click Here](http://msdn.microsoft.com/en-us/library/system.string(v=vs.71).aspx) to find out what you can do with a string. | |
Re: Did you know that there is something like Google? You can pose it a question and you can get an answer like [this](http://en.wikipedia.org/wiki/OR_gate) The simplest implementation of an Or gate consists of 2 diodes and a resistor. | |
Re: What have you got so far for yourself? Did you consult MSDN? [Example](http://msdn.microsoft.com/en-us/library/vstudio/ezwyzy7b.aspx) | |
Re: You cannot translate a language into another by just using word translation. You could get strange things by doing so. Even two rather "similar" languages as Dutch and English have their differences. "Waar heb je je autosleutels gelaten?" a perfect Dutch sentence, would become translated word by word: "Where have … | |
Re: The if statement in the last case will only be executed if both var1 and var 2 are true. | |
Re: Hi ebrahemzregat, welcome at DaniWeb! Your question is explained in this thread, who is not been marked solved, but it should have! If you have further questions, please post them in a new thread. | |
Re: HashMap should be clever enough to do a rehash in case of a collision. | |
Re: There is also a [DrawLines](http://msdn.microsoft.com/en-us/library/7ewkcdb3(v=vs.100).aspx) method. | |
Re: Did you read [this article](http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm)? | |
Re: Try using the BackgroundColor property. Or something like this : Mygrid.Rows(RowIndex).DefaultCellStyle.BackColor = Color.Mycolor | |
Re: The way you describe your problem, you need a DataGridView, not a ListView. A ListView Is more of a displaying nature. Like what you see in the windows of Windows Explorer. | |
Re: Did you install the redistributable on those machines? [Click Here](http://msdn.microsoft.com/en-us/library/ms994356.aspx) |
The End.