4,439 Posted Topics

Member Avatar for RenFromPenn

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 …

Member Avatar for Alibeg
0
134
Member Avatar for Jacky1

An element? Which element, chemical? Be more specificic with your question please.

Member Avatar for Jacky1
0
102
Member Avatar for piotr_kast

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 …

Member Avatar for piotr_kast
0
168
Member Avatar for serhannn

Proceed in the same way. Find the previous '.', then move forward until the first capital.

Member Avatar for Comatose
0
163
Member Avatar for laconstantine

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.

Member Avatar for ddanbe
0
87
Member Avatar for Dav1d1
Member Avatar for DevGeek

I you don't show us your relevant code I am affraid we can do much to help you out.

Member Avatar for DevGeek
0
2K
Member Avatar for Phil++

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.

Member Avatar for u8sand
0
168
Member Avatar for winry

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

Member Avatar for winry
0
293
Member Avatar for wien
Member Avatar for winrawr

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 …

Member Avatar for winrawr
0
159
Member Avatar for ddanbe

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

Member Avatar for Ramy Mahrous
0
117
Member Avatar for ayi_102

Create a file with your path on the C-drive. Write to it. Close the file. Done. Look at the File class for details.

Member Avatar for ayi_102
0
168
Member Avatar for christiangirl

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.

Member Avatar for ddanbe
0
95
Member Avatar for k59smooth

This [url]http://en.wikipedia.org/wiki/C_Sharp_(programming_language[/url]) should give you a good idea of what C# is.

Member Avatar for jbennet
0
162
Member Avatar for Ajantis

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.

Member Avatar for Ajantis
0
7K
Member Avatar for karthi_selva

You have to use a DbDataAdapter for that. It has properties like SelectCommand. A DataSet is what it's says : a DataSet.

Member Avatar for karthi_selva
0
169
Member Avatar for michaelmorris

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

Member Avatar for michaelmorris
0
323
Member Avatar for serkan sendur

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 …

Member Avatar for serkan sendur
0
213
Member Avatar for harryoma
Member Avatar for smorton123

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 …

Member Avatar for jsosnowski
0
231
Member Avatar for mrnutty

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 …

Member Avatar for mrnutty
0
142
Member Avatar for srubys

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

Member Avatar for LizR
0
164
Member Avatar for ryan311

Look at [url]http://www.microsoft.com/express/[/url] Find Visual Basic, download is free.

Member Avatar for ddanbe
0
49
Member Avatar for nitu_thakkar
Member Avatar for ddanbe
0
146
Member Avatar for shazzy99
Member Avatar for Zach1188

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

Member Avatar for Murtan
0
117
Member Avatar for mrnutty
Member Avatar for shazzy99

If you are using VS 2008 or VS 2005 just drop an OpenFileDialog from the toolbox on your form

Member Avatar for LizR
0
285
Member Avatar for edgar5

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

Member Avatar for Comatose
0
277
Member Avatar for ddanbe

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 …

Member Avatar for LizR
0
118
Member Avatar for Grimshad

It seems weird to me that a method called AddSettings would create a global variable you declared earlier.

Member Avatar for Grimshad
0
181
Member Avatar for vckicks

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 …

Member Avatar for vckicks
0
200
Member Avatar for kaczmar86

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.

Member Avatar for ddanbe
0
295
Member Avatar for FTProtocol

Perhaps if you let the main thread spawn a new thread. You could pause the new thread and let the main thread continue?

Member Avatar for ddanbe
0
186
Member Avatar for FTProtocol

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

Member Avatar for LizR
0
113
Member Avatar for GrimJack

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 …

Member Avatar for GrimJack
0
1K
Member Avatar for drfarzad

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.

Member Avatar for Ramy Mahrous
0
357
Member Avatar for waldchr
Member Avatar for bulawa2002

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.

Member Avatar for bulawa2002
0
82
Member Avatar for midimatt

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.

Member Avatar for ddanbe
0
132
Member Avatar for mkn07
Member Avatar for james557

Error 1 : private void OpenSerialPort() should be private [B]static [/B]void... maybe this eliminates some of your other errors. Let me know.

Member Avatar for ddanbe
0
143
Member Avatar for ScaryMan

Do you mean something like this? [url]http://www.jmckell.com/contents.html[/url]

Member Avatar for ScaryMan
0
50
Member Avatar for tino

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

Member Avatar for tino
0
253
Member Avatar for Simran1

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 …

Member Avatar for Agni
0
157
Member Avatar for cVz

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 …

Member Avatar for ddanbe
0
162
Member Avatar for bhaskerlee

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.

Member Avatar for bhaskerlee
0
112
Member Avatar for saalvi

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?

Member Avatar for death_oclock
0
129
Member Avatar for Lukezzz

Try this->radiobutton4->Checked although it should work without. I have the effect you want if I Hover VERY slowly over the control.

Member Avatar for cikara21
0
121

The End.