4,439 Posted Topics

Member Avatar for dtvonly

Storing configuration info etc. in a separate file is a very bad thing to do. Store such information inside your application in the form of resources or settings. Learn more about it here : [url]http://msdn.microsoft.com/en-us/library/cftf714c.aspx[/url]

Member Avatar for sknake
0
118
Member Avatar for mansoorhacker

Google! I searched for [B]urdu in C#[/B] and found amongst others [url]http://www.codeproject.com/KB/cs/urdudtpicker.aspx[/url] and [url]http://www.codeproject.com/KB/cs/multilingual.aspx?display=PrintAll[/url] Succes!

Member Avatar for ddanbe
0
49
Member Avatar for Elemen7s

Hi Elemen7s! Welcome at DaniWeb! string [B]killname[/B]; is locally defined in the [B]textBox_TextChanged [/B]method. So as the method is finished, [B]killname [/B]does not exist any more. You cannot use it somewhere else.

Member Avatar for Elemen7s
0
97
Member Avatar for chromatinpt

Use the Split method: [CODE=c#]string text = "1,3,5,3,7,9,4,6,1,3"; string[] numbers = text.Split(','); string test = numbers[2];[/CODE] In this case, the string test will contain "5". That way you can manipulate everything to your liking.

Member Avatar for jonsca
0
132
Member Avatar for makdu

The easiest way to create a form load event handler is to doubleclick the form in design mode. You don't have to use a Form or Console application, you can also start from an Empty project, but in that case you are responsible to fill in everything yourself.

Member Avatar for makdu
0
247
Member Avatar for david.1982
Member Avatar for sid78669
0
121
Member Avatar for thanatos2

A simple bubblesort will indeed do the trick here. Also, remember that classes like Array or List have a Sort method.

Member Avatar for Geekitygeek
0
137
Member Avatar for bonnysammy

What do you mean with: "the aera is all red"? Extra space is sometimes needed: 123 is not the same as 1 2 3, it just depends. Upload a picture showing the behaviour or some code. I'm affraid we cannot do very much with what you told us...

Member Avatar for jonsca
0
87
Member Avatar for Dany_08

Make a database of your friends. Store info like address, phone, picture and whatever you want. Make an input-output form as front end, include printing and whatever you see fit. That could keep you buzy for months, while learning alot.

Member Avatar for Hidden-Coder
0
134
Member Avatar for capiono
Member Avatar for ayeshawzd
Member Avatar for ayeshawzd
0
484
Member Avatar for roadmaster
Member Avatar for roadmaster
0
107
Member Avatar for Katsurou

Hi katsurou, welcome on Daniweb! If and else are not commands, they are reserved words of a language. Did not find it so hard to get info about them: [url]http://msdn.microsoft.com/en-us/library/5011f09h.aspx[/url] Another thing :you don't have to use [B]System.Drawing.Color.Red[/B] fully written out. You can simply use [B]Color.Red[/B], because you use a …

Member Avatar for ddanbe
0
226
Member Avatar for goody11

Read this [url]http://msdn.microsoft.com/en-us/library/system.random.aspx[/url]

Member Avatar for ddanbe
0
125
Member Avatar for sam1

In your case I would use a NumericUpDown control. No more need for any validation just set it's Minimum and Maximum properties to the values you need. You cannot even type letters etc. in a NumericUpDown.

Member Avatar for MrSpigot
0
2K
Member Avatar for eliile5

Post #7 code line 5. Why are you making a new employee list every time you add a new employee?

Member Avatar for jonsca
1
204
Member Avatar for kobi

Your form will only show the new label text after it is repainted. It is of course painted when it is created, but after that you call your set method. Trigger a repaint by using [B]this.Refresh(); [/B]as a last statement in your set method.

Member Avatar for ddanbe
0
94
Member Avatar for kobi
Member Avatar for phoenix_dwarf

Why bother? If your brother drums during 10 min at 175 beats/min:sweat: your metronome will be off by a mere 8.57... ms. Besides music is not governed, by a metronome alone! It is just an aid to help beginning musicians to keep the rhythm. But hear the difference between a …

Member Avatar for phoenix_dwarf
0
157
Member Avatar for sathya8819

On line 8 of your code did you try [B]string[] files = Directory.GetFiles(path, "*.jpg"); [/B]? An image file can be a JPEG file, but the extension is .jpg 3 letter extensions comes from a time when dinosaurs still lived...

Member Avatar for sathya8819
0
340
Member Avatar for cwarn23

This Big Bang did not exist untill it was invented by [url=http://en.wikipedia.org/wiki/Georges_Lema%C3%AEtre]a Belgian Catholic priest![/url];)

Member Avatar for Dope 7560
0
318
Member Avatar for zzbottom

What you need is an array of [B]Person[/B]. So first concentrate on making a class with all the info, methods etc. you want to put in a Person. Show your class code and then we will talk about arrays. OK?

Member Avatar for jonsca
0
128
Member Avatar for dilake

[CODE=c#]Book B = new Book(); B.title = "The book"; MyTextBox.Text = B.title;[/CODE] works fine with me. But it is better practice to keep fields of a class private and to use property syntax. You could in this case even use automatic syntax(the compiler takes care of the details) So your …

Member Avatar for dilake
0
124
Member Avatar for Katherine87

You mean something like [B]1.23 + 45.6[/B] and after a click on the =button it would become [B]46.83 [/B]?

Member Avatar for Nick Evan
-1
124
Member Avatar for Ugaton

Hi Ugaton, welcome at Daniweb! We are all very eager around here to help you out, but what we all like is some effort from your side. What is the code you got so far? What have you tried for yourself? It is like they say in that song I …

Member Avatar for ddanbe
0
106
Member Avatar for Diamonddrake
Member Avatar for JayOne

So you say you are a [B]S[/B]earch [B]E[/B]ngine [B]O[/B]ptimization Expert. Come on man, you must be joking! You are the expert and you don't can even do a simple search on amazon, or am I wrong?

Member Avatar for ddanbe
0
80
Member Avatar for lightforce

Hi lightforce, welcome at DaniWeb! Phew, lightforce, that are a lot of questions with information that can be found by searching here(yes here!), on MSDN or on Google. But I think you are like me in the beginning, a bit overwhelmed by the amount of information offered. For all your …

Member Avatar for ddanbe
0
140
Member Avatar for cwarn23

I think a government has much more other things to do than that. But sometimes politicians have nothing else to do to make themselves interesting. I should say, if you're an adult and you want to look at trash on the internet, be my guest! Kids should be restricted(parental control) …

Member Avatar for vegaseat
0
192
Member Avatar for rooboy69

Hi rooboy69, welcome at Daniweb! Some C# code would be nice. :) Could not understand the second part of your question well, so please explain.

Member Avatar for sknake
0
469
Member Avatar for shabeg

As sknake and adatapost already pointed out, don't worry about memory leaks if you write managed code. What you wrote was managed code. So concentrate on programming, not on memory leaks. Forget about dispose, destructors etc. The Clear method just removes all items from your List.

Member Avatar for sknake
0
1K
Member Avatar for NargalaX

Perhaps this snippet can help you: [url]http://www.daniweb.com/code/snippet217185.html[/url]

Member Avatar for farooqaaa
0
169
Member Avatar for yup790

This site explains all the features of the C# language very well, but does not introduce forms applications. [url]http://www.functionx.com/csharp/index.htm[/url]

Member Avatar for MxDev
0
104
Member Avatar for Emmaliu

Hey kool.net, don't resurrect old threads. Post your question in a new thread, where if needed you can refer freely to old threads if you want to.:)

Member Avatar for kanchanraaj
0
1K
Member Avatar for NargalaX

This is a comma, point problem. If you use a comma as decimal point you probably don't have the problem. Depends on the standard international settings.

Member Avatar for NargalaX
0
287
Member Avatar for Chopinson

Suggest you read this about ColorDialog: [url]http://www.java2s.com/Tutorial/CSharp/0460__GUI-Windows-Forms/0940__ColorDialog.htm[/url] and this about arrays and jagged arrays: [url]http://www.java2s.com/Tutorial/CSharp/0220__Data-Structure/Catalog0220__Data-Structure.htm[/url] Try the samples and learn what they do. Succes! btw : your code will not compile...

Member Avatar for Chopinson
0
134
Member Avatar for adilsyed

You cannot set the Background Color of a DatagridView to Transparent. I believe it has something to do with the object hierarchy. A transparent object cannot accept MouseClicks etc.

Member Avatar for ddanbe
0
38
Member Avatar for tuba-zeynep

Hi, tuba-zenyep, welcome on the DaniWeb site. Mostly you cannot use a Graphics object yourself, you must use the one that is given to you. (I read that somewhere...) Don't know what your exact intensions are but this will work: [CODE=c#]public partial class Form1 : Form { public Form1() { …

Member Avatar for ddanbe
0
191
Member Avatar for Egypt Pharaoh

It is not a good practice to make two lists of thing that belong together, like firstname and lastname. Make a list of a struct or class which contains both(perhaps with other info)

Member Avatar for avirag
0
98
Member Avatar for sidd.

Hanging is often a sign you entered an endless loop somewhere. Without some code from you, it is hard to tell if it is.

Member Avatar for vibhutirs
0
84
Member Avatar for tanha

Why has the update to take place every second? Are you going to calculate for computer use by the second? At my work we have a computer system registering my time of arrival and leave. My loan is calculated and thus rounded by the minute. If you round by the …

Member Avatar for ddanbe
0
137
Member Avatar for Mitja Bonca

I tried this and it worked: [CODE=c#]string myTime = "26.12.2009 11:50:00"; DateTime dt = Convert.ToDateTime(myTime); string myHour = dt.ToShortTimeString();[/CODE]

Member Avatar for eeyc
0
3K
Member Avatar for sknake

Hi Scott! This deserves definitly rep next day, because this day I already did!!! I was wondering, Scott needing help? You got me there:-O You even managed to put your avatar in a console app, great! Happy New Year! :)

Member Avatar for sknake
2
356
Member Avatar for swapneelearth

Every learning process starts with acquiring good manners. Like writing in normal English for instance. Even native English speakers make mistakes in their spelling, that is only human. But untill what you write becomes the official spelling, try to follow the existing spelling rules and you will get help with …

Member Avatar for ddanbe
0
127
Member Avatar for Mitja Bonca

Perhaps use a DataGridView with one columnand with the hours in the RowHeaders?

Member Avatar for Mitja Bonca
0
140
Member Avatar for semab

Hi semab, welcome at Daniweb! C# is an object oriented application. Why do you need many applications? What have you got so far? You must at least have tried something, show us, we will help you out you know. :)

Member Avatar for semab
0
53
Member Avatar for ithelp

Do you mean the light off the stars is influenced by the atmosphere? Like sometimes when the sun goes under?

Member Avatar for ddanbe
0
57
Member Avatar for roswell67

jonsca says it well. A shortcut to this is when in the design window and you put a button on your form, just doubleclick it and you are right in the button click event handler to type in code of what this button should do when clicked. Also notice that …

Member Avatar for roswell67
1
139
Member Avatar for Nerathas

The reason it is not working is because of Line 11. You return the Greatest Common Divisor here, the code after that never gets executed. By luck you did not get a stack overflow, because of the recursive call on Line 14. Your gcd calculation is OK(Line 3-11), call this …

Member Avatar for ddanbe
0
172
Member Avatar for jbennet

My avatar that's me. I photoshopped it and took out the yellows and reds, leaving only the blues. I like blues music very much. :)

Member Avatar for hotmatrixx
0
250

The End.