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: 4 Views: 214 You're welcome .. please, mark this thread as solved if we're done with you problem :) |
Forum: C# Oct 30th, 2009 |
| Replies: 4 Views: 214 Hello.
Dunno if it will suit your problem, but as an option - you could remove the header of the window. That's gonna help you to set the size to whatever you want. |
Forum: C# Oct 30th, 2009 |
| Replies: 12 Views: 427 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: 427 :) you're welcome. Good luck with your project! |
Forum: C# Oct 30th, 2009 |
| Replies: 12 Views: 427 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: 7 Views: 320 You're welcome .. please, mark this thread as Solved if your question is settled :) |
Forum: C# Oct 30th, 2009 |
| Replies: 7 Views: 320 Hm .. hard to say ..
The selection appears as soon as your treeView get the focus. You can also play around TabIntex Property. If it's set to 0 (so your treView will be the first selected control... |
Forum: C# Oct 30th, 2009 |
| Replies: 12 Views: 427 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 30th, 2009 |
| Replies: 7 Views: 320 Hello.
Interesting question ..
I couldn't find any property or method for this case, but here's some workaround. You can process the BeforeSelect event and cancel it if the selection made e.g. not... |
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: 870 Well, the other way could be storing datatable/data in your main form. And pass them to other forms of your application at creation time. |
Forum: C# Oct 27th, 2009 |
| Replies: 11 Views: 870 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 27th, 2009 |
| Replies: 5 Views: 278 Or if you really need to puch them into a single table:
maybe moove weeks in rows, like:
Product Name | Weeks | Dept. 1 | Dept. 2| ...... |
Forum: C# Oct 27th, 2009 |
| Replies: 2 Views: 201 Hello.
All you need is decide what objects to pass to that method and then - call it. E.g.:
comboBox1_SelectedIndexChanged(comboBox1, new EventArgs()); |
Forum: C# Oct 27th, 2009 |
| Replies: 5 Views: 278 Hello, Ryshad.
I hope that I understood you corretcly :)
What if take your 3rd dimension out of gridview? (see pic 1).
If you have to display a few orders, that are split between different... |
Forum: C# Oct 27th, 2009 |
| Replies: 3 Views: 353 Hello.
In your case you can handle those keys in KeyDown event. It would be something like this:
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
// if... |
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: 6 Views: 462 Hehe .. you're welcome.
Please, mark this thread as "solved" if you got the answer on your question :) |
Forum: C# Sep 29th, 2009 |
| Replies: 6 Views: 462 Hello, phantom8l.
This can be interesting for you: Manually painting a ToolStripSplitButton (http://www.eggheadcafe.com/conversation.aspx?messageid=32661879&threadid=32661879) |
Forum: C# Sep 29th, 2009 |
| Replies: 4 Views: 426 Hello, Darth Vader.
Just to make sure - is your code is a holistic part of code, which you execute or it's just necessary pieces to show to us...
I ask this because it's compiles and runs here... |
Forum: C# Sep 29th, 2009 |
| Replies: 4 Views: 807 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 28th, 2009 |
| Replies: 11 Views: 1,668 Thanks, guys :)
Hehe .. Spiritually Optimized .. interesting thingy :P |
Forum: C# Sep 27th, 2009 |
| Replies: 11 Views: 1,668 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,668 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: 493 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: 382 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# Sep 23rd, 2009 |
| Replies: 2 Views: 896 Hello.
I was playing with your code. Here's what I've got:
// selecting some text in RichTextBox
...
Clipboard.SetText(richTextBox1.SelectedRtf, TextDataFormat.Rtf);
sel.Paste(); |
Forum: C# Sep 23rd, 2009 |
| Replies: 11 Views: 585 Hello, tiwas.
Split method has a few overloads. Take a look: String.Split Method (http://msdn.microsoft.com/en-us/library/system.string.split.aspx)
Instead of using ArrayList I would suggest you... |
Forum: C# Sep 15th, 2009 |
| Replies: 3 Views: 734 Hello, EvilLinux.
At first - you should post your code in code tags.
About your code:
this should take current date and time
DateTime arrivaldate = DateTime.Now;
then troubles comes from here:... |
Forum: C# Jul 23rd, 2009 |
| Replies: 3 Views: 1,252 Hello, you can iterate through selected items in your ListBox using ListBox.SelectedItems Property (http://msdn.microsoft.com/en-us/library/system.windows.forms.listbox.selecteditems.aspx) |
Forum: Java Jul 17th, 2009 |
| Replies: 8 Views: 654 Hi.
Well, at first - you don't change the "index" variable from the time, when it was created. You should specify the current index (since you're displaying not the first record of your array).
... |
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: C# Jul 17th, 2009 |
| Replies: 5 Views: 472 Hello.
You seem a bit enmeshed with variable names and Cotrol names.
E.g. let's take a look at TextBox creation:
TextBox textBox6 = new TextBox();
... |
Forum: Java Jul 17th, 2009 |
| Replies: 14 Views: 495 Using "array[number]" you're refer to 1 single element in array, which has a position [B]number-1[B] (since the array indexes are starting from 0).
If you need to pass whole array - pass just the... |
Forum: C# Jul 16th, 2009 |
| Replies: 3 Views: 749 You're welcome .. if your issue is solved - please mark this thread as solved :) |
Forum: C# Jul 16th, 2009 |
| Replies: 3 Views: 749 As I understand correctly - you're trying to access dynamically created variable field2 outside the borders of it's visibility, rather than TextBox.
To locate your dynamically created TextBox you... |
Forum: Java Jul 15th, 2009 |
| Replies: 19 Views: 500 How about use this:
arr[i+1][j]=sum;
instead of:
arr2[i+1][j-1]=sum; |
Forum: Java Jul 15th, 2009 |
| Replies: 19 Views: 500 uhu .. what if you would use just "j" (considering that you're extracting 1 from "x" on your next steps):
arr2[i+1][x-1]=sum;
System.out.print(arr2[i+1][x-1]); |
Forum: Java Jul 15th, 2009 |
| Replies: 19 Views: 500 Ok, good job.
But your code still remain tricky:
int arr[][]=new int[20][20];
int arr2[][]=new int[20][20];
Look, you missed the main thing of using 2 dimensional array. The point is: while... |