4,439 Posted Topics
Re: ListBox and ListView are both meant to display a list of items. So your first ListBox seems ok to me. For the second I should consider a DataGridView, this would make your well crafted dialog window obsolete though. | |
Re: Hi CSW110, welcome on Daniweb! Suggest you download Visual Studio Express C# edition from Microsoft. It comes for free, so if you don't like it not much harm is done. You also might find some threads here relating to Excel and C#. | |
Re: Hi afrinahossain, welcome on Daniweb! Without some code it is hard to tell what exactly the problem is and it is even harder to give a solution. | |
Re: First : Make all your vars of type float. The time I have to pay a meal that exceeds the range of a float I stop eating let alone that I have to pay in a range that would exceed a double type! Second : Why are you paying your … | |
Re: Leave out the curly braces in your format. Tried this and it worked: [CODE]namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Int64 i = 100072305608500; Console.WriteLine(i.ToString(string.Format("##0/00-00-000-00W0/##"))); Console.ReadKey(); } } }[/CODE] | |
Re: Hi, karismasa, welcome at DaniWeb! Some time ago I worked on something just that. I don't have it here at hand, but I let you know more as soon as I can. See ya:) | |
Re: @apegram: The OP forgot to mention the value 0,02 in his first post. Although he mentioned it in his second post in his array definition. | |
| |
Re: This is how I did it some months ago : [CODE=c#]using System; namespace MarMath { /// <summary> /// /// /// struct for complex numbers /// /// See also [url]http://en.wikipedia.org/wiki/Complex_number[/url] /// A collection of as much functions and issues I could find about it on the web. /// Special thanks to … | |
Re: In case you did not notice, we live in the 21st century. If you like to write on a parchment with a goose feather be my guest... | |
Re: Hi JCel, welcome here at Daniweb! Normally, you have to show already some effort before posting here, but if you absolutely have no clue on how to start, [url=http://www.dreamincode.net/forums/showtopic124479.htm]this article[/url] may help. | |
Re: String class has a Length property. See [url=http://msdn.microsoft.com/en-us/library/system.string_members.aspx]this site[/url] to find out more what you can do with C# strings. | |
Re: If you like to read a book with black pages and white letters or if you have just finished school and are still used to a blackboard, be my guest. I like to read text on a computer screen on a white background and black letters. But that being said, … | |
Re: Should have posted this in a new thread. Set the [B]FormBorderStyle [/B]property of your form to [B]FixedSingle[/B]. | |
Re: Is this a Visual Basic or a C# question? I both cases you could better use a DataGridView instead of a DataGrid. | |
Re: The ToString method defaults to the standard format for these kind of things. You can pass in a format of your own here. Or are you looking to get a grasp on bignums? EDIT: I forgot: welcome on this site:) | |
Re: Hi mp.nighthawk, welcome on Daniweb! It would take you 2000 terms to calculate pi to 3 decimal places. Try it out with the C# code given in the previous thread. Do you see the pattern? | |
Re: You can make use of the WebBrowser control you find in your toolbox when you are in design mode. | |
Re: Line 41 of your code : Byte[] byteBLOBData = new Byte[0]; An array of zero elements? | |
Re: I guess this is obvious: private System.Media.SoundPlayer mySoundPlay = new System.Media.Sound[B]Player();[/B] | |
Re: I use the ArtIcons Pro tool from [url=http://www.aha-soft.com/articons/index.htm]this site[/url] from time to time. perhaps you could ask them for more info. You can download a trial version. | |
Ever wondered how to calculate the date of easter? Well here is how to do it in C# | |
![]() | Re: I guess you downloaded Visual Studio 2008 C# Express. It has a "Getting Started" section, well... to get you started. Try it! ![]() |
Re: Detroit --> Deetrooit adroit --> adrrwat | |
Re: Line 26 message += verseNum; should read message += verseNum.ToString(); You cannot assign integers to strings, so first convert your integer verseNum to a string with the ToString method. | |
Re: My password used to be [B]Myosotis[/B] which is the Latin name of a little blue flower commonly know under the name forget-me-not. | |
Re: Hi lukeward, welcome to Daniweb. Perhaps this [url]http://www.daniweb.com/code/snippet217417.html[/url] may shed a light. | |
Re: Leave out a public keyword like this: [CODE=c#]interface vehicle { void displayName();} class Car : vehicle { void displayName() { } }[/CODE] | |
Re: Hi god of the water, welcome at Daniweb.:) Line 31 does absolutely nothing, so why is it there? You are setting the Width and the Height of the Brick that is hit to zero. But in your Brick method (should call it DrawBricks!) You are using predefined constants for the … | |
Re: What exactly do you mean by "my output gets destroyed"? I see a lot of Console.Clear() in your code. This method erases anything you already wrote to the console. I don't see why your class StudentTuitionFee is abstract, I don't see an abstarct keyword. To me and the C# compiler … | |
Re: The Timer.Interval property is defined as a double, so if you want 10 microsecs you could try [B]Timer.Interval = 0.01;[/B] But as sknake pointed out, I also doubt if it works, should say give it a try and succes! | |
Re: You could observe that Pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 - 4/11 + .... is the same as Pi = 4*(1/1 - 1/3 + 1/5 - 1/7 + 1/9 - 1/11 + ....) perhaps this should ring a bell? | |
Re: A BitMap has a GetPixel method which returns a Color struct for the Color at coordinates X Y in the Bitmap. A Color struct can Compare one Color with another. So loop through every pixel of your bitmap and test for your color. If found you got your desired position. | |
Re: Try something like this: [CODE=c#] string text = "2.234"; string strToParse = text.Replace('.', ','); //replace point with comma decimal x = decimal.Parse(strToParse);[/CODE] | |
Re: To get your resources in your program do something like this: [CODE=c#]Icon ico = new Icon(Properties.Resources.iconname, new Size(32,32));[/CODE]Perhaps this should work also, did not test it... [CODE=c#]Icon ico = Properties.Resources.iconname;[/CODE] [B]iconname [/B]is the name the icon has in the resourcefile. | |
Re: You will always see the directories in the directory you are in with OpenFileDialog. And if you don't see any *.txt files that could be because there are no *.txt files in that specific directory. | |
Re: You could place the code of sfrider0 after InitialiseComponent in the contructor of your form, or in the form load event handler. Your timer Tick event handler should check for errors etc. and act as you wish. Succes! | |
Re: Search this site! I searched for [B]mail C#[/B] and found among others: [url]http://www.daniweb.com/forums/thread242773.html[/url] [url]http://www.daniweb.com/forums/thread246133.html[/url] | |
Re: Great tip! But with a using statement you can also leave out the sw.Close on line 12. | |
Re: Hi ramabala9 welcome here! Look [url=http://msdn.microsoft.com/en-us/library/system.windows.forms.monthcalendar_members(VS.71).aspx]on this site[/url] for what you can do with MonthCalender. If that is not enough, You could try to derive a class from it to let it do the things you want to. Succes! | |
Re: If you want to start functional programming, perhaps you should consider F#, the new kid in town. It has some roots in Haskell and Ocaml. | |
Re: Open Visual Studio. From the File menu, choose New Project... Give your project a suitable name and click OK. Continue from there. But I was just wondering, what do you mean by a simulator? A flight simulator is somthing different than and electric circuit simulator etc. Please explain. | |
Re: Maby this video [url]http://windowsclient.net/learn/video.aspx?v=30436[/url] can help you also. | |
Re: If you did a search here, you would probably have found this snippet : [url]http://www.daniweb.com/code/snippet1008.html[/url] | |
Re: OpenFileDialog has a RestoreDirectory property: [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.filedialog.restoredirectory(VS.71).aspx[/url] | |
Re: See you are using types from a dotnetCHARTING namespace, do know how these work via some sort of documentation? I don't see some kind of ShowtheGraph method in here. | |
Re: Consider .NET as a library. Read the link provided by sknake. It contains examples on how to code in C# when using the registry. | |
Re: Way back in the century that lies beyond us, I programmed a Macintosh. Every program on it consisted of an endless loop routine which was strangely enough often called DoEvents! Inside you had to grab the next event in the queue and then via a case statement you would detect … | |
Re: An enumeration is of type integer, do you realise I did some effort to give you this info. I expect the same from you next time you ask a question! Look up about enumerations in your textbook on the web etc. first. Now this should do the trick: [CODE=C#]using System; … |
The End.