4,439 Posted Topics
Re: Why do you want to mix a Console and a Forms application? | |
Re: Try this, fill in 2 and see what happens and compare with your code: [CODE=c#]class Program { static void Main(string[] args) { int n, i; string[] str = new string[10]; Console.WriteLine("enter the limit:"); n = int.Parse(Console.ReadLine()); for (i = 0; i < n; i++) { str[i] = Console.ReadLine(); } Array.Sort(str); … | |
Re: Perhaps a look at this [url=http://www.daniweb.com/software-development/csharp/code/364073]code snippet[/url] will shine a light. | |
Re: You are probabl in debug mode. The console will not stay on screen, so add a Console.Read or Console.ReadKey. That way your program is waiting untill you press a key. | |
Re: Maybe this can help: [url]http://www.codeproject.com/KB/cs/usecdlllibincs.aspx[/url] | |
Re: This is a C# forum so please don't post VB examples. [url]http://msdn.microsoft.com/en-us/library/aa287529(VS.71).aspx[/url] | |
Re: have a look at this fine documentation:[url]http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keydown(v=VS.90).aspx[/url] | |
Re: Why did you post a normal question as a code snippet? Hope the monitors can set it right. | |
Re: [QUOTE=localp]Give me step by step instructions how to do this.[/QUOTE] Does not sound very friendly, doesn't it? So, I don't expect many answers to your question. :) | |
Re: He! I had the same issue some time ago, look here: [url]http://www.daniweb.com/software-development/csharp/threads/335414[/url] | |
Re: Never worked with Zedgraph. But if your aims are not that high you cold have a look at this and change it to what you want: [url]http://www.daniweb.com/software-development/csharp/code/217204[/url] Otherwise, I guess the documentation of Zedgraph will help you out. | |
Re: Store your array in a file on disk instead of in RAM. | |
Re: This is code I use in one of my programs: [CODE=c#]// read CSV file from LIMS and make a Datatable Object public DataTable BuildDataTable(string fileFullPath, char seperator) { const int EOF = -1; DataTable myTable = new DataTable("MyTable"); DataRow myRow; StreamReader myReader; string Title; try { myReader = new StreamReader(fileFullPath); … | |
Re: Study this: [url]http://msdn.microsoft.com/en-us/library/ddtce152.aspx[/url] | |
Re: You have to add your textboxes to the control collection of the form. [B]this.Controls.Add(MyTextBox);[/B] [B]this [/B]refers to the form. There is also an AddRange method. | |
Re: On the right hand side of your post are similar threads, like this one:[url]http://www.daniweb.com/software-development/csharp/threads/194234[/url] | |
Re: This keeps to be a recurring question. Try the search function on this site first before posting. I tried to search for [B]array, textbox, sudoku[/B] in the search string, the first hit was : [url]http://www.daniweb.com/forums/thread180533.html[/url] | |
Re: On line 1 of your code you created an array of 5 PictureBoxes. You still have to create the PictureBoxes! Line 2 will give a NullReferenceException! You have to do something like this: [CODE=c#]arrpic[0] = new PictureBox(); arrpic[0].Image = Properties.Resources.Pic1;[/CODE] | |
Re: Use a timer [url]http://msdn.microsoft.com/en-us/library/system.timers.timer.aspx[/url] | |
Re: Some possibilyties: [CODE=C#] string hex = "F0000020"; int p = Convert.ToInt32(hex, 16); int n = Int32.Parse(hex, System.Globalization.NumberStyles.HexNumber);[/CODE] | |
Re: Hi FELIGO, welcome :) Sure we can help! What have you tried for yourself?If you post code, post it in CODE tags!!! | |
Re: [QUOTE=vehpurple]i was about half way done, and i simply dont have time.[/QUOTE] HUH!!! You should read the rules of this site. You should place posted code between CODE tags. But I guess you don't have time to do all that. Tell me honestly, why should I spend time, besides the … | |
Re: Do you know what Google is? Example: [url]http://en.wikipedia.org/wiki/Common_Language_Specification[/url] Happy computing. | |
Re: Allthough you are not using any IO functions here, [B]#include<stdio.h>[/B] will not work in C#, use [B]using System;[/B] and other using clauses. | |
Re: Read books about DB design, ADO.NET, SQL etc. Follow a lessons. Still busy myself with this stuff :) | |
Re: Also, have a look at [url=http://www.csharp-examples.net/socket-send-receive/]this[/url] | |
Re: I agree with you both. Amazing feature of the editor in VS. I used to work with [url=http://en.wikipedia.org/wiki/Vi]this editor[/url]. I can tell you not only #region is an improvement. :| | |
Re: @mitja : you probably missed this :) : [url]http://www.daniweb.com/software-development/csharp/threads/363377[/url] @galhajaj : Hi! Me again :) As Mitja says, do something in your Square click handler. [CODE=c#]private void Square_Click(object sender, EventArgs e) { Square SquareClickedOn = sender as Square; //The sender object contains the object that was clicked on //In this … | |
Re: Perhaps you could consider a switch statement. look here: [url]http://msdn.microsoft.com/en-us/library/06tc147t.aspx[/url] | |
Re: Hi dashby! Welcome here :) Put all (or most?) of the var declarations outside you button2_Click method. Lines 57 and 58 should be something like String tall = textBox1.Text; // gets entry made into textbox if ((tall == String.Empty)// if no entry made Also, have a look at this snippet: … | |
Re: Leave Main for what it is. Change the text of your Label in the Clickevent handler of your Panel if you like. | |
Re: You created a variable [B]deletebox [/B]in a method. After the method is finished, [B]deletebox [/B]does not exist any more. | |
Re: TimeSpan is the way to go. AM and PM have nothing to do with it, say you have a timespan of 37 hours 15 minutes and and 13 seconds. Would that be AM or PM? I think this is about hours worked, right? | |
Re: Hi ramesh m welcome here at Daniweb :) What have you tried so far? Could you show us the code you already have? | |
Re: Seems you can translate a binary file into a textfile, so what is the problem of extracting date,time and value strings out of it? Please be VERY clear in your answer. I live in Belgium, next to your country so I also don't normally speak or write English. I often … | |
Re: The Main method is in fact always public. It [B]always [/B]gets executed, it is the entrypoint of every C# application. | |
Re: Is the [B]face [/B]you are talking about a picture(photo) or a drawing? | |
Re: The moment your conception started, you are busy dying! So what is there to be affraid of? | |
Re: Study this: [url]http://msdn.microsoft.com/en-us/library/bb384054.aspx[/url] | |
Re: If this is supposed to be C# it will not compile. For a starter change [B]" [/B]in [B]"[/B] and [B]< [/B]in [B]<[/B] | |
Re: Check out MouseDown, MouseUp and MouseMove events. | |
Re: What is the type of [B]objDataRow["Counter"] [/B]? C# is very strict on types. | |
Re: An [url=http://splinter.com.au/sorting-enormous-files-using-a-c-external-mer]external merge sort[/url] can do the job. | |
Re: Perhaps have a look at [url=http://en.wikipedia.org/wiki/IEEE_754-2008#Basic_formats]this[/url]? | |
Re: [QUOTE=galhajaj]and i guess it will be best to manage the game from the Program.cs (right?)[/QUOTE] Wrong, handle all your events in your form object. | |
Re: Try something like this: [B]textBox1.Text = "\"varia\"";[/B] | |
Re: Your text file has more the looks of floating point numbers. Please explain a bit more what you really want. | |
| |
Re: ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? You must be the most informative guy over here :) | |
Re: e is a class of type ImageClickEventArgs. It is an argument of the ImgButton_ServerClick method. The other argument is sender which is of type Object. It is some sort of convention to name these arguments that way. |
The End.