Search Results

Showing results 1 to 22 of 22
Search took 0.01 seconds.
Search: Posts Made By: Antenka ; Forum: C# and child forums
Forum: C# 34 Days Ago
Replies: 3
Views: 315
Posted By Antenka
Hello.
I'm not sure if this is what you're looking for, but to get array of child forms, you can use the MdiChildren property, e.g.:

this.MdiChildren[0].BackColor = Color.Black;

//and in same...
Forum: C# 34 Days Ago
Replies: 12
Views: 390
Posted By Antenka
Ok, let's take an example:
137*1456

We can factorize it:
137*(1000 + 400 + 50 + 6)

To see the connection, we can convert this in form like this:
137*(1*10^3 + 4*10^2 + 5*10^1 + 6*10^0)...
Forum: C# Oct 30th, 2009
Replies: 12
Views: 390
Posted By Antenka
I understood you.

That's pretty clear, but also, from your words: you go through arrays and their length is 1 less than sum array has. So the first element of this array would never be changed....
Forum: C# Oct 30th, 2009
Replies: 12
Views: 390
Posted By Antenka
Hello.
The troubles are starting here:

carry = 1;

You carry can be more than 1 .. so you should take the integer part of your holder:

carry = holder / 10;
Forum: C# Oct 29th, 2009
Replies: 4
Solved: OO Quandary
Views: 305
Posted By Antenka
Hello, Ryshad :)
Ok, let's go .. I'll give a few comments on your suggestions and then give you an example.

No, you shouldn't. Because the Bay class shouldn't be aware of what's happening outside...
Forum: C# Oct 27th, 2009
Replies: 11
Views: 736
Posted By Antenka
Hello.
If I understood you correctly - this may be helpful for you: Implementing Singleton in C# (http://msdn.microsoft.com/en-us/library/ms998558.aspx)
Forum: C# Oct 7th, 2009
Replies: 11
Views: 649
Posted By Antenka
Hello.
Isn't this non-stop recursive call to the same function:

public string GetClientsList()
{
try
{
Thread.Sleep(1000);
}
...
Forum: C# Sep 29th, 2009
Replies: 4
Views: 726
Posted By Antenka
Hello, phoenix_dwarf.

While playing with your code found interesting thingy: it works fine on every tab .. except the 1st one. Anyway, while trying to explain such behaviour, found this:


...
Forum: C# Sep 27th, 2009
Replies: 11
Solved: read file
Views: 1,443
Posted By Antenka
You're welcome :)
Good luck with learning C#.

Please, mark this thread as solved if the issue is settled.
Forum: C# Sep 27th, 2009
Replies: 11
Solved: read file
Views: 1,443
Posted By Antenka
Hello.
Both ArrayList and List classes are provided to work with dynamic arrays. But, in ArrayList all elements have type of System.Object. And in List you specify the type of elements by yourself....
Forum: C# Sep 25th, 2009
Replies: 6
Views: 462
Posted By Antenka
Hello, DeOiD.
Here's one more way to go ..
If choose between Array, ArrayList or List<T> - I would suggest you use List<T>.
For keeping such values you can define a class or structure. For...
Forum: C# Sep 25th, 2009
Replies: 6
Views: 356
Posted By Antenka
Hello, wil0022.
Indeed, you can't do like this:

if (final[0] & final[1] & final[2] & final[3] & final[4] & final[5] & final[6] & final[7] & final[8] & final[9] != first[counter2])

I suppose...
Forum: C# Jul 17th, 2009
Replies: 6
Views: 370
Posted By Antenka
Yeah .. it also works fine here.

P.S. Are you sure, that your file, which lays in path has text in it (maybe this is that simple, that you're overlooking :P)?
Forum: C# Apr 19th, 2009
Replies: 3
Views: 506
Posted By Antenka
Hello, HBMSGuy.
Are you sure, that you have error about passing derived class when method asks the base one? Only thing, that I see it's a few mistakes (in other area):

Class TaskToRun
{
...
Forum: C# Mar 29th, 2009
Replies: 3
Views: 359
Posted By Antenka
Hello, ddanbe. All you have to do is add your BinCB to the list of Controls of your form:

this.Controls.Add(this.BinCB);
Forum: C# Feb 6th, 2009
Replies: 7
Views: 2,313
Posted By Antenka
Hello, jobi116.
As one of the solutions, I can offer this to you:
there is one function : SHGetFolderPath (shell32) (http://www.pinvoke.net/default.aspx/shell32/SHGetFolderPath.html), that can help...
Forum: C# Jan 30th, 2009
Replies: 4
Solved: queue help
Views: 505
Posted By Antenka
When you call this:

tail = Counter(tail);

variable tail not gonna change. Your initial value of tail is 0 and if you'll divide it by some number - it will give you 0.
Forum: C# Jan 27th, 2009
Replies: 4
Views: 714
Posted By Antenka
Check for this (msdn):

I've tried to set the EnableHeadersVisualStyles to false and it's working.
Forum: C# Jan 15th, 2009
Replies: 6
Views: 500
Posted By Antenka
You have mistake in word Entries in the 'RemoveEmptyEntires'.
Forum: C# Nov 12th, 2008
Replies: 5
Solved: Bank Assignment
Views: 483
Posted By Antenka
beforehand, sorry for my english... :)
I have some advices for you:
1. You have a lot of repeating code in your program. You should take out it to a method(s) and then call it...
(also in...
Forum: C# Nov 11th, 2008
Replies: 11
Views: 727
Posted By Antenka
Here is something, that I found in your theme:
http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.languages.csharp/2008-04/msg00629.html

:) I hope, it will help you!
Forum: C# Nov 10th, 2008
Replies: 11
Views: 3,693
Posted By Antenka
Showing results 1 to 22 of 22

 


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

©2003 - 2009 DaniWeb® LLC