Search Results

Showing results 1 to 40 of 184
Search took 0.03 seconds.
Search: Posts Made By: ddanbe
Forum: Geeks' Lounge 6 Hours Ago
Replies: 39
Views: 1,050
Posted By ddanbe
Why are you always referring to a circle using matter or particles?
A circle is a mathematical object, like a line or hyperbola, whatever.
All the real numbers that follow the equation Y^2 + X^2 =...
Forum: C# 1 Day Ago
Replies: 6
Views: 304
Posted By ddanbe
I should follow the advise of DdoubleD and at least try to understand the code he proposes. If some part of it is "above your head" let us know.
Line 4 of your code should be : for(i = 0; i <...
Forum: C# 2 Days Ago
Replies: 1
Views: 152
Posted By ddanbe
Use the PictureBox Location property to do that.
MyPicBox.Location=new Point(25,75); will set your picture at coordinates 25,75 and so on.
Forum: C# 2 Days Ago
Replies: 3
Views: 210
Posted By ddanbe
Depends on how your complex number is defined.
Is it just a string or is it a struct or a class? Please tell.
Forum: C# 3 Days Ago
Replies: 9
Views: 259
Posted By ddanbe
I don't know that much of Python(Monty you know) but I'm going to make an effort at a translation here that fits your code as close as possible:
using System;

namespace ConsoleApplication1
{
...
Forum: C# 4 Days Ago
Replies: 3
Views: 156
Posted By ddanbe
THERE IS NO NEED TO SHOUT HERE.
We all have good ears, explanation of your problem is what we want.
Forum: C# 6 Days Ago
Replies: 1
Views: 174
Posted By ddanbe
Hi hk.daxini! Welcome on Daniweb!
Something like this? : http://www.codeproject.com/KB/dialog/cballoon.aspx
Forum: C# 8 Days Ago
Replies: 8
Views: 279
Posted By ddanbe
Hi dennis! Welcome at Daniweb!

You could write a method (C# does not use the word function) with a parameter that inputs the total amount and that returns a struct like this
struct MyStruct
...
Forum: C# 9 Days Ago
Replies: 0
Views: 218
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# 9 Days Ago
Replies: 1
Views: 199
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# 9 Days Ago
Replies: 4
Views: 230
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# 10 Days Ago
Replies: 9
Views: 319
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# 13 Days Ago
Replies: 11
Views: 347
Posted By ddanbe
Use Console.ReadKey()
Forum: C# 15 Days Ago
Replies: 5
Views: 259
Posted By ddanbe
Why do you giv 3 threads with different subjects the same name?
Forum: C# 15 Days Ago
Replies: 5
Solved: ****
Views: 271
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# 16 Days Ago
Replies: 2
Views: 387
Posted By ddanbe
You can find this code here : http://www.koders.com/csharp/fidB6AC18C659085347BED11C11D98B179E126D79DF.aspx
Forum: C# 16 Days Ago
Replies: 6
hi
Views: 449
Posted By ddanbe
Hi student88, welcome on DANIWEB:)
Your assignment seems something that can better be done with XNA.
I am assuming you have VS 2008 C#.
You could start with a new WindowsformsApplication. In...
Forum: C# 17 Days Ago
Replies: 9
Views: 542
Posted By ddanbe
>It runs OK up to the point where it could not find the file "e:\\CuPeak.dat".
As I don't even have an e: drive, this is going to be difficult...
Forum: C# 17 Days Ago
Replies: 9
Views: 542
Posted By ddanbe
The sample project is the project you are having trouble with. As sknake did not know the name of your project he called it "sample project". You could preferably zip it before uploading.
Forum: C# 17 Days Ago
Replies: 9
Views: 542
Posted By ddanbe
When you answer to a thread, look below the buttons Submit Reply and Preview post. You'll see a panel marked "Additional Options". You will find a button there : Manage Attachments click on it, it...
Forum: Geeks' Lounge 19 Days Ago
Replies: 8
Views: 511
Posted By ddanbe
This language (http://www.kli.org/tlh/pIqaD.html) sure has no diacritical marks and should be ok for everybody, because nobody can really claim it as his. Except for some people, who live far away...
Forum: C# 19 Days Ago
Replies: 4
Views: 259
Posted By ddanbe
-128 to 127 is 80 to 7F. Look for explanation here: http://en.wikipedia.org/wiki/Two's_complement
Forum: C# 23 Days Ago
Replies: 8
Views: 245
Posted By ddanbe
If you also want to do calculations with a decimal point, you have to change the type of your variables a, b and c into float or double, instead of int.
Forum: C# 24 Days Ago
Replies: 6
Views: 436
Posted By ddanbe
Hi mstrop, welcome on this site:)
This artical might help you : http://www.codeproject.com/KB/cs/event_fundamentals.aspx
Forum: C# 25 Days Ago
Replies: 8
Views: 350
Posted By ddanbe
So go in design mode, click on the Form and select the lightning bolt icon in the properties window. You see a list of all the event available for the form. Select the Paint event and double click...
Forum: C# 27 Days Ago
Replies: 4
Views: 473
Posted By ddanbe
Why not use a List of objects that can contain anything you want?
Something like this perhaps:
namespace ConsoleApplication1
{
public class Names //class with 2 strings in it
{
...
Forum: C# 32 Days Ago
Replies: 2
Code Snippet: Bouncing ball
Views: 773
Posted By ddanbe
Wanted to let two forms work together. One form would be the input form and the main form would consume this data. I managed to succeed with the help of a few of my friends here at daniweb., who...
Forum: C# 33 Days Ago
Replies: 12
Views: 456
Posted By ddanbe
What about an elevator managment system with 3 elevators and 7 floors? Decide which elevator goes where...

Home meal delivery system? Reception, who is out where, menu, etc...
Forum: C# 33 Days Ago
Replies: 9
Views: 436
Posted By ddanbe
You could use the FolderBrowserDialog.
More info about this class can be found here (http://msdn.microsoft.com/en-us/library/system.windows.forms.folderbrowserdialog.aspx)
Forum: C# 34 Days Ago
Replies: 6
Views: 307
Posted By ddanbe
Read your previous thread as a start.
Forum: C# 34 Days Ago
Replies: 3
Views: 390
Posted By ddanbe
Hi Sidd. welcome here!
Try this:
using (StreamReader sr = new StreamReader ("myfile.dat"))
{
string s = sr.ReadLine();
//etc.
}
Forum: Computer Science 34 Days Ago
Replies: 6
Views: 814
Posted By ddanbe
Did you know that in English there are about 30 different meanings of the affirmative word yes?
A story to illustrate:
A man comes home from his work, says hello to the wife, installs himself in a...
Forum: C# 34 Days Ago
Replies: 3
Views: 374
Posted By ddanbe
To me it does not matter how many pounds and ounces you have.
Just use the right conversion factor to convert them to kilos.
Your assignment states you have to use functions.
C# has only notion of...
Forum: C# Nov 8th, 2009
Replies: 4
Views: 667
Posted By ddanbe
Thanks guys, these suggestions are very helpfull.
Forum: C# Nov 7th, 2009
Replies: 4
Views: 667
Posted By ddanbe
I have a main form which is going to use much input data typed in by the user. So I thought to make a separate form to handle the input. The closest to a solution was this thread...
Forum: C# Nov 7th, 2009
Replies: 4
Views: 653
Posted By ddanbe
Remove line 52. At that point in your code, you know that response is Z(see previous while) Besides that you are creating what is called an endless while here. It will go on printing the output of...
Forum: C# Nov 6th, 2009
Replies: 5
Views: 483
Posted By ddanbe
This is what I got so far, with some minor changes to your code :
(see attachement)
private void button1_Click(object sender, EventArgs e)
{
// ddanbe Start button click code...
Forum: C# Nov 2nd, 2009
Replies: 8
Views: 298
Posted By ddanbe
Put your Karyawan class in the RestaurantSoftClassLib namespace not in the RestaurantSoftClassLib.Karyawan namespace.
Forum: C# Nov 1st, 2009
Replies: 10
Views: 395
Posted By ddanbe
Every application under .NET gets compiled to IL (intermediate language) This is some sort of assembly language, yuo can see how it looks if you use the ILDASM tool. This IL gets executed by the...
Forum: C# Oct 30th, 2009
Replies: 1
Views: 452
Posted By ddanbe
Hi welcome on DANIWEB!

Person Michael = new Person(Console.ReadLine());
But then you must have a constructor in your class Person that accepts a string: Person(string Name);
Showing results 1 to 40 of 184

 


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

©2003 - 2009 DaniWeb® LLC