Search Results

Showing results 1 to 40 of 1000
Search took 0.07 seconds.
Search: Posts Made By: ddanbe ; Forum: C# and child forums
Forum: C# 14 Hours Ago
Replies: 0
Views: 74
Posted By ddanbe
Whenever you hear the word recursion, factorials or Towers of Hanoi are never far away. Well here they get mentioned, because we are not going to talk about these guys at all!
Iteration and...
Forum: C# 19 Hours Ago
Replies: 1
Views: 81
Posted By ddanbe
Hi reddevilz! Welcome on Daniweb!

Question #1:
The first line says that the variable(or field in C# parlance) dog is of type animal. Almost the same as saying int i;.
Now the compiler infers...
Forum: C# 22 Hours Ago
Replies: 3
Views: 154
Posted By ddanbe
Try google!
I typed chat bot in C# and found amongst others http://www.codeproject.com/KB/cs/VerbotSDK.aspx
Forum: C# 22 Hours Ago
Replies: 2
Views: 127
Posted By ddanbe
Hi GizmoPower welcome here at Daniweb:)
I think you will find the info you need here: http://www.dotnetspider.com/tutorials/DotNet-Tutorial-277.aspx
Forum: C# 23 Hours Ago
Replies: 8
Views: 127
Posted By ddanbe
Just as there is an OpenFileDialog class there is a SaveFileDialog one.
Read about it here (http://msdn.microsoft.com/en-us/library/system.windows.forms.savefiledialog.aspx)
Forum: C# 1 Day Ago
Replies: 4
Views: 99
Posted By ddanbe
Sorry, my fault I should have said that MyFileNameToUseWhereIWant is a string variable defined elsewhere.
Put this as variable in FileStream filestream2 = new FileStream("ZL2WIN", FileMode.Open);...
Forum: C# 1 Day Ago
Replies: 4
Views: 99
Posted By ddanbe
OpenFileDialog dlg = new OpenFileDialog();
if (dlg.ShowDialog() == DialogResult.OK)
{
MyFileNameToUseWhereIWant = dlg.FileName;
// perhaps other code here
}
Is all there is to it. Happy...
Forum: C# 1 Day Ago
Replies: 3
Views: 154
Posted By ddanbe
I don't have a bot lying around on my shelf but this site (http://www.aidreams.co.uk/chatterbotcollection/index.php) might perhaps help you on the way.
Forum: C# 1 Day Ago
Replies: 9
Views: 205
Posted By ddanbe
peter_budo seems to have done some effort here by changing the code you sent in something more readable, by putting code tags around it.
Hope you will do the same in the future, like this: Mycode[...
Forum: C# 1 Day Ago
Replies: 1
Views: 166
Posted By ddanbe
Look for serialization.
Forum: C# 1 Day Ago
Replies: 9
Views: 205
Posted By ddanbe
Well, start with a Welcome screen.
No loops, just use Console.Write or Console.WriteString.
Let us see what you can come up with!
Forum: C# 1 Day Ago
Replies: 9
Views: 205
Posted By ddanbe
No problem in helping you out, but did you have a look at post #2 of this thread?
Forum: C# 1 Day Ago
Replies: 4
Views: 122
Posted By ddanbe
Hi tchiloh! Welcome at Daniweb.
Did you know that every textbox has a TabIndex property you can set?
So you can tab on the textbox that has the focus and you will automatically move to the one with...
Forum: C# 1 Day Ago
Replies: 2
Views: 169
Posted By ddanbe
You cannot use using ClLib1.bye2009; because bye2009 is a type.
Use using ClLib1;

This is the same as using System.Console; (can not do that)
Use using System;
System contains a Console type....
Forum: C# 1 Day Ago
Replies: 9
Views: 205
Posted By ddanbe
I guess you are using VS 2008 C# express.
What have you tried for yourself already?
Perhaps a search (look right up) on this site might provide you with an answer.
Forum: C# 2 Days Ago
Replies: 9
Views: 190
Posted By ddanbe
Save your info as a text file with extension .txt
If you doubleclick it in Explorer, the executable NotePad will open and you can read the contents of your textfile. To make an executable file from...
Forum: C# 2 Days Ago
Replies: 9
Views: 190
Posted By ddanbe
What do you mean by an executable file?
If you just want to read and write text to a file, this link will give the info: http://www.csharp-station.com/HowTo/ReadWriteTextFile.aspx
Forum: C# 4 Days Ago
Replies: 13
Solved: any idea ?!
Views: 304
Posted By ddanbe
You seem to constantly ignore the advise we give you.
Did or did you not try out the code I gave you?
Do you expect we give you the code you want to have?
I don't have to type this in, I don't...
Forum: C# 4 Days Ago
Replies: 3
Views: 148
Posted By ddanbe
What exactly do you mean by different shaped brushes?
See you are using a SolidBrush.
There is also a HatchBrush (a brush with patterns)
A TextureBrush (a brush with a bitmap or jpeg image)
A...
Forum: C# 4 Days Ago
Replies: 11
Views: 247
Posted By ddanbe
Now I see what you are getting at (chinese people say: a picture says more than 1000 words).
IMHO you better start a WindowsApplication to accomplish what you are trying to do. You will see life...
Forum: C# 4 Days Ago
Replies: 11
Views: 247
Posted By ddanbe
No, it's not a boolean!!! Check again:-O
Please, show us more of your code, just as adatapost proposed.
Forum: C# 4 Days Ago
Replies: 2
Views: 133
Posted By ddanbe
Much questions???
Where?
Forum: C# 4 Days Ago
Replies: 11
Views: 247
Posted By ddanbe
Adatapost is quite right!
I use Console.ReadKey() in debug mode as a last statement, to keep the console on screen. It has never failed me, one click of a key and the program ends. Could have used...
Forum: C# 4 Days Ago
Replies: 1
Views: 131
Posted By ddanbe
Maybe this thread might shed a light on it http://www.daniweb.com/forums/thread236306.html
Also remember that every Color struct has a GetHue, GetSaturation and GetBrightness method.
Forum: C# 4 Days Ago
Replies: 5
Views: 209
Posted By ddanbe
You are right privatevoid, for a min-function you have to test on the maxvalue of course! Thanks for reminding.
Forum: C# 5 Days Ago
Replies: 11
Views: 247
Posted By ddanbe
Use Console.ReadKey()
Forum: C# 5 Days Ago
Replies: 13
Solved: any idea ?!
Views: 304
Posted By ddanbe
Of course my example is not what you want, but did you try it? Did you experiment with different values for the Point variable?
Do this in lines 41 and 42. You can use a random method here to put...
Forum: C# 5 Days Ago
Replies: 5
Views: 210
Posted By ddanbe
Perhaps this snippet can be of help http://www.daniweb.com/code/snippet217204.html
Look for the TX and TY methds.
Have not much time now, will be back later if it did not help.
Forum: C# 5 Days Ago
Replies: 5
Views: 209
Posted By ddanbe
double.MinValue is -1 divided by 10^300 or so.
Line 17 of your code is OK, but in line 26 and 29 you are substracting this value two times(x 10) from your total. What you have to do is after every...
Forum: C# 5 Days Ago
Replies: 13
Solved: any idea ?!
Views: 304
Posted By ddanbe
No this is far from correct, but don't panic.
int [] pic = new int [1];
This means create an array named pic with 1 element. You can call this with pic[0] (arrays start at index 0) pic[1] would...
Forum: C# 5 Days Ago
Replies: 13
Solved: any idea ?!
Views: 304
Posted By ddanbe
I already gave you an example snippet in a previous thread.
Perhaps it was to complicated I don't know. Did you study it?
Give you a new simpler example here:
Create a new windowsformsapp and drop...
Forum: C# 6 Days Ago
Replies: 1
Views: 209
Posted By ddanbe
A BackGroundWorker can only comunicate to the UI via events. Read for a full explanation here: http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx
Forum: C# 6 Days Ago
Replies: 2
Views: 149
Posted By ddanbe
Why do you giv 3 threads with different subjects the same name?
Forum: C# 6 Days Ago
Replies: 1
Views: 140
Posted By ddanbe
Hi piyush.m welcome here at DANIWEB!
What do you mean by using Tab Control To Protect data gettiing shared ?
Forum: C# 6 Days Ago
Replies: 2
Views: 166
Posted By ddanbe
I have no problem with this. Did you include a reference to System.Drawing?
Forum: C# 7 Days Ago
Replies: 6
hi
Views: 310
Posted By ddanbe
First: if you find your question is solved, mark the thread as solved.
If you have another question, start a new thread.
It is very hard for other users(me included) to read a thread with different...
Forum: C# 7 Days Ago
Replies: 5
Solved: ****
Views: 197
Posted By ddanbe
Now when you watch carefully you will see the use of the same code twice. Whenever you see that you must start thining of using a method to make your code more transparant and manageable. Considr you...
Forum: C# 7 Days Ago
Replies: 5
Solved: ****
Views: 197
Posted By ddanbe
Hi, rzhaley, welcome on DANIWEB:)
Copy your for loops code and paste it underneath. Change the for loop with the int x in this: for (int x = 26; x > 0; x--) you start from 26 and counting down now.
Forum: C# 7 Days Ago
Replies: 7
Views: 246
Posted By ddanbe
>> but name of button i generate dynamic, and i can't do this.But2down.Enabled = false;
Right nertos , just forget what I said...:$ I had a blonde moment I guess...
Forum: C# 7 Days Ago
Replies: 7
Views: 246
Posted By ddanbe
Hi welcome here at DANIWEB!
When you give a Button a name you can use that name as a variable.
So : this.But2down.Enabled = false; would disable the button you named "But2down"
Showing results 1 to 40 of 1000

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC