Forum: Java 13 Days Ago |
| Replies: 2 Views: 279 Oh, my! Might be, but wasn't good enough. How could I miss that OraLocaleInfo? One more stupid mistake in my list :D
Thank you sooo much |
Forum: C# 14 Days Ago |
| Replies: 4 Views: 343 Okies. Now the points of attention in the given example:
ComboBox creating ..
this.ComboBox1 = new System.Windows.Forms.ComboBox();
...
Now to be able to catch and process the events,... |
Forum: C# Oct 31st, 2009 |
| Replies: 3 Views: 353 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# Oct 30th, 2009 |
| Replies: 12 Views: 428 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: 428 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: 428 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 Views: 337 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: 873 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: 681 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: 815 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 Views: 1,667 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 Views: 1,667 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: 491 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: 380 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: 389 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: Java Jul 15th, 2009 |
| Replies: 19 Views: 500 No, I can't, because We only give homework help to those who show effort (http://www.daniweb.com/forums/announcement9-2.html) |
Forum: C# Apr 19th, 2009 |
| Replies: 3 Views: 533 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: Java Apr 19th, 2009 |
| Replies: 13 Views: 520 Well, let's look closer to example given there (I mean the points of attention):
//create a model
final DefaultListModel model = new DefaultListModel();
//creating JList based on our model... |
Forum: C# Mar 29th, 2009 |
| Replies: 3 Views: 364 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: Java Mar 15th, 2009 |
| Replies: 7 Views: 767 Well, if follow your's app logic: the Category must be a part of the Item (belongs to it). So if I were you - I would place the definition of it in Item class. And then import it from that class for... |
Forum: C# Feb 6th, 2009 |
| Replies: 7 Views: 2,431 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 Views: 540 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: 757 Check for this (msdn):
I've tried to set the EnableHeadersVisualStyles to false and it's working. |
Forum: Java Jan 21st, 2009 |
| Replies: 1 Views: 1,636 Hello, Allen.
You close your BufferedWriter bw in the cycle (when you are writing data into the file). So in the best case you'll have an empty file ... in worst - an exception.
Just take it out of... |
Forum: Java Jan 19th, 2009 |
| Replies: 14 Views: 1,764 It happened because you calling maxF and maxC methods before you are filling arrays inputFahr and inputCel with data. And your maximum goes through arrays, filled by default values (in your case it's... |
Forum: C# Jan 15th, 2009 |
| Replies: 6 Views: 524 You have mistake in word Entries in the 'RemoveEmptyEntires'. |
Forum: Java Dec 22nd, 2008 |
| Replies: 13 Views: 1,047 I have a little variation on your 'old' code. It is not the best solution, but it is better than nothing. You can analyse it and make summary for yourself:
public void fillBoard()
{
... |
Forum: Java Nov 27th, 2008 |
| Replies: 10 Views: 4,187 Just to add to what I and Stultuske are saying, here is an example for you:
You have method:
public static void printArray(int count)
{
for (int i=0; i<count; i++ )
{
... |
Forum: Java Nov 26th, 2008 |
| Replies: 5 Views: 1,146 You should realize interface Comparable in your class Person. After that you'll can compare your objects, like that:
Person a, b;
a = ...;
b=...;
a.CompareTo(b);
This will allow you to sort... |
Forum: Java Nov 20th, 2008 |
| Replies: 2 Views: 1,109 Here is a lot of information about binary trees with code eaxamples:
http://cslibrary.stanford.edu/110/BinaryTrees.html... |
Forum: Java Nov 20th, 2008 |
| Replies: 3 Views: 472 Here is part of description of this function, given by java help:
public boolean renameTo(File dest)
It asks a File as parameter, but you give String to it. |
Forum: Java Nov 18th, 2008 |
| Replies: 22 Views: 1,311 Oh ... it never ends :( Thanks a lot for spending time working with me and my problem. I have tried new variant - same trouble. I found the way to pass through this problem:
I add "\n\n" in the end... |
Forum: Java Nov 16th, 2008 |
| Replies: 7 Views: 1,313 As I understood, you have combined information in your file "books.txt" (name -
string and price - double). To split information, that was read from your file you should use patterns (in example... |
Forum: C# Nov 12th, 2008 |
| Replies: 5 Views: 486 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: 736 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,925 |