4,439 Posted Topics
Re: 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. | |
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 … | |
Re: 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!) | |
Re: 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. | |
Re: 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. | |
Re: [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. | |
Re: 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 … | |
Re: 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 … | |
Re: [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... | |
Re: 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 … | |
Re: 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] | |
Re: 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 | |
Re: 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 … | |
Re: 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. | |
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 … | |
Re: 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. | |
Re: 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? | |
Re: 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.:( | |
Re: Check out the System.Resources namespace and : [url]http://www.expresscomputeronline.com/20030407/techspace2.shtml[/url] | |
Re: 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. | |
Re: This gives an explanation : [url]http://www.codeproject.com/KB/cs/serialcommunication.aspx[/url] | |
Re: Seems ok. What does not work? | |
Re: [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." | |
Re: 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] | |
Re: 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? | |
Re: I'm not 100% certain, but I believe you cannot make remote connections to a database if you have only the express edition. | |
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 … | |
Re: [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. | |
Re: Every PC connected to the web is able to do that trick. Are you reinventing the wheel? | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: This might help you : [url]http://www.c-sharpcorner.com/UploadFile/mgold/RayTracing09222005064455AM/RayTracing.aspx[/url] | |
Re: 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] | |
Re: 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 … | |
Re: Use the Timer class. You have a System.Threading.Timer System.Timers.Timer System.Windows.Forms.Timer | |
Re: Intresting discussion about programming in general. But I think this is the wrong forum for it. | |
Re: 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! | |
Re: DON'T SHOUT SO LOUD! I have delicate ears you know... | |
Re: [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 … | |
Re: Every serial port has a PortName property. | |
Re: [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. | |
Re: [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] | |
Re: Check modification dates of apps on CD and on intstallation. Act accordingly. | |
Re: 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! | |
Re: Change [B]ListBoxN.Items [/B]to [B]ArrayList[/B] | |
Re: 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] | |
Re: [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 … |
The End.