4,439 Posted Topics

Member Avatar for ryan.jay.ong

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.

Member Avatar for ryan.jay.ong
0
96
Member Avatar for nhrnjic6

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

Member Avatar for nhrnjic6
0
128
Member Avatar for elouch

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 …

Member Avatar for fourty
0
1K
Member Avatar for ade.julianto

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.

Member Avatar for Ketsuekiame
0
611
Member Avatar for manjeanpaul

I cannot do more with the info you give than: `TotalSalary = salary - HealtInsurance - SecurityFees;`

Member Avatar for george4986
0
91
Member Avatar for hxn xfir
Re: Help

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 …

Member Avatar for JOSheaIV
0
817
Member Avatar for parth2911

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;`

Member Avatar for parth2911
0
204
Member Avatar for hotelsinger

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

Member Avatar for diafol
2
392
Member Avatar for kiya ko
Member Avatar for KBL

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 …

Member Avatar for KBL
0
232
Member Avatar for ashishkumar008

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()

Member Avatar for JOSheaIV
3
5K
Member Avatar for user4678

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; }

Member Avatar for duskoKoscica
0
6K
Member Avatar for viian04

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

Member Avatar for ddanbe
0
133
Member Avatar for ddanbe

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?

Member Avatar for deceptikon
0
271
Member Avatar for Dani
Member Avatar for Dani
1
395
Member Avatar for Iamateur

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.

Member Avatar for Minimalist
0
309
Member Avatar for ade.julianto
Member Avatar for Mike Askew
0
1K
Member Avatar for mradhie2
Member Avatar for ddanbe
0
53
Member Avatar for S2009

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.

Member Avatar for ddanbe
0
293
Member Avatar for zachattack05

Are you using a specific same seed value, every time when you call the constructor?

Member Avatar for zachattack05
0
228
Member Avatar for ddanbe

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 …

Member Avatar for Ancient Dragon
2
2K
Member Avatar for Warrens80

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?

Member Avatar for Reverend Jim
0
1K
Member Avatar for mohd.nasrul.iwan.fajaruddin

You could save login info etc. in the [settings](http://msdn.microsoft.com/en-us/library/aa730869(v=vs.80).aspx) of your application.

Member Avatar for KushMishra
0
285
Member Avatar for kRod

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?

Member Avatar for kRod
2
1K
Member Avatar for king03

Just set the Text property to string.Empty or to whatever they contained initially in the Click event handler of your reset button.

Member Avatar for brite_a
0
8K
Member Avatar for MartinSoukup

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

Member Avatar for KushMishra
0
254
Member Avatar for kal_crazy

I wish everyone a prosperous, healty and passionate 2014! Let the bubbles come!

Member Avatar for kamranali441
1
344
Member Avatar for andreas.petrou.967
Member Avatar for andreas.petrou.967
0
210
Member Avatar for Reverend Jim

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)

Member Avatar for Reverend Jim
0
294
Member Avatar for Jokatech
Member Avatar for Ancient Dragon
0
201
Member Avatar for aroshkhan

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!

Member Avatar for Ancient Dragon
0
159
Member Avatar for vani krishnan

The first thing that pops up is FFT: [example](http://www.ni.com/white-paper/4278/en/)

Member Avatar for phorce
0
344
Member Avatar for MartinSoukup

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)

Member Avatar for KushMishra
0
497
Member Avatar for ddanbe

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 …

Member Avatar for JOSheaIV
1
214
Member Avatar for denmarkstan

You have a GroupBox(line 1) and GroupBox2( line 22) are they added to the Controls collection of the Form?

Member Avatar for Deep Modi
0
4K
Member Avatar for Ahmed_43

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?

Member Avatar for JOSheaIV
0
797
Member Avatar for tom.scott.73113

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?

Member Avatar for tom.scott.73113
0
199
Member Avatar for ahmed_one

Did you read this [walkthrough](http://msdn.microsoft.com/en-us/library/bb384570.aspx)?

Member Avatar for ddanbe
0
383
Member Avatar for pars99

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 …

Member Avatar for pars99
0
139
Member Avatar for pritaeas

I can still endorse a member of whom I know, he is banned long time ago.

Member Avatar for pritaeas
0
265
Member Avatar for Khoo

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

Member Avatar for KushMishra
0
2K
Member Avatar for mrnutty
Member Avatar for Mark_Miller

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?

Member Avatar for mattyd
0
406
Member Avatar for ArashVenus
Member Avatar for Reverend Jim
Member Avatar for Warrens80
Member Avatar for rmsh92

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.

Member Avatar for dresha
0
213
Member Avatar for GrimJack

Perhaps we all should become Mandelas. Furious against injustice and forgiving for our enemies.

Member Avatar for GrimJack
2
838
Member Avatar for Khoo

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.

Member Avatar for ddanbe
0
366
Member Avatar for happygeek

The End.