4,439 Posted Topics

Member Avatar for ticktock

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.

Member Avatar for ddanbe
1
306
Member Avatar for CSW110

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

Member Avatar for ddanbe
0
174
Member Avatar for afrinahossain

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.

Member Avatar for ddanbe
0
45
Member Avatar for cassie_sanford

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 …

Member Avatar for Fbody
0
411
Member Avatar for scottlafoy

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]

Member Avatar for DanielGreen
0
131
Member Avatar for karismasa

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

Member Avatar for ddanbe
0
189
Member Avatar for Nerathas

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

Member Avatar for ddanbe
0
122
Member Avatar for chandrumca2010
Member Avatar for ddanbe
0
45
Member Avatar for jballen87

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 …

Member Avatar for ddanbe
0
857
Member Avatar for lewashby

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

Member Avatar for jonsca
0
542
Member Avatar for JCel

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.

Member Avatar for ddanbe
0
126
Member Avatar for jawaad17

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.

Member Avatar for ddanbe
0
58
Member Avatar for lewashby

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

Member Avatar for kvprajapati
-1
101
Member Avatar for charqus

Should have posted this in a new thread. Set the [B]FormBorderStyle [/B]property of your form to [B]FixedSingle[/B].

Member Avatar for ddanbe
0
145
Member Avatar for carylle

Is this a Visual Basic or a C# question? I both cases you could better use a DataGridView instead of a DataGrid.

Member Avatar for akamini
0
110
Member Avatar for Cap'nKirk

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

Member Avatar for Cap'nKirk
0
374
Member Avatar for mp.nighthawk

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?

Member Avatar for ddanbe
0
57
Member Avatar for charqus

You can make use of the WebBrowser control you find in your toolbox when you are in design mode.

Member Avatar for ashishkumar008
0
131
Member Avatar for nasir.ud

Line 41 of your code : Byte[] byteBLOBData = new Byte[0]; An array of zero elements?

Member Avatar for ddanbe
0
2K
Member Avatar for charqus

I guess this is obvious: private System.Media.SoundPlayer mySoundPlay = new System.Media.Sound[B]Player();[/B]

Member Avatar for ddanbe
0
61
Member Avatar for RoyMicro

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.

Member Avatar for lee.j.baxter
0
493
Member Avatar for ddanbe
Member Avatar for ddanbe
2
999
Member Avatar for Malaoshi

I guess you downloaded Visual Studio 2008 C# Express. It has a "Getting Started" section, well... to get you started. Try it!

Member Avatar for Malaoshi
1
201
Member Avatar for vmanes
Member Avatar for lewashby

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.

Member Avatar for ddanbe
0
113
Member Avatar for Salem

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.

Member Avatar for PedroStephano
0
707
Member Avatar for lukeward

Hi lukeward, welcome to Daniweb. Perhaps this [url]http://www.daniweb.com/code/snippet217417.html[/url] may shed a light.

Member Avatar for ddanbe
0
44
Member Avatar for wen30

Leave out a public keyword like this: [CODE=c#]interface vehicle { void displayName();} class Car : vehicle { void displayName() { } }[/CODE]

Member Avatar for ddanbe
0
104
Member Avatar for aquaticdeity

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 …

Member Avatar for aquaticdeity
0
1K
Member Avatar for ticktock

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 …

Member Avatar for ticktock
0
1K
Member Avatar for mnf

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!

Member Avatar for Diamonddrake
0
3K
Member Avatar for songweaver

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?

Member Avatar for apegram
2
2K
Member Avatar for Kligham

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.

Member Avatar for Diamonddrake
0
364
Member Avatar for chromatinpt

Try something like this: [CODE=c#] string text = "2.234"; string strToParse = text.Replace('.', ','); //replace point with comma decimal x = decimal.Parse(strToParse);[/CODE]

Member Avatar for chromatinpt
0
79
Member Avatar for DarkoX

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.

Member Avatar for ddanbe
0
202
Member Avatar for MxDev

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.

Member Avatar for Kiran.dks
0
185
Member Avatar for lebanese007

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!

Member Avatar for serkan sendur
0
195
Member Avatar for sfrider0

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]

Member Avatar for sfrider0
0
204
Member Avatar for chromatinpt

Great tip! But with a using statement you can also leave out the sw.Close on line 12.

Member Avatar for chromatinpt
1
178
Member Avatar for ramabala9

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!

Member Avatar for ddanbe
1
94
Member Avatar for malloc84
Member Avatar for AralX

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.

Member Avatar for kudresov
0
132
Member Avatar for niro_fernando

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.

Member Avatar for amlanjyoti.s
0
141
Member Avatar for carey_amanda

Maby this video [url]http://windowsclient.net/learn/video.aspx?v=30436[/url] can help you also.

Member Avatar for ddanbe
0
107
Member Avatar for love_dude1984

If you did a search here, you would probably have found this snippet : [url]http://www.daniweb.com/code/snippet1008.html[/url]

Member Avatar for rodrigobraz
0
453
Member Avatar for RoyMicro

OpenFileDialog has a RestoreDirectory property: [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.filedialog.restoredirectory(VS.71).aspx[/url]

Member Avatar for sknake
0
500
Member Avatar for Lukezzz

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.

Member Avatar for privatevoid
0
221
Member Avatar for faa77

Consider .NET as a library. Read the link provided by sknake. It contains examples on how to code in C# when using the registry.

Member Avatar for ddanbe
0
171
Member Avatar for kobi

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 …

Member Avatar for ddanbe
1
155
Member Avatar for Katsurou

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

Member Avatar for Katsurou
1
238

The End.