4,439 Posted Topics

Member Avatar for sidd.

You could perhaps start with this snippet [url]http://www.daniweb.com/code/snippet217204.html[/url]

Member Avatar for ddanbe
0
36
Member Avatar for avirag

I know this is not what you need, but take a look at this snippet [url]http://www.daniweb.com/code/snippet238532.html[/url]. It might give you some ideas on how to construct a barchart. It just so happens, I'm working on a forms barchart app. I have a form with a Panel and I use the …

Member Avatar for avirag
0
223
Member Avatar for gogodr

I'm not very familiar with XNA and game programming, but to give it a first shot(no pun intended;) ) I would look at [B]BoardCells[,] Cell = new BoardCells[11, 12];[/B] This array goes from 0 to 10 and from 0 to 11. What about Cell[0, 0]? You never seem to use …

Member Avatar for gogodr
0
151
Member Avatar for choosenalpha

Remove line 52. At that point in your code, you know that [B]response [/B]is Z(see previous while) Besides that you are creating what is called an endless while here. It will go on printing the output of your program for ever. You need this output only once. B.T.W. be carefull …

Member Avatar for choosenalpha
0
422
Member Avatar for ShailaMohite

Look for GetItemCheckState method on MSDN. [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.checkedlistbox.getitemcheckstate(VS.85).aspx[/url]

Member Avatar for sanch01r
0
112
Member Avatar for th3learner

Perhaps you better ask your question(if any, see Ana D.) in the C# forum, instead of in the VB.NET forum. From the code you posted I can see that line 3 will definitly not work. [B]a[/B] is an integer you cannot pass the variable [B]int.Parse(comboBox1.Text)[/B] to an integer like you …

Member Avatar for ddanbe
0
111
Member Avatar for Mitja Bonca

"Shrani novo datoteko" and "Shrani besedilo" are of type ToolStripMenuItem. This type has also an Enabled property. If you want to disable both you perhaps better set the Enabled property to false of the "Shrani" ToolStripMenuItem.

Member Avatar for ddanbe
0
105
Member Avatar for sidd.

Hi Sidd. welcome here! Try this: [CODE=c#]using (StreamReader sr = new StreamReader ("myfile.dat")) { string s = sr.ReadLine(); //etc. }[/CODE]

Member Avatar for sanch01r
0
337
Member Avatar for ddanbe

Well, I don't think I can make this any simpler. I hope newbies in the C# language can learn from it.

0
1K
Member Avatar for crazyboy

You could use the [B]FolderBrowserDialog[/B]. More info about this class can be found [url=http://msdn.microsoft.com/en-us/library/system.windows.forms.folderbrowserdialog.aspx]here[/url]

Member Avatar for sanch01r
0
155
Member Avatar for mandangalo

Lines 69 to 79 in your PeriodicTable class, are not ok I think, why not simply say: [B]return m_theElements[atomicNum];[/B] Now the chance exists you return null which may crash your Print routine in the Element class. And if you are allowed to do so, look up the special [B]indexer [/B]syntax …

Member Avatar for ddanbe
0
221
Member Avatar for chathuD

What about an elevator managment system with 3 elevators and 7 floors? Decide which elevator goes where... Home meal delivery system? Reception, who is out where, menu, etc...

Member Avatar for Geekitygeek
0
249
Member Avatar for sidd.
Member Avatar for meaf

I typed the title of your thread in Google. This is the first thing I found: [url]http://www.c-sharpcorner.com/UploadFile/jeradus/UsingLinkedListInCS11102005005525AM/UsingLinkedListInCS.aspx[/url]

Member Avatar for DdoubleD
0
94
Member Avatar for blur_guava

Name your dll as you want, as long as you follow the file naming rules. The only naming convention I know of in C# is that all interfaces files start with the capital letter I. I tend to start all my constants with a small letter c, but that is …

Member Avatar for DdoubleD
0
149
Member Avatar for Ancient Dragon

Must be a nice person when he is sober. Drunks that far away are not always so "gentle".

Member Avatar for bobfromphilly
6
200
Member Avatar for fawkman

Click on this thread (a collegue of you?) [url]http://www.daniweb.com/forums/thread236306.html[/url] to find out more. Good luck!

Member Avatar for fawkman
0
660
Member Avatar for memory100

To me it does not matter how many pounds and ounces you have. Just use the right conversion factor to convert them to kilos. Your assignment states you have to use functions. C# has only notion of methods, but you could call a method that returns a value a function. …

Member Avatar for Geekitygeek
0
210
Member Avatar for memory100

You are doing very well and listened very well to the advise of Ryshad! Carry on!

Member Avatar for Geekitygeek
0
144
Member Avatar for beta911

Hi beta911, welcome here at DANIWEB. Could you be more specific please? The statement "It does not work" is a little vague...

Member Avatar for beta911
0
726
Member Avatar for dima shawahneh

I read somewhere (maybe even on this site!) that express editions don't allow remote connections.

Member Avatar for sknake
0
205
Member Avatar for ddanbe

Hi all, For a combobox I was trying to imitate the behaviour of this code example:[url]http://msdn.microsoft.com/en-us/library/system.windows.forms.listcontrol.valuemember.aspx[/url] So I have this class: [CODE=c#]class Planet { private string myName; private double myGravitationalAcceleration; public Planet(string strName, double Acceleration) { this.myName = strName; this.myGravitationalAcceleration = Acceleration; } public string Name { get { return …

Member Avatar for ddanbe
0
119
Member Avatar for Byrne86

Hi Byrne86 welcome at DANIWEB. On first inspection of your code I can tell you (unless I overlooked something) you are never calling your [B]Init [/B]and [B]Start [/B]methods.

Member Avatar for ddanbe
0
583
Member Avatar for Dekken

Hi Dekken, welcome here! perhaps you could use the DoubleBuffered property of the form by setting it to true.

Member Avatar for Dekken
0
239
Member Avatar for free_eagle

A book I personally liked very much when starting off with C# was : "[B]Beginning Visual C# 2005 Express Edition[/B] From Novice to Professional" by Peter Wright It is lightly written and easy readable, you are not dropped into the gory details of C# right at once. Look at [url]www.apress.com[/url] …

Member Avatar for gira
0
342
Member Avatar for vinnijain

Did the effort reading through this thread. Do not understand it very well. I think that Sknake and Ryshad did their best to tell you how to translate text to LaTeX format. (At least for division that is, if you want to do this full blown you need a text …

Member Avatar for Geekitygeek
2
555
Member Avatar for Dum_

Maybe you can do something with this [url]http://www.daniweb.com/code/snippet217084.html[/url]. There are other related threads here but I think you are smart enough to search this site and find out for yourself.

Member Avatar for Geekitygeek
0
242
Member Avatar for Ishbir

Are you referring to a class field in C#? Then use property syntax to access it. Your code looks a bit strange, why are you making a [B]inputs [/B]collection and just put one item [B]input[/B] into it?

Member Avatar for sknake
0
161
Member Avatar for Lolalola

>>StreamWriter sw = new StreamWriter(file); IMO a StreamWriter expects a filename as [B]of.FileName[/B], not a FileStream like [B]file[/B].

Member Avatar for thines01
0
127
Member Avatar for bk_bhupendra
Member Avatar for ramprakash2489

Besides the fact that there exists a generic [B]LinkedList [/B]class which can do these things for you, you might consider to put your code in CODE TAGS. Nobody will even try to feel the need to start reading your code if you don't.

Member Avatar for sajid syed
0
229
Member Avatar for nccsbim071

Every application under .NET gets compiled to IL (intermediate language) This is some sort of assembly language, yuo can see how it looks if you use the ILDASM tool. This IL gets executed by the JIT(just in time) compiler who translates it into native instructions for the cpu at hand. …

Member Avatar for nccsbim071
0
417
Member Avatar for RunTimeError

No problem:) Depends indeed. If I have 2 or 3 buttons and some other controls, I let the IDE do his work. But in a case of 26 or more buttons it pays off to create them manually in a loop, so I guess you are right the way you …

Member Avatar for sknake
0
132
Member Avatar for Vineeth K

[B]Pin ball[/B] (see attachment) on [url=http://en.wikipedia.org/wiki/TI-99]this computer[/url] In general I don't like games anymore, they have become so "complicated" that it seems you have to spend the rest of your life with them...

Member Avatar for GrimJack
3
442
Member Avatar for Alicito

What is the part you are having trouble with? [I]its not workin right[/I] is a bit vague as a question.

Member Avatar for Antenka
0
186
Member Avatar for jejannah
Re: hi..

What do you mean by groupbox here? A groupbox control is meant to group other controls, most of the time radiobuttons.

Member Avatar for DdoubleD
0
148
Member Avatar for skylancer

The confusion comes from the fact that Karyawan is a namespace which contains a class with the name Karyawan. If you have a namespace A with classes A and B, you would also say A.A and A.B

Member Avatar for ddanbe
0
133
Member Avatar for ronson

The BitMap class has a SetPixel method. Call it like this SetPixel(x,y,aColor); x,y : coordinates in int. aColor : Color

Member Avatar for ronson
0
247
Member Avatar for gotherthanthou

Hi, welcome to DANIWEB! Perhaps look at this thread [url]http://www.daniweb.com/forums/thread224213.html[/url] may help. This site also has a search function with perhaps lots of more information.

Member Avatar for sknake
0
116
Member Avatar for Maheen Khalid

Hello Maheed, welcome on this site. Seems like you where trying to start what is called a Console application. You have to put as a last line of code a "read" statement, so that the console window stays on screen. I usually use [B]Console.ReadKey();[/B]

Member Avatar for thines01
0
116
Member Avatar for smoking clutch

Hi welcome on DANIWEB! [B]Person Michael = new Person(Console.ReadLine());[/B] But then you must have a constructor in your class Person that accepts a string: [B]Person(string Name);[/B]

Member Avatar for ddanbe
0
102
Member Avatar for saj_amo
Member Avatar for saj_amo
0
93
Member Avatar for Geekitygeek
Member Avatar for sumit21amig

Hi sumit21amig, welcome! Don't know what you are getting at here. * ALWAYS takes precedence over +. That is just standard math. The formulas you give will only have the same result if a,b and c have the same value or some of them are zero. Static data are always …

Member Avatar for Geekitygeek
0
137
Member Avatar for Sachin_coder

Hi Sachin_coder, welcome at DANIWEB:) Your catch clause doesn't return anything, that's what caused your error. Either return someting or throw an exception. Please use code tags, the next time you post code! Read the rules.

Member Avatar for ddanbe
0
137
Member Avatar for 12d3
Member Avatar for mejohnm

The 2 errors have the same cause. You are trying to compare a string with an int. You can compare strings with strings or ints with ints. The last error tells you, you are trying to assign a string to an int.BTW on line 57: you cannot use assign(=) here, …

Member Avatar for mejohnm
0
167
Member Avatar for nccsbim071

Perhaps use the NLST command instead? You could also use methods from the string class like SubString, Length etc. You could use the string Split method and split on a space character. The last string will be the filename. You could use a Regex expression. Hope this helps.

Member Avatar for nccsbim071
0
156
Member Avatar for hnp2500

You must first learn to crawl before you start to walk. Start to learn the difference between a Console application and a Windows Forms application. The code you posted is console code, you talk about form code?!? Besides: your spyware [COLOR="Red"]works fine [/COLOR](your own words)

Member Avatar for hnp2500
-4
104
Member Avatar for mrrko

Open the file Read the file Put what you have read from the file on an ouputdevice, printer, screen,...

Member Avatar for manojlogu001
0
152

The End.