Type: Posts; User: mariocatch
Search took 0.03 seconds; generated 20 minute(s) ago.
March 12th, 2010, 10:17 AM
Nothing calls out to me at the moment. I may take some time today to replicate a simple use case of this and see if I can repro it.
I also suggest you write a simple test case for this scenario as...
March 11th, 2010, 11:17 AM
Where is the code that handles the uninstallation of the wservice? Is it correctly releasing handles to the file after deletion (ie: using())?
March 11th, 2010, 10:41 AM
It sounds like you didn't do as I suggested. You only want the workbook to open once, so don't move the workbook open to your button_Click event. Keep it in your forms constructor. But, move the...
March 11th, 2010, 10:13 AM
First, use [ code][ /code] tags please.
Second, you're declaring the 'excelWorkbook' variable inside of a method. Therefore, it has no scope outside of the method.
In your Constructor:
March 11th, 2010, 10:10 AM
If you have the Assembly object loaded and pointing to your assembly in question, you can use the GetCustomAttributes() method to get all custom attributes on it.
This should get you started.
March 11th, 2010, 10:08 AM
Btw SomersetBoy, in Visual Studio you can right click on Types that you know should be right, but aren't scopped, and go to Resolve->Include namespace. It will automatically add the namespace using...
March 10th, 2010, 11:10 AM
What sort of validation?
You can handle the OK button press event, and do conditional checks there. Perhaps a regex validator. Plenty of options.
March 10th, 2010, 10:39 AM
ah, well if you're being forced to do it that way since it's an assignment for class, then I suppose you have no other choice.
As long as you know what's wrong and right :)
March 10th, 2010, 10:00 AM
You've created this same thread 3 times on this forum. Stop.
March 10th, 2010, 09:59 AM
Your calling code has to know about the parameter types to use if you plan to reflect them.
Your solution is a little ugly, but this link has the proper solution for calling overloaded methods...
March 10th, 2010, 09:54 AM
If it's for basic users, just write a wiki page, or a word doc. There's no software that takes code and translates it into user friendly how-to's for regular end users of your application.
March 9th, 2010, 03:00 PM
I'm not sure I understand the difference... Your documentation IS a help file. Are you writing a help file for users or other engineers of your code?
If it's for users, then you should make a word...
March 9th, 2010, 02:42 PM
If you're using Visual Studio, this is built in for you btw.
Use XML tags for your comments and you can generate a help file directly from...
March 9th, 2010, 02:21 PM
A lot of major corporations use doxygen:
March 9th, 2010, 12:28 PM
What you want is the MaskedTextBox.
Some links to get you started:
March 9th, 2010, 10:10 AM
You could modify the TabPages collection which is a member of your TabControl instance.
Just like any other array, you can modify the index of its children.
March 9th, 2010, 09:58 AM
Reposting the original code from the original post.. I was going crazy trying to read it without code tags...
public class House
Room = new Room();
March 9th, 2010, 09:55 AM
Just want to say that HashTable is considered deprecated and has been replaced by the more generic solution of Dictionary<T,T>.
March 9th, 2010, 09:53 AM
TabIndex is the order in which a control will be tabbed to (tab in the sense of hitting the tab key on your keyboard). Is this what you want? Or are you trying to modify the order in which TabItems...
March 9th, 2010, 09:51 AM
There is no 'clean' way to cancel a thread on-demand. The only way to cancel threads is to signal for cancellation. When the thread receives the signal, it can then clean up and return...
March 8th, 2010, 03:12 PM
The best way to do this is to create the string before-hand, and use that string in the Console.WriteLine and the MessageBox.Show().
string myString = "foobar";...
March 8th, 2010, 02:32 PM
Console.WriteLine returns void (meaning, it does not return anything).
You can not cache the return of WriteLine to anything since it doesn't return anything.
March 8th, 2010, 02:28 PM
i can keep asking you questions and get one line responses, or you can give us more details of the problem. perhaps the entire config file?
March 8th, 2010, 12:18 PM
is it in a <configuration> group? is this for a webpage? what's the context?
March 8th, 2010, 12:05 PM
See MSDN for proper usage of connectionStrings tags in app.config files:
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!