4,439 Posted Topics

Member Avatar for scrypt3r

It is the default value : 2^N-1 where N is the number of processors. Each processor is represented by a bit. So 3 would mean you have 2 processors active.

Member Avatar for ddanbe
0
74
Member Avatar for ddanbe

I am simulating a little calculator I have at home: a TI-1706 SV. It just does the basic things nothing special, just like the standard MS calculator. Yes I know it is YAC(yet another caculator) but I am still in a premature learning phase of .NET and C#, so it …

Member Avatar for thoughtcoder
0
501
Member Avatar for peggyw

I don't quite see your problem. If you know the Unix epoch starts at Januari 1, 1970 and a day has 86400 s, it should be easy to calculate what you want. Keep in mind : there are leap seconds! (The year 2038 problem is still a bit away!)

Member Avatar for JerryShaw
0
90
Member Avatar for lyvenice

Use the newline character [B]\n[/B] for that. Like in : [B]this.label1.Text = "azerty" + "\n" + "querty";[/B] Will put [B]azerty querty[/B] in your label.

Member Avatar for brainbox
0
2K
Member Avatar for shazzy99

Perhaps this is not really what you want, but it's a start : [url]http://www.c-sharpcorner.com/UploadFile/mgold/PlayingVideo11242005002218AM/PlayingVideo.aspx[/url] Btw. Mike Gold is a very good author.

Member Avatar for ddanbe
0
104
Member Avatar for jam7cacci

[B]cclick [/B]is a loop variable you may use it as you did in your if statement on line 3. Don't change it as you did on line 8. Changing that variable is normally the responsability of the for statement.

Member Avatar for Ezzaral
0
89
Member Avatar for Ancient Dragon

You cannot believe in evolution theory. In the long run it would become a religion. It is a theory that explains many things in the world around us. So it is a good theory untill we can prove it or untill we find a better one. I adhere to it …

Member Avatar for GrimJack
0
1K
Member Avatar for vijaysoft1

22/7 is a poor approximation of pi. You are essentially calculating the series x - (x^3)/3! + (x^5)/5! - (x^7)/7! + ... that is why n=2 at start and 2 is added every time 3+2=5 5+2=7 etc. Don't know why [B]k=x;[/B] is needed, for use in output you could use …

Member Avatar for vijaysoft1
0
155
Member Avatar for csinquirer

[QUOTE=siddhant3s]Did anyone forgot: The Art of Computer Programing by Donald Knuth?[/QUOTE] xkey mentioned it : TAOCP Let's say we all have some books on computer languages, other computer oriented issues and mathematical isues. I have to much of them to mention them all here...

Member Avatar for ddanbe
0
147
Member Avatar for tintincute

Your code, as you posted it will not work. Try and get a look at this: [CODE=csharp]using System; using System.Collections; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { //An ArrayList can store any number of items via the Add method ArrayList Prices = new ArrayList(); //initialize the …

Member Avatar for dickersonka
0
114
Member Avatar for JooClops

Here is one way to handle an array of buttons : [CODE=csharp]//Create array of 10 buttons numbered 0 to 9. Button[] myArrayOfBtn = new Button[10]; //Now init the buttons for (int i = 0; i < 10; i++) { myArrayOfBtn[i] = new Button(); }[/CODE]

Member Avatar for JooClops
0
406
Member Avatar for bsdpowa

C# allows pointers as you are used to in C++. No need for it: [url]http://www.dijksterhuis.org/using-linked-lists-in-c-part-i/[/url] might help

Member Avatar for bsdpowa
0
114
Member Avatar for tintincute

This while loop continues forever, as [B]i[/B] is always equal to [B]1[/B]. You must change your loop variable in some way, in order to finish your loop. Mostly this is done by adding [B]1[/B] like in [B]i = i +1;[/B] or[B] i++; [/B]in your loop. [B]J[/B] and [B]k[/B] are variables …

Member Avatar for MosaicFuneral
0
132
Member Avatar for sivak
Member Avatar for saramv

Leap year : A year is a leap year if it is divisible by 4. Except if it is also divisble by 100, then it can only be a leap year if it is divisible by 400.

Member Avatar for ddanbe
0
132
Member Avatar for ddanbe

I want to make a square with a [B]0[/B] in it and when I click on it would change into a [B]1[/B]. (e.g. For use in a memory register in which I can set the bits manually.) Piece of cake I thought, derive from the Checkbox class and override the …

Member Avatar for ddanbe
0
124
Member Avatar for sid.coco

I assume you all use VS 2008 C# Express edition. Uder the build menu you find an option : Publish "Name of your app". Use it and see what happens. I did and it worked, but perhaps not like you all want to.

Member Avatar for JerryShaw
0
121
Member Avatar for foxypj

Why split the lines? As I understand it you have to concatenate 7 lines add that to a listbox and then continue with the next 7 lines. Or am I wrong?

Member Avatar for Antenka
0
135
Member Avatar for asme

You HATE making a clock??? Why not go fishing, nitting, try anything you like. Don't make your life a hell give up programming or you'll end up by finding yourself in the middle of a bridge staring at the water below you.:(

Member Avatar for ddanbe
1
289
Member Avatar for d4daud

Check out the System.Resources namespace and : [url]http://www.expresscomputeronline.com/20030407/techspace2.shtml[/url]

Member Avatar for ddanbe
0
45
Member Avatar for srikanth.cpd

The DateTime structure has a Compare method and has a number of operators overloaded. Addition +, Equality =, GreaterThan >, GreaterThanOrEqual >= etc. You can even add a DateTime and a TimeSpan that way.

Member Avatar for ddanbe
0
64
Member Avatar for mortezabazrafsh

This gives an explanation : [url]http://www.codeproject.com/KB/cs/serialcommunication.aspx[/url]

Member Avatar for ddanbe
0
81
Member Avatar for Blkfxx
Member Avatar for ahmed_fawzy

[QUOTE=ahmed_fawzy]i really don't have the idea to work on it [/QUOTE] HE what's UP! Why do I suddenly feel the NEED to say : "I really don't have the idea to work on it."

Member Avatar for thoughtcoder
0
120
Member Avatar for massivefermion

This will satisfy your needs I hope :[url]http://burks.brighton.ac.uk/burks/language/asm/artofasm/artof001.htm[/url] Or download an emulator from here :[url]http://www.emu8086.com/[/url]

Member Avatar for ddanbe
0
144
Member Avatar for turbomen

The comma separates the arguments you provide to a function. Seems to me you have too many commas here. You have two arguments a string and an integer, separate them with one comma. B.t.w. your calculation is wrong. What about leap years?

Member Avatar for FlamingClaw
0
190
Member Avatar for sonakrish

I'm not 100% certain, but I believe you cannot make remote connections to a database if you have only the express edition.

Member Avatar for ddanbe
0
77
Member Avatar for FTProtocol
Member Avatar for ddanbe

I want to set binary values on and of at will. So I derived from the CheckBox class to change it's appearance. Instead of a checkmark I like to implement a [B]0[/B] or [B]1[/B] here. This is the code of my class so far: [CODE=csharp]class BinarycheckBox : CheckBox { public …

Member Avatar for Antenka
0
104
Member Avatar for kashyapanirudh

[QUOTE=kashyapanirudh]Only 50 mails must be displayed per page. How can i do this ?[/QUOTE] Then just display 50 mails on a page. Use a while or for loop. If the 50 mails don't fit in the display area use a scrollbar.

Member Avatar for ddanbe
0
89
Member Avatar for ebiemami
Member Avatar for ddanbe
0
64
Member Avatar for Roobyroo

A DataTable and a GridView are two different things. In your code you are adding a row to the DataTable, which is something that happens in memory somewhere. You show me no code to change the GridView control you see on the screen.

Member Avatar for ddanbe
0
129
Member Avatar for jobi116

DirectoryInfo class has a method GetDirectories(). In his snippet DirectoryInfo is used with its GetFiles() method: [url]http://www.daniweb.com/code/snippet983.html[/url] A TreeView has an ImageList. You can index this list to select the icon you want when you make a new TreeNode.

Member Avatar for ddanbe
0
98
Member Avatar for FallenPaladin

If you can do it at design time you can do it at run time. Make it work at design time, look in the XXX.Designer.cs file how it is done and act accordingly at run time.

Member Avatar for ddanbe
0
145
Member Avatar for konczuras

This might help you : [url]http://www.c-sharpcorner.com/UploadFile/mgold/RayTracing09222005064455AM/RayTracing.aspx[/url]

Member Avatar for ddanbe
0
65
Member Avatar for ctrl-alt-del

In your project solution explorer window right click the bold name and add a new Windows form. Fill it with what you want. Say it is called [B]ExtraForm[/B]. Now in your main form put the following code in a button click event: [B]ExtraForm.Show();[/B]

Member Avatar for ctrl-alt-del
0
140
Member Avatar for songweaver

Start with the leap year function: This function must return true or false, it's input is a year value. Test if the year value is divisible by 100, if so then test if it's divisible by 400, if it does return true. Else (if it not divisible by 100) test …

Member Avatar for songweaver
0
699
Member Avatar for shazzy99

Use the Timer class. You have a System.Threading.Timer System.Timers.Timer System.Windows.Forms.Timer

Member Avatar for ddanbe
0
74
Member Avatar for static

Intresting discussion about programming in general. But I think this is the wrong forum for it.

Member Avatar for ddanbe
0
84
Member Avatar for 2009march

This is perhaps not what you want but it might help you on the way. [url]http://www.codeproject.com/KB/cs/control_e_appliances.aspx[/url] Succes!

Member Avatar for ddanbe
0
131
Member Avatar for PRATS 1990
Member Avatar for foxypj

[QUOTE=foxypj]but it doesn't work.[/QUOTE] It would help alot if you would say [B]WHAT [/B]doesn't work. Some remarks to start: I (believe me I'm not alone) hate a [B]goto[/B] statement. Although I can live with only one though. Try to eliminate it if you can. 1 ounce = 28.34952 grams so …

Member Avatar for foxypj
0
185
Member Avatar for narayanc1
Member Avatar for itsrahulk

[QUOTE]X)YF(6ÿÿÿÿÿ™Iÿÿÿÿ which is in ascii [/QUOTE] This is binary code displayed as ascii characters a .dat file is mostly not readable as text as you can see for yourself.

Member Avatar for alc6379
0
72
Member Avatar for Muaz AL-Jarhi

[url]http://www.amazon.com/3D-Programming-Windows-Charles-Petzold/dp/B001E3RPFU/ref=sr_1_18?ie=UTF8&s=books&qid=1237576004&sr=8-18[/url]

Member Avatar for ddanbe
0
108
Member Avatar for manjusaharan
Member Avatar for manjusaharan
0
108
Member Avatar for TobbeK

If you looked in the csharp code snippets you would have found this : [url]http://www.daniweb.com/code/snippet1008.html[/url] Which probably solves your problem. Succes!

Member Avatar for TobbeK
0
278
Member Avatar for zahraj
Member Avatar for thacravedawg

You generally print using a Graphics object. With it you can print text and images. (I do) I am not into xml (yet) so I cannot tell you anything about that. Among the tutorials you found this is perhaps one you missed : [url]http://www.devarticles.com/c/a/C-Sharp/Printing-Using-C-sharp/[/url]

Member Avatar for ddanbe
0
122
Member Avatar for Madbuda

[B]Ancient Dragon [/B]don't let a kid that states he/she is 17 but acts like he/she is 7 intimidate you. If this also is flaming I'll gladly stand next to[B] niek_e[/B] (the SQL master!) to take the infraction. Aren't there enough chit-chat sites where he/she can go his way? Btw, I …

Member Avatar for jbennet
0
414

The End.