4,439 Posted Topics

Member Avatar for amrith92

There were times in my life I saw some pink elephants. This is true, I saw them! Do they count as gosts too?

Member Avatar for jephthah
1
347
Member Avatar for history84084

Perhaps reading this snippet will help [url]http://www.daniweb.com/code/snippet1008.html[/url]

Member Avatar for sknake
0
93
Member Avatar for mr_scooby

Make a class with a date a time and a distance as fields. Add some methods to it to act on these data. As you don't seem to know in advance how many dates etc. you have it is better to use a List than an Array. You can define …

Member Avatar for ddanbe
0
107
Member Avatar for scholar

Hi Ramy! Hi Scott! The OP sees the outcome of this : [CODE=c#]void LabelClick(object sender, EventArgs e) { MessageBox.Show(((Label)sender).ToString()); }[/CODE] Probably as a result of his so called "trivia code". Code is seldom trivial perhaps he could show us a bit more?

Member Avatar for ddanbe
0
313
Member Avatar for GrimJack

D.D.A.N.B.E.: Digital Device Assembled for Nocturnal Battle and Exploration

Member Avatar for Sky Diploma
0
116
Member Avatar for Tank50

Show us your code. You cannot repair a car when the engine is broken and the hood is closed.

Member Avatar for sknake
0
154
Member Avatar for ctrl-alt-del

IdanS has a point here. But I think if you want to use a Timer, start a new Forms app, drop a textbox on it and add the following: [CODE=csharp]namespace WindowsFormsApplication1 { public partial class Form1 : Form { int counter = 1; public Form1() { InitializeComponent(); Timer MyTimer = …

Member Avatar for ddanbe
0
140
Member Avatar for TobbeK

An abstract class is a class you can't instantiate. Why is that? Well if I come to you and say: "I'm an animal." (sometimes I'm a beast really...) I think you would say what [I][B]kind [/B][/I]of animal are you? To work with a class of type Animal you have to …

Member Avatar for TobbeK
0
95
Member Avatar for Clawsy
Member Avatar for hotriver

Type long is equivalent to System.Int64 and goes from –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

Member Avatar for hotriver
0
107
Member Avatar for mansour77

C# programmers don't declare static types, they just use them: [B]File."whatever";[/B], just like [B]Math.Sin(123.456);[/B]

Member Avatar for mansour77
0
88
Member Avatar for kspriya01

Did not understand either, already replied in the same thread: [url]http://www.daniweb.com/forums/thread199758.html[/url]

Member Avatar for kvprajapati
0
145
Member Avatar for larscla

Your code will give a compile error saying that string does not have a field called Enabled. This is what you can do: [CODE=csharp]Button mybutton = new Button(); //create button myButton.Name = "whatever"; //give it a name myButton.Enable = true; //enable it[/CODE]

Member Avatar for sknake
0
3K
Member Avatar for kspriya01

Finally! After 3 threads I think I know what you mean. I think you mean set the text wrap of a cell to true. This means that the text, when you type continues on a second line in the same cell. Do it like this : [CODE=csharp]const int thirdColumn = …

Member Avatar for ddanbe
0
251
Member Avatar for daveofgv

[B]If _userTextBox.Text [/B]in the VB.NET code seems like a TextBox to me. In the C#.NET code it looks like a private string field of a the class, not a TextBox field. Then it should be [B]_usernametxt.Text[/B] instead of [B]_usernametxt [/B].

Member Avatar for IdanS
0
141
Member Avatar for Corner

Perhaps reading this may help: [url]http://www.andzelika.co.uk/TCPsockets.pdf[/url]

Member Avatar for sknake
0
75
Member Avatar for The Dude

Makes one wonder why manhood is not completly composed of junkies!?! Been on a low dose of morphine a few days (had a very heavy operation) I can tell you, your dreams are of DVD quality...

Member Avatar for MosaicFuneral
0
166
Member Avatar for Manak

Just a little remark here. When you have but a few error messages this is still a feasable system. But don't annoy a user with perhaps dozens of error messages. In the end it would become unmaintainable. Suppose you write the same sofware for the arab, russian and chinese market, …

Member Avatar for ddanbe
0
212
Member Avatar for kspriya01

What do you mean by "letter"? Is it any key on the keyboard? Is it the return key or the enter key?

Member Avatar for ddanbe
0
268
Member Avatar for sarganaa

Perhaps you are better of with something like this : [url]http://www.codeproject.com/KB/cs/calculator.aspx[/url]

Member Avatar for sarganaa
0
2K
Member Avatar for aayush2687

This can be done this way: [CODE=csharp]//Save existing colors ConsoleColor remFG = Console.ForegroundColor; ConsoleColor remBG = Console.BackgroundColor; //Set colors Console.ForegroundColor = ConsoleColor.Black; Console.BackgroundColor = ConsoleColor.Cyan; //Write something Console.Write("This is a string in black, with cyan background"); //Restore colors Console.ForegroundColor = remFG; Console.BackgroundColor = remBG; Console.Write("This will be in the previous …

Member Avatar for aayush2687
0
99
Member Avatar for BustedPixel
Member Avatar for BustedPixel
1
119
Member Avatar for toykwon

Make an empty forms application and add this (see after InitializeComponent) : [CODE=csharp]public Form1() { InitializeComponent(); // create a textbox with name textbox1 this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox1.Location = new System.Drawing.Point(50, 50); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(100, 20); this.Controls.Add(textBox1); //this is the code line from sknake, just changed …

Member Avatar for sknake
0
199
Member Avatar for ejazmusavi

On which line did the error occurred? You don't always have to start a new thread you know. See previous : [url]http://www.daniweb.com/forums/thread198951.html[/url] Thanks for using code tags!

Member Avatar for ejazmusavi
-1
96
Member Avatar for nirvaan

Do you want to create the DateTimePickers at run time? Please explain a bit more on what you want.

Member Avatar for ddanbe
0
117
Member Avatar for ejazmusavi

What exactly is your problem? Do you know DateTime has an Add method and that the + operator can be used to perform additions of DateTime and TimeSpan?

Member Avatar for ddanbe
0
240
Member Avatar for Cman2020

Your error says what it says, a DataGridView does not have a [B]SetDataBinding [/B] method or property or whatever. However a DataGridView has a DataSource property.

Member Avatar for Ramy Mahrous
0
128
Member Avatar for Gunn3r

I think you mean something like this: [CODE=csharp] ListViewItem [] li = new ListViewItem[4]; //define an array for 4 ListViewItems //fill the array up //just using strings here instead of your reader li[0] = new ListViewItem("ID"); li[1] = new ListViewItem("Name"); li[2] = new ListViewItem("Creator"); li[3] = new ListViewItem("Download Link"); // …

Member Avatar for Gunn3r
0
117
Member Avatar for SkymanL

Your English is a little hard to understand, but I will assume you need to "read" a node of the treeview after it is clicked. Use the NodeMouseClick event for that: [CODE=csharp]private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { TreeNode selectedNode = e.Node; MessageBox.Show(selectedNode.Text); }[/CODE] Once you have the node thisway …

Member Avatar for SkymanL
0
93
Member Avatar for gouki2005

[QUOTE=csharplearner]why video/audio doesnt play in both the browsers in my vista [/QUOTE] Had the same experience. Signed in and all went well. Good videos! Although some of them have some strange quirks. For example two persons talking together differently about the same thing!

Member Avatar for 3xxx
0
153
Member Avatar for tiger86

[QUOTE=tiger86]If I'm designing something like a game [/QUOTE] If you are designing, why bother the language? Something like a game? So it doesn't even have to be a game, does it? The language is not that important, it is what you are trying to achieve that is. Perhaps this will …

Member Avatar for vegaseat
0
203
Member Avatar for nmakkena

MyTextBox.Text="result of select"; will show [B]result of select [/B]in your textbox. Otherwise use the (DataBindings) property

Member Avatar for sknake
0
165
Member Avatar for devsaffa

You are drawing [B]image [/B]with a Graphics object. OK. And [B]image [/B]is created in lines 4. OK. In line 5 you copy the Colorpalette used in [B]plainImage[/B], you are not copying the "picture", hence you won't see nothing.

Member Avatar for ddanbe
0
547
Member Avatar for ejazmusavi

Adatapost, perhaps where you live it is still very early in the morning. In case you did not notice : this is the C# forum...

Member Avatar for ddanbe
0
117
Member Avatar for floodemo

It shows a 3x3 grid of 9 rectangles, defined in the [B]rects [/B]array. This is a more complete working example: Make an empty forms application and put this in the forms Paint event handler. [CODE=csharp]private void Form1_Paint(object sender, PaintEventArgs e) { Rectangle[] rects = new Rectangle[] { new Rectangle(8,8,119,86), new …

Member Avatar for ddanbe
0
86
Member Avatar for rastinrastini

You can also use the Tag property of the button when you build your button array and supply it any data you want. Use a scheme like Diamonddrake proposed, to retieve the data : B.Tag

Member Avatar for rastinrastini
0
84
Member Avatar for daniel88

I assume you are using Visual Studio C# Express. On the start page, you have a Getting Started option with lost of items to get you on the way. Do this first and then start with your card game. How your game project will look depends on your design. You …

Member Avatar for daniel88
0
120
Member Avatar for xtremebeauty

See first time: [url]http://www.daniweb.com/forums/thread197560.html[/url] This is the third time you pose the same question. Now I figured out you want a ground map of your university in an application. So a good start would be to build a forms application.

Member Avatar for ddanbe
0
417
Member Avatar for franceee

Error 1 'System.Drawing.Font' is a 'type', which is not valid in the given context C:\Users\Marivoet\Documents\Visual Studio 2008\Projects\CalculatorApp\CalculatorApp\CalculatorForm.cs 88 56 CalculatorApp Error 2 The best overloaded method match for 'System.Drawing.Font.Font(string, float, System.Drawing.GraphicsUnit)' has some invalid arguments C:\Users\Marivoet\Documents\Visual Studio 2008\Projects\CalculatorApp\CalculatorApp\CalculatorForm.cs 87 41 CalculatorApp Error 3 Argument '3': cannot convert from 'System.Drawing.Font' to …

Member Avatar for franceee
0
603
Member Avatar for adrivit

If you have to do a lot of number crunching it does not matter so much which make of computer you buy. What matters is the clock speed of the machine and how much processors it has. (The more the better)

Member Avatar for dirt14
0
113
Member Avatar for SanjitVigneshS

Of course F# is good. But so are C# or C++ and other languages for that matter. I am a C# learner for the moment just as you. Currently I'm reading[url=http://www.amazon.com/Foundations-F-Experts-Voice-Net/dp/1590597575/ref=sr_1_2?ie=UTF8&s=books&qid=1244473528&sr=8-2] this book[/url]. F# seems to me a very promising language, but I believe it is still somewhat premature to …

Member Avatar for dluz
0
206
Member Avatar for niketan

Use a byte array: [B]Byte[] MyCchars = { (byte)'A', (byte)'B' };[/B]This will map to your C array of chars. [B]MyCchars[0][/B] will contain the ASCII code for the character A. But remember, in C# these are still bytes, not characters. Use a cast to char if you want your bytes to …

Member Avatar for ddanbe
0
3K
Member Avatar for Cman2020

Simple really,just append the text with the + operator : [B]txtOutput.Text = txtOutput.Text + "my new text";[/B]

Member Avatar for Cman2020
0
383
Member Avatar for xtremebeauty

brain mapping, memory mapping, gene mapping, texture mapping, spiritual mapping etc., etc. Please explain what university mapping is.

Member Avatar for ddanbe
0
250
Member Avatar for NickMalone85

DiamondDrake, is it possible to call the form click handler from inside the panel click handler or is your VERY instructive example(thanks) the "best" way to do this?

Member Avatar for Diamonddrake
0
100
Member Avatar for tintincute

I will concentrate on your question here. Put all the code inside your OK_Click handler in a new method : private void Guess() Inside the OKClick put the following: (just a suggestion here) [CODE=csharp]const int MaxTries = 3; for (int Tries = 1; Tries <= MaxTries; Tries++) { Guess(); } …

Member Avatar for tintincute
0
117
Member Avatar for A1 data nz

What about a bible translated in Russian, Portugese, Chinese? All the same code? Or does it count only for Hebrew? The original was in Greek or Armenian I'm not sure. Never mind, my question is why should one language be preferred over anotherone to derive "meaningfull bible codes" from it?

Member Avatar for GrimJack
1
151
Member Avatar for sivak

s="hello,\n+ I am \n+"fine\n: WHAT is that?!?? I think you mean something like : string s = "hello,\n" + "I am \n" + "fine\n"; Use the Split function to accomplish what you want.

Member Avatar for sknake
0
71
Member Avatar for mrnutty

What is your "trouble" with the input? [B]gNum = Console.ReadLine(); guessNum = int.Parse(gNum);[/B] can be written as [B]guessNum = int.Parse(Console.ReadLine());[/B] ----------------------------------------------------------------- [B]string x = Console.ReadLine();[/B] can be written as [B]Console.ReadKey();[/B] Is it this you want? P.S. In the future use code tags, and don't post 1000 lines of code saying …

Member Avatar for skatamatic
0
399
Member Avatar for indianapple89

Read this : [url]http://www.daniweb.com/forums/thread196171.html[/url] it has examples of write, but read should not be that hard. There are many others on this site. Did you know this site has a search function? Try it out!

Member Avatar for ddanbe
0
91

The End.