4,439 Posted Topics

Member Avatar for localp
Member Avatar for Jessurider

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); …

Member Avatar for ddanbe
0
115
Member Avatar for localp

Perhaps a look at this [url=http://www.daniweb.com/software-development/csharp/code/364073]code snippet[/url] will shine a light.

Member Avatar for ddanbe
0
218
Member Avatar for geekme

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.

Member Avatar for ddanbe
0
146
Member Avatar for localp

Maybe this can help: [url]http://www.codeproject.com/KB/cs/usecdlllibincs.aspx[/url]

Member Avatar for localp
0
167
Member Avatar for de Source

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]

Member Avatar for vishalrane
0
122
Member Avatar for dotancohen

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]

Member Avatar for Mitja Bonca
0
145
Member Avatar for MrBlack

Why did you post a normal question as a code snippet? Hope the monitors can set it right.

Member Avatar for Bridgekeepers
0
281
Member Avatar for localp

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

Member Avatar for localp
0
193
Member Avatar for WildBamaBoy

He! I had the same issue some time ago, look here: [url]http://www.daniweb.com/software-development/csharp/threads/335414[/url]

Member Avatar for WildBamaBoy
0
115
Member Avatar for rminator

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.

Member Avatar for rminator
0
386
Member Avatar for Saidar
Member Avatar for rminator

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); …

Member Avatar for rminator
0
806
Member Avatar for arsheena.alam
Member Avatar for ddanbe
0
135
Member Avatar for DaemonToad3

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.

Member Avatar for DaemonToad3
0
121
Member Avatar for Nurder

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]

Member Avatar for ddanbe
0
125
Member Avatar for Tank50

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]

Member Avatar for rationalise
0
653
Member Avatar for yousafc#

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]

Member Avatar for ddanbe
0
148
Member Avatar for localp

Use a timer [url]http://msdn.microsoft.com/en-us/library/system.timers.timer.aspx[/url]

Member Avatar for Mitja Bonca
0
222
Member Avatar for rminator

Some possibilyties: [CODE=C#] string hex = "F0000020"; int p = Convert.ToInt32(hex, 16); int n = Int32.Parse(hex, System.Globalization.NumberStyles.HexNumber);[/CODE]

Member Avatar for oredigger
0
739
Member Avatar for FELIGO

Hi FELIGO, welcome :) Sure we can help! What have you tried for yourself?If you post code, post it in CODE tags!!!

Member Avatar for Mitja Bonca
0
108
Member Avatar for vehpurple

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

Member Avatar for vehpurple
0
2K
Member Avatar for tunlinaung

Do you know what Google is? Example: [url]http://en.wikipedia.org/wiki/Common_Language_Specification[/url] Happy computing.

Member Avatar for tunlinaung
0
112
Member Avatar for bbman

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.

Member Avatar for zmeditation1
0
103
Member Avatar for pseudorandom21

Read books about DB design, ADO.NET, SQL etc. Follow a lessons. Still busy myself with this stuff :)

Member Avatar for kvprajapati
0
89
Member Avatar for WildBamaBoy

Also, have a look at [url=http://www.csharp-examples.net/socket-send-receive/]this[/url]

Member Avatar for oredigger
0
185
Member Avatar for pseudorandom21

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

Member Avatar for ChrisHunter
1
177
Member Avatar for galhajaj

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

Member Avatar for galhajaj
0
217
Member Avatar for ecinevenice

Perhaps you could consider a switch statement. look here: [url]http://msdn.microsoft.com/en-us/library/06tc147t.aspx[/url]

Member Avatar for ddanbe
0
173
Member Avatar for dashby

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

Member Avatar for dashby
0
184
Member Avatar for ispiro

Leave Main for what it is. Change the text of your Label in the Clickevent handler of your Panel if you like.

Member Avatar for ispiro
0
109
Member Avatar for Chair

You created a variable [B]deletebox [/B]in a method. After the method is finished, [B]deletebox [/B]does not exist any more.

Member Avatar for Chair
0
4K
Member Avatar for JOSheaIV

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?

Member Avatar for JOSheaIV
0
888
Member Avatar for ramesh m

Hi ramesh m welcome here at Daniweb :) What have you tried so far? Could you show us the code you already have?

Member Avatar for ddanbe
0
70
Member Avatar for rminator

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 …

Member Avatar for abelLazm
0
460
Member Avatar for dotancohen

The Main method is in fact always public. It [B]always [/B]gets executed, it is the entrypoint of every C# application.

Member Avatar for dotancohen
0
146
Member Avatar for Nurder

Is the [B]face [/B]you are talking about a picture(photo) or a drawing?

Member Avatar for Nurder
0
361
Member Avatar for jonhylever

The moment your conception started, you are busy dying! So what is there to be affraid of?

Member Avatar for Ene Uran
-2
359
Member Avatar for thato21math

Study this: [url]http://msdn.microsoft.com/en-us/library/bb384054.aspx[/url]

Member Avatar for ddanbe
0
47
Member Avatar for rohit8563

If this is supposed to be C# it will not compile. For a starter change [B]&quot; [/B]in [B]"[/B] and [B]&lt; [/B]in [B]<[/B]

Member Avatar for ddanbe
0
404
Member Avatar for jmurph333
Member Avatar for tawboiid
Member Avatar for tawboiid
0
2K
Member Avatar for virendra_sharma

An [url=http://splinter.com.au/sorting-enormous-files-using-a-c-external-mer]external merge sort[/url] can do the job.

Member Avatar for pseudorandom21
0
1K
Member Avatar for Labdabeta

Perhaps have a look at [url=http://en.wikipedia.org/wiki/IEEE_754-2008#Basic_formats]this[/url]?

Member Avatar for ddanbe
0
351
Member Avatar for galhajaj

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

Member Avatar for ddanbe
0
177
Member Avatar for jmurph333
Member Avatar for weblover

Your text file has more the looks of floating point numbers. Please explain a bit more what you really want.

Member Avatar for ddanbe
0
1K
Member Avatar for elshan0011
Member Avatar for ddanbe
0
219
Member Avatar for Razer_90

?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? You must be the most informative guy over here :)

Member Avatar for hirenpatel53
0
171
Member Avatar for praveendasika

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.

Member Avatar for zachattack05
0
168

The End.