4,439 Posted Topics

Member Avatar for rpcob

Quick solution is to swap the parameters of one of the functions. Could be a little weird, but it helps I guess.

Member Avatar for Captain119
0
4K
Member Avatar for christinetom

"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.

Member Avatar for Tumlee
0
262
Member Avatar for Sarama2030

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.

Member Avatar for Sarama2030
0
165
Member Avatar for vishalonne
Member Avatar for tinstaafl
0
206
Member Avatar for HelpWanted2115
Member Avatar for House_of_Dexter
0
273
Member Avatar for Stuugie

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 …

Member Avatar for Stuugie
0
211
Member Avatar for ddanbe

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 …

Member Avatar for ddanbe
0
1K
Member Avatar for vishalonne
Member Avatar for peymankop

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?

Member Avatar for JOSheaIV
0
205
Member Avatar for zaw1234

Hi zaw1234, welcome at Daniweb! Try Google: type **IT engineer free course**

Member Avatar for rubberman
0
103
Member Avatar for cVz

I think the OP left 4 years ago, and probably went to Mars or is there already.

Member Avatar for ddanbe
0
267
Member Avatar for Himanshu Chawla

Or try [this code snippet](http://www.daniweb.com/software-development/csharp/code/364073/how-to-set-up-a-modal-dialog-form)

Member Avatar for tinstaafl
-1
291
Member Avatar for HumblePie

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.

Member Avatar for ddanbe
0
136
Member Avatar for HelpWanted2115

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.

Member Avatar for HelpWanted2115
0
188
Member Avatar for HelpWanted2115

In a way it makes sense! An integer cannot hold numbers as big as 10^300 and higher, hence the negative values

Member Avatar for HelpWanted2115
0
200
Member Avatar for PHIPH

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!

Member Avatar for olugbade.nicholas
0
198
Member Avatar for silvercats

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

Member Avatar for Michael27
0
238
Member Avatar for kingsonprisonic

@ 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!

Member Avatar for Iamateur
4
1K
Member Avatar for ManthanB
Member Avatar for anthony.i.bilic

Hi anthony.i.bilic, welcome here! Perhaps you could post some introductions in the **Community introductions**?

Member Avatar for ddanbe
0
64
Member Avatar for Xantipius
Member Avatar for elattar

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)

Member Avatar for elattar
0
174
Member Avatar for hammy2013

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?

Member Avatar for ddanbe
-1
126
Member Avatar for HumblePie

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

Member Avatar for ddanbe
2
165
Member Avatar for sai.aleenus

What is not working? We are mere humans, not gods! Btw. **its** (in your title) should be written as **it's**.

Member Avatar for sai.aleenus
0
140
Member Avatar for GhostWolf

> 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?

Member Avatar for deceptikon
0
168
Member Avatar for zxz

Hey you are getting [philosophical](http://en.wikipedia.org/wiki/Nihilism)!

Member Avatar for stultuske
0
283
Member Avatar for sushants

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 …

Member Avatar for Banfa
0
162
Member Avatar for ManojGokhale111
Member Avatar for tinstaafl
0
176
Member Avatar for silvercats

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.

Member Avatar for silvercats
0
761
Member Avatar for ddanbe

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 …

Member Avatar for deceptikon
0
303
Member Avatar for Ancient Dragon
Member Avatar for sparkling eyes

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 …

Member Avatar for ddanbe
0
153
Member Avatar for noor.beetna
Member Avatar for Ann95

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.

Member Avatar for Ann95
0
432
Member Avatar for the_ yuo

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 …

Member Avatar for chetas
0
304
Member Avatar for Asotop

Don't know if it is of any imortance but on line 20 you have **alarmPuls** instead of what it should be **alarmPulse**

Member Avatar for Asotop
0
127
Member Avatar for Unused Mass
Member Avatar for Papa_Don

[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.

Member Avatar for Papa_Don
0
8K
Member Avatar for silvercats

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.

Member Avatar for Assembly Guy
0
269
Member Avatar for blaze007

What have you got so far for yourself? Did you consult MSDN? [Example](http://msdn.microsoft.com/en-us/library/vstudio/ezwyzy7b.aspx)

Member Avatar for ddanbe
0
341
Member Avatar for yousafc#

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 …

Member Avatar for <M/>
1
1K
Member Avatar for Violet_82

The if statement in the last case will only be executed if both var1 and var 2 are true.

Member Avatar for Violet_82
0
194
Member Avatar for yobotiks

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.

Member Avatar for ddanbe
0
2K
Member Avatar for Forte1292
Member Avatar for Momerath
0
259
Member Avatar for arudhumbu
Re: vb

There is also a [DrawLines](http://msdn.microsoft.com/en-us/library/7ewkcdb3(v=vs.100).aspx) method.

Member Avatar for ddanbe
0
173
Member Avatar for adem87

Did you read [this article](http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm)?

Member Avatar for ddanbe
0
251
Member Avatar for Hazuan Nazri

Try using the BackgroundColor property. Or something like this : Mygrid.Rows(RowIndex).DefaultCellStyle.BackColor = Color.Mycolor

Member Avatar for Hazuan Nazri
0
452
Member Avatar for sumitrapaul123

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.

Member Avatar for tinstaafl
0
3K
Member Avatar for ManthanB

Did you install the redistributable on those machines? [Click Here](http://msdn.microsoft.com/en-us/library/ms994356.aspx)

Member Avatar for ManthanB
0
211

The End.