4,439 Posted Topics
Re: 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] | |
Re: 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! | |
![]() | Re: 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. ![]() |
Re: 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. | |
Re: 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. | |
Re: Try [B]tbxOutput.Refresh();[/B] after every text update of your textbox. | |
Re: A simple bubblesort will indeed do the trick here. Also, remember that classes like Array or List have a Sort method. | |
Re: 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... | |
Re: 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. | |
Re: Did you search the web? Or have you absolutely no clue as how to tackle your problem? | |
Re: Welcome here at Daniweb, roadmaster! Using the [B]Refresh() [/B]method of your listbox, should do the trick. | |
Re: 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 … | |
Re: Read this [url]http://msdn.microsoft.com/en-us/library/system.random.aspx[/url] | |
Re: 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. | |
Re: Post #7 code line 5. Why are you making a new employee list every time you add a new employee? | |
Re: 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. | |
Re: 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 … | |
Re: 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... | |
Re: 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];) | |
Re: 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? | |
Re: [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 … | |
Re: You mean something like [B]1.23 + 45.6[/B] and after a click on the =button it would become [B]46.83 [/B]? | |
Re: 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 … | |
| |
Re: 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? | |
Re: 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 … | |
Re: 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) … | |
Re: Hi rooboy69, welcome at Daniweb! Some C# code would be nice. :) Could not understand the second part of your question well, so please explain. | |
Re: 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. | |
Re: Perhaps this snippet can help you: [url]http://www.daniweb.com/code/snippet217185.html[/url] | |
Re: 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] | |
Re: 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.:) | |
Re: 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. | |
Re: 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... | |
Re: 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. | |
Re: 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() { … | |
Re: 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) | |
Re: Hanging is often a sign you entered an endless loop somewhere. Without some code from you, it is hard to tell if it is. | |
Re: 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 … | |
Re: 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] | |
Re: 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! :) | |
Re: 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 … | |
Re: Perhaps use a DataGridView with one columnand with the hours in the RowHeaders? | |
Re: 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. :) | |
Re: Do you mean the light off the stars is influenced by the atmosphere? Like sometimes when the sun goes under? | |
Re: 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 … | |
Re: 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 … | |
Re: 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. :) |
The End.