Search Results

Showing results 1 to 40 of 136
Search took 0.02 seconds.
Search: Posts Made By: ddanbe ; Forum: C# and child forums
Forum: C# 1 Day Ago
Replies: 1
Views: 73
Posted By ddanbe
Hi hk.daxini! Welcome on Daniweb!
Something like this? : http://www.codeproject.com/KB/dialog/cballoon.aspx
Forum: C# 3 Days Ago
Replies: 8
Views: 204
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# 3 Days Ago
Replies: 0
Views: 150
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# 4 Days Ago
Replies: 1
Views: 143
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# 4 Days Ago
Replies: 4
Views: 159
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# 5 Days Ago
Replies: 9
Views: 240
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# 8 Days Ago
Replies: 11
Views: 296
Posted By ddanbe
Use Console.ReadKey()
Forum: C# 10 Days Ago
Replies: 5
Views: 211
Posted By ddanbe
Why do you giv 3 threads with different subjects the same name?
Forum: C# 10 Days Ago
Replies: 5
Solved: ****
Views: 227
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# 11 Days Ago
Replies: 2
Views: 329
Posted By ddanbe
You can find this code here : http://www.koders.com/csharp/fidB6AC18C659085347BED11C11D98B179E126D79DF.aspx
Forum: C# 11 Days Ago
Replies: 6
hi
Views: 376
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# 11 Days Ago
Replies: 9
Views: 445
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# 12 Days Ago
Replies: 9
Views: 445
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# 12 Days Ago
Replies: 9
Views: 445
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: C# 14 Days Ago
Replies: 4
Views: 236
Posted By ddanbe
-128 to 127 is 80 to 7F. Look for explanation here: http://en.wikipedia.org/wiki/Two's_complement
Forum: C# 18 Days Ago
Replies: 8
Views: 223
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# 19 Days Ago
Replies: 6
Views: 398
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# 20 Days Ago
Replies: 8
Views: 312
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# 21 Days Ago
Replies: 4
Views: 413
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# 27 Days Ago
Replies: 2
Code Snippet: Bouncing ball
Views: 686
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# 28 Days Ago
Replies: 12
Views: 418
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# 28 Days Ago
Replies: 9
Views: 421
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# 28 Days Ago
Replies: 6
Views: 302
Posted By ddanbe
Read your previous thread as a start.
Forum: C# 28 Days Ago
Replies: 3
Views: 371
Posted By ddanbe
Hi Sidd. welcome here!
Try this:
using (StreamReader sr = new StreamReader ("myfile.dat"))
{
string s = sr.ReadLine();
//etc.
}
Forum: C# 29 Days Ago
Replies: 3
Views: 358
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# 32 Days Ago
Replies: 4
Views: 619
Posted By ddanbe
Thanks guys, these suggestions are very helpfull.
Forum: C# 33 Days Ago
Replies: 4
Views: 619
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# 33 Days Ago
Replies: 4
Views: 626
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# 34 Days Ago
Replies: 5
Views: 443
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: 285
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: 390
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: 449
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);
Forum: C# Oct 26th, 2009
Replies: 3
Views: 569
Posted By ddanbe
Hello Maheed, welcome on this site.
Seems like you where trying to start what is called a Console application. You have to put as a last line of code a "read" statement, so that the console window...
Forum: C# Oct 25th, 2009
Replies: 5
Views: 476
Posted By ddanbe
Hi Sachin_coder, welcome at DANIWEB:)
Your catch clause doesn't return anything, that's what caused your error. Either return someting or throw an exception.
Please use code tags, the next time you...
Forum: C# Oct 25th, 2009
Replies: 3
Views: 479
Posted By ddanbe
Perhaps use the NLST command instead?
You could also use methods from the string class like SubString, Length etc.
You could use the string Split method and split on a space character. The last...
Forum: C# Oct 19th, 2009
Replies: 0
Views: 762
Posted By ddanbe
Ever wanted to know how to implement running lights? well here is your chance to find out.
Open a new Forms application enlarge the Form a bit and drop a Panel and a Timer on it. Add the class...
Forum: C# Oct 16th, 2009
Replies: 4
Views: 529
Posted By ddanbe
Any trouble, questions with that? Only one address! DANIWEB!
Lots of succes!
Forum: C# Oct 16th, 2009
Replies: 7
Views: 474
Posted By ddanbe
Hi Jonahmano! This can be done very easy.
Instead of WriteLine, use Write.
WriteLine writes a string and put a extra carriage return character after, Write does not.
Forum: C# Oct 15th, 2009
Replies: 6
Views: 911
Posted By ddanbe
Read post #4 again, click on the blue word : this
Forum: C# Oct 13th, 2009
Replies: 2
Views: 586
Posted By ddanbe
You must not hate something. Java is not my cup of tea also, but it is not SO bad I hate it.
You could design a library of DB, file, graphical and other utilities, that might come in handy when you...
Showing results 1 to 40 of 136

 


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

©2003 - 2009 DaniWeb® LLC