Forum: C# 31 Days Ago |
| Replies: 3 Views: 311 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# 32 Days Ago |
| Replies: 4 Views: 190 You're welcome .. please, mark this thread as solved if we're done with you problem :) |
Forum: C# 32 Days Ago |
| Replies: 4 Views: 190 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# 32 Days Ago |
| Replies: 12 Views: 385 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# 32 Days Ago |
| Replies: 12 Views: 385 :) you're welcome. Good luck with your project! |
Forum: C# 32 Days Ago |
| Replies: 12 Views: 385 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# 32 Days Ago |
| Replies: 7 Views: 297 You're welcome .. please, mark this thread as Solved if your question is settled :) |
Forum: C# 32 Days Ago |
| Replies: 7 Views: 297 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# 32 Days Ago |
| Replies: 12 Views: 385 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# 32 Days Ago |
| Replies: 7 Views: 297 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# 33 Days Ago |
| Replies: 4 Views: 301 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: 719 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: 719 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: 251 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: 190 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: 251 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: 306 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: 639 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: 433 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: 433 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: 399 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: 704 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,411 Thanks, guys :)
Hehe .. Spiritually Optimized .. interesting thingy :P |
Forum: C# Sep 27th, 2009 |
| Replies: 11 Views: 1,411 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,411 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: 456 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: 351 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: 746 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: 540 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: 653 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,166 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: C# Jul 17th, 2009 |
| Replies: 6 Views: 369 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: 450 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: C# Jul 16th, 2009 |
| Replies: 3 Views: 700 You're welcome .. if your issue is solved - please mark this thread as solved :) |
Forum: C# Jul 16th, 2009 |
| Replies: 3 Views: 700 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: C# Apr 19th, 2009 |
| Replies: 3 Views: 504 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 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# Mar 20th, 2009 |
| Replies: 3 Views: 370 Hello, in your case you should at first initalize array1[0], and the access it variable 'array2[0]'.
array1[0] = new MY_TYPE2(); |
Forum: C# Mar 15th, 2009 |
| Replies: 9 Views: 596 Ok, let's see ... your array2 in any case has value { 'X', 'O', 'X', 'O', 'X', 'O', 'X', 'O', 'X' } (even if users during the game entering the 'X'/'O' in other order). To make it more obvious (same... |
Forum: C# Mar 15th, 2009 |
| Replies: 9 Views: 596 Hello, cause&effect.
Just to add to Rashakil Fol's words: your array2 is specific view of your gaming board. That mean, that every value in it depends not only on who belongs the turn to, but also... |