4,439 Posted Topics
![]() | Re: An enum under the hood is stored by most compilers as an integer so the name Sunday is really a placeholder for the integer value 0. Monay evaluates to 1, Tuesday to 2 and so on. You are giving the variable today the value of "Sunday" as an example. Because … |
Re: An element? Which element, chemical? Be more specificic with your question please. | |
Re: You don't have to do this [B]StreamWriter myStreamWriter = null;[/B] Try using this syntax : using ( StreamWriter myStreamWriter = File.CreateText(FileName) ) { } That way you can forget Close, Dispose etc. C# will take care of it. And btw. if you close an existing file, why do you want … | |
Re: Proceed in the same way. Find the previous '.', then move forward until the first capital. | |
Re: Select the properties icon in the solution explorer. A window opens. Select the debug tab on the left. Here you can fill in command line arguments. | |
Re: I you don't show us your relevant code I am affraid we can do much to help you out. | |
Re: If you are a C++ developer as your signature states that should not pose that much of a problem, or am I misunderstandng what you ar asking? Please refrase, so I can understand what you are trying to say. | |
Re: What I could get out of your unformatted code was if(remainder==2) remainder=2; if(remainder!=2) remainder=0; should be better : [COLOR="Red"]if(remainder==2) remainder=2;[/COLOR]leave this away-->if it IS 2 why set it to 2 ? if(remainder!=2) remainder=0;-->+-OK, because if you want to print 2 it will print 0 | |
Re: A native compiler never compiles to assembly it compiles to machincode (zeros and ones). Assembly language is just a bunch of "mnemonics" so that we can get a grasp at what all those zeros and ones mean. It's interesting and instructive to know what it does, but I would not … | |
When I want an array of integers with 4 rows and 2 columns I do [B]int[,] array = new int[4, 2];[/B] and then use [B]array[0, 0]=123;[/B] to set the first element. So for the matrix input usercontrol I'm working on I thought I need something like : [B]TextBox[,] elements = … | |
Re: Create a file with your path on the C-drive. Write to it. Close the file. Done. Look at the File class for details. | |
Re: TurtleGraphics come from the LOGO programming language. Do a search on LOGO and you will find something like this: [url]http://www.bfoit.org/itp/JavaTurtleGraphics.html[/url] Hope it helps. | |
Re: This [url]http://en.wikipedia.org/wiki/C_Sharp_(programming_language[/url]) should give you a good idea of what C# is. | |
![]() | Re: Why don't you use something like Mygroupbox.BackColor = Color.FromArgb(alpha,Color.Maroon); alpha being the transparancy : 0 = completly transparant , 255 = completly opaque. Have not tested it, hope it helps. ![]() |
Re: You have to use a DbDataAdapter for that. It has properties like SelectCommand. A DataSet is what it's says : a DataSet. | |
Re: If I understand your explanation well, do the following: Read a line of your file. Is line in array? no: put it there. Increment a counter. yes or else : read next line. until EOF | |
Re: Regardless if this is a joke or not, zeros and ones don't exist! IMHO A hard disk stores levels of "magnetism" which correspond to levels of "voltage" (mostly 0 and 5 volts) When a computer "reads" this is what you could call a "bitstream". It depends on the programmer how … | |
Re: [url]http://www.daniweb.com/forums/thread5939.html[/url] | |
Re: Correct but weird : [CODE=pascal]procedure display_monies0 (counter: integer); begin if counter = 0 then writeln(' /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/'); if counter = 0 then writeln(' / '); if counter = 0 then writeln('| You have Matched ',counter,' Balls and Have Won Nothing ! |'); if counter = 0 then writeln(' \ /'); if … | |
Re: Trigonometry is essential. Say you want to make a clock, how would you calculate the positions of the hourhand? Right trig! So you need to be familiar with at least basic algebra too. In 3D apps you need to be familiar with translations, rotations and scaling etc. These things are … | |
Re: [QUOTE]B b = new B();[/QUOTE] Under the hood [B]new B() [/B]might even change so many variables that it is possible the world is totally changed after executing this statement. | |
Re: Look at [url]http://www.microsoft.com/express/[/url] Find Visual Basic, download is free. | |
Re: Read all about it: [url]http://en.wikipedia.org/wiki/C_preprocessor[/url] | |
Re: [QUOTE]and I had nothing better to do[/QUOTE] IMHO you could improve your program by deleting it and make something that's really usefull. | |
| |
Re: If you are using VS 2008 or VS 2005 just drop an OpenFileDialog from the toolbox on your form | |
Re: A ComboBox, as it's name implies is a combination of a TextBox and a ListControl. If you type an 'a' into the "TextBox" you will see that the ComboBox.Text property contains an 'a'. To put that 'a' into the dropdownlist you have to do a ComboBox1.Items.Add or .Insert | |
I'd like to write a matrix evaluation tool.(add, multiply, inverse etc.) So I need some way to manually input the values of a matrix. I don't want the input to be console like : "Give val for r1,c2" or something like that. I want a forms app with a table … | |
Re: It seems weird to me that a method called AddSettings would create a global variable you declared earlier. | |
Re: It might have something to do with interfering international settings(eg Arabic is written from riht to left) because other Flags as DirectionVertical behave as expected. It might be that it is just a plain bug -->one address : Microsoft. THe only solution I see for the moment if you want … | |
Re: Your code looks alright at first sight. But System.Drawing.Imaging.PixelFormat.Format32bppArgb seems a bit tricky to me (colordept etc.) perhaps try System.Drawing.Imaging.PixelFormat. DontCare Hope this helps. | |
Re: Perhaps if you let the main thread spawn a new thread. You could pause the new thread and let the main thread continue? | |
Re: [QUOTE=FTProtocol]I need my program to "stop" as the timer is running [/QUOTE] imho that is what you asked and iDeveloper gave you a correct answer. | |
Re: What's all the fuss about god or no god! Evolution or creationism. We are all chemical reactions! I must admit it is a complex chemical reaction. What can a chemical reaction say about evolution? We are by the fact that we are. We need oxigen and other chemicals! Stop delivering … | |
Re: Make a struct from your data : struct Employee { string name; public int age; public bool ID; private int salary; } Now make an ArrayList of Employee as RamyMahrous pointed out. | |
Re: If you know which dll your problem is half solved. | |
Re: Why don't you start where I would start: go to [B]Build GPS Software With GPS.NET[/B] then choose [B]Read Online Documentation[/B] Excellent site btw. | |
Re: For angle conversions you can look at [url]http://www.daniweb.com/code/snippet976.html[/url] There is also a Vector structure in C# which has an Anglebetween method. | |
Re: I think this is more of an issue in an ASP forum. | |
Re: Error 1 : private void OpenSerialPort() should be private [B]static [/B]void... maybe this eliminates some of your other errors. Let me know. | |
Re: Do you mean something like this? [url]http://www.jmckell.com/contents.html[/url] | |
Re: [QUOTE=tino]I have browsed through the visual studio program, but can not locate where you choose to incorporate the dll's when making a .exe file.[/QUOTE] In Solution Explorer right click on the References map. Choose Add Reference... Add all the dll's of the world if you like, they will be linked … | |
Re: If a base class is very general you can prevent instantiation of this class by making it abstract. Example: Polygon-->Quadrilateral-->Square Here you make Polygon abstract. What would you want to do with a Polygon?It just holds some common properties for a triangle,rectangle etc. Even Quadrilateral could be abstract. The class … | |
Re: ZipStream.Write(byte[], 0, 1); ? byte[] is a declaration of a byte array, where is the variable and where is this variable assigned? The last parameter is 1 are you going to compress 1 byte? This should be the lenght of the bytes you are trying to compress. Never feel stupid … | |
Re: You could look at [url]http://www.codeproject.com/KB/tabs/flattabcontrol.aspx[/url] To make a gradient color use (as an example) : LinearGradientBrush MyLinGradBru = new LinearGradientBrush(MyRect,Color.White,Color.Black,LinearGradientMode.ForwardDiagonal) Which will give a gradient from white to black from topleft to bottomright in MyRect. | |
Re: What have you written so far? I assume it should be in C++ since it is posted here. What kind of problems do you have with your code? | |
Re: Try this->radiobutton4->Checked although it should work without. I have the effect you want if I Hover VERY slowly over the control. |
The End.