4,439 Posted Topics
Re: Hi ryan.jay.ong, welcome! Sure you can! Formulate your question as detailed as possible and add the code part you are haveing problems with. This is the recipe to get an aswer to your question as quick as possible. | |
Re: --- `while(true)` will run forever --- You don't increment your counter **IN** the while loop --- Place your condition not in an if-statement, but put it in the place of `true` Success! | |
Re: Hi, elouch, welcome at DaniWeb! I use the following: To put a string into a cell: `worksheet.Cells[row, col] = aString` To get a string from a cell: `aString = worksheet.Cells[row, col].Value2.ToString()` Hope it helps. The Cells object is a Range object, that I find much more easier to work with … | |
Re: Do you have a column with date strings always of the form xx/xx/xxxx in the front end? In that case, extract the month using the SubString method of the String class and test with that in your search. | |
Re: I cannot do more with the info you give than: `TotalSalary = salary - HealtInsurance - SecurityFees;` | |
Re: Well guys, here is my version in a mere 30 lines. Fun to do! Awaiting the other contestants. :) using System; using System.Collections.Generic; namespace NumberPattern { class Program { static void Main(string[] args) { const string one = "1"; const int len = 9; List<string> Grid = new List<string>(); string … | |
Re: The expression on line 29 resolves to m=a[n+1]/2; I guess that is not the intention. Try something like: `m=(a[(n/2)]+a[(n/2)+1)])/2;` | |
Re: > But then again, managers are not known for being smart.. quite the opposite. I agree! It was around 1985 or something. The first Macintoshes were installed in our compagny. Some days later my boss called me(me being the "IT guy") in distress! His mouse was not working correctly! I … ![]() | |
Re: I did a rewrite from your line 18 on: write ('Tourism Workshop'); (*line 18*) for index:= 1 to 6 do (*define index as an integer*) begin write('Enter Name '); readln(names[index]); write('Enter status '); readln(status[index]); write('Enter country of origin '); readln(country[index]); end; Hope this clears things out for the rest of … | |
Re: Your SoundStream is declared, but not instantiated and in your code you do nothing with it. Try: Stream soundStream= new MemoryStream(Properties.Resources.MyWAVsong); SoundPlayer player = new SoundPlayer(soundStream); player.Play() | |
Re: Why not write your for loop something like this? for (i=2; i<=8; i+=2) { toadd = pow(-1, i-1)*pow(angle, i)/factorial(i); // Test also if abs x is still greater then a set value // before adding as Moschops proposed x = x + toadd; } | |
Re: Hi viian04 welcome at DaniWeb. For the average: sum up all the inputs and divide by the number of inputs. To get the highest and lowest: use an if statement | |
Is there a way to refer to a previous post I gave in a thread, in a new answer to that same thread? Could posts in a thread, be numbered for instance? | |
Re: Do you mean curriculum vitae? And: how can I submit it? | |
Re: First: Try to give meaningfull names to your buttonclick events etc. Second: You defined teh variable add as global, but you also defined it local to the "plus" click event handler, hence 0(local value) + second input= second input. | |
Re: Perhaps [this article](http://msdn.microsoft.com/en-us/library/a2c7tshk.aspx) can help you out. | |
Re: Hi mradhie2, welcome at DaniWeb. In screen coordinates, formcoordinates other? | |
Re: Hi Angel123@ welcome at DaniWeb. Please read the rules (You should have!) Don't resurrect old threads(start a newone), if you have a question be a bit more specific than *"It is not working"* [This](http://www.daniweb.com/software-development/csharp/code/374216/making-a-datagridview-look-like-an-excel-sheet) may answer your question. | |
Re: Are you using a specific same seed value, every time when you call the constructor? | |
Suppose there exists a magic medical pill, that increases life expectancy by a tenfold. So ages of 800 and more are easily attainable. Would you like the idea? Say you where born in the year 1000. The English language as we now know it did not even exist. The dark … | |
![]() | Re: Well, let's get back to X-mas. So J.C. was born 25 december of the [year 0](http://en.wikipedia.org/wiki/0_(year)), right? |
Re: You could save login info etc. in the [settings](http://msdn.microsoft.com/en-us/library/aa730869(v=vs.80).aspx) of your application. | |
Re: Have you read [this](http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keypress(v=vs.110).aspx) about handling which chars can be entered in a TextBox? And [this](http://msdn.microsoft.com/en-us/library/system.windows.forms.maskedtextbox(v=vs.110).aspx) about Masked TextBox? | |
Re: Just set the Text property to string.Empty or to whatever they contained initially in the Click event handler of your reset button. | |
Re: Seems to me you would be better of with a DataGridView. [Example](http://www.daniweb.com/software-development/csharp/code/452633/add-a-row-with-totals-to-a-datagridview). | |
Re: I wish everyone a prosperous, healty and passionate 2014! Let the bubbles come! | |
Re: Yes, that's probably a homework assignment. And your question is? | |
Re: Maybe have a look at the Stretch property of your images. [Click Here](http://msdn.microsoft.com/en-us/library/system.windows.media.stretch(v=vs.85).aspx) | |
Re: You declared this: `char *prog_arv[4];` you use this: `prog_argv[0]` arv <--> ar**g**v | |
Re: Out of the rubbish you wrote I'm luckily able to infer, that indeed we did provide you with a lot of help. So get on with it. Any procrastination on your part will just cause more trouble. Success! | |
Re: The first thing that pops up is FFT: [example](http://www.ni.com/white-paper/4278/en/) | |
Re: If you want to search an item in a ListView, you could use [this](http://msdn.microsoft.com/en-us/library/x03e4732(v=vs.110).aspx) | |
Many site can ask you to make an account in order to get more services etc. Most of the time a password is asked also. I understand there is a need to make a password of a certain length, say at least 6 chars or longer. What I don't understand … | |
Re: You have a GroupBox(line 1) and GroupBox2( line 22) are they added to the Controls collection of the Form? | |
Re: Hi Ahmed 43, welcome at DaniWeb. What difficuties do you have with looping through all the DataGridView cells and comparing each value with that of the TextBox? | |
Re: Functions with a plethora of arguments are IMO a sign of bad design. Your VoucherPrint seems a bit overloaded. As an example, why not put the printing of costumer details in a separate function? | |
Re: Did you read this [walkthrough](http://msdn.microsoft.com/en-us/library/bb384570.aspx)? | |
Re: This is the syntax for the declaration of a pointer to an integer, I guess the most common is `int * a;` What is sometimes confusing is that dereferencing a pointer uses practically the same syntax `int i = *a;` Here **i** will contain the integer value that is stored … | |
Re: I can still endorse a member of whom I know, he is banned long time ago. | |
Re: > 'Browser.CoreServer' does not implement interface member This says it all. If you your class derives from an interface, it MUST implement ALL the interface members. | |
| |
Re: Hi Mark, welcome to DaniWeb. I would not consider learning assembly a waste of time though. Why not stay with C++ and Visual Studio as IDE? | |
![]() | |
Re: Seems to work with me, just clicked the blue button. Witty! | |
![]() | |
Re: Do your homework, if you encounter any difficulty, post your code and we all be glad to help you out. The difficulty : "Help, don't know where to start!" does not count. | |
Re: Perhaps we all should become Mandelas. Furious against injustice and forgiving for our enemies. | |
Re: A PictureBox will always be inside a Form, so I guess you first have to look how to maximize a Form. The [Screen class](http://msdn.microsoft.com/en-us/library/System.Windows.Forms.Screen(v=vs.110).aspx) might help. | |
Re: Don't feel alone, there are other "weirdos" :) |
The End.