Forum: C# Aug 13th, 2009 |
| Replies: 14 Views: 1,560 You probably need to seek to the end of the file? It seems like that would be the way to go. The Streamwriter starts at position 0, I think, and just clobbers whatever is there... |
Forum: C# Apr 9th, 2009 |
| Replies: 8 Views: 586 You don't really need the typed List for what's going on, it's just a nice thing to have in terms of type safety... :) |
Forum: C# Apr 9th, 2009 |
| Replies: 3 Views: 1,214 Check this cool bit of code out:
http://blogs.msdn.com/knom/archive/2008/12/31/ip-address-calculations-with-c-subnetmasks-networks.aspx
This guy has a pretty slick solution! |
Forum: C# Apr 9th, 2009 |
| Replies: 5 Views: 1,032 Could you maybe set a scan timeout for a shorter period of time, set that running on a thread, and have that thread check for some type of stop "signal" before scanning again? I think a Singleton... |
Forum: C# Apr 9th, 2009 |
| Replies: 5 Views: 413 A web service would DEFINITELY be the way to go. Then, all you would have to have in a configuration file or hard-coded is the address of the web service you're connecting to. That's a much safer... |
Forum: C# Mar 19th, 2009 |
| Replies: 2 Views: 1,706 Or, you can just instantiate the List with the ISingleResult:
ISingleResult<myType> isr;
List<myType> myList = new List<myType>(isr);
Either way should work, as the List<T>() constructor... |
Forum: C# Mar 19th, 2009 |
| Replies: 3 Views: 2,367 If you have a very large bunch of XML data, a string datatype isn't practical-- that string could potentially load hundreds of MB of data, risking a MemoryException being thrown if too much is... |
Forum: C# Mar 19th, 2009 |
| Replies: 5 Views: 1,255 looks like you could have an error in your query syntax:
"Select * From Codes Where User ID = " +
probably needs to look like
"Select * From Codes Where [User ID] = " +
The "missing... |
Forum: C# Mar 19th, 2009 |
| Replies: 4 Views: 2,288 You may have to create a custom deployment package to do this-- the default MSI creator doesn't afford you many options, but the deployment package project does:
... |
Forum: C# Feb 12th, 2009 |
| Replies: 4 Views: 1,015 Just to add to this:
If you're using reflection frequently because you have several classes that have the same method, you could consider casting those objects up to a defined interface. Say you... |
Forum: C# Feb 12th, 2009 |
| Replies: 14 Views: 3,031 Remove the object[] argument from your MoveUp() method. You don't need it.
Also, when you do the BeginInvoke, it should look like this:
MainForm.BeginInvoke(MoveUp, null);
a params... |
Forum: C# May 24th, 2008 |
| Replies: 2 Views: 1,224 Depends. If you're using the datasets in the designer view, you really don't have THAT fine-grained of a control over when the datasets are instantiated, and how long they stick around in memory.
... |
Forum: C# Feb 14th, 2008 |
| Replies: 7 Views: 1,092 Why don't you have permission to install updates? Is your machine locked down or something?
Best route would be to contact your system administrator. They should authorize you to install the... |
Forum: C# Dec 8th, 2007 |
| Replies: 3 Views: 842 What if it converted floats over to ints automatically? What would it do with the fractions?
scru makes an excellent point. When you're working with a type-safe language, one of the key points is... |
Forum: C# Dec 6th, 2007 |
| Replies: 2 Views: 3,175 Why not store all the usernames in an array to begin with, then bind that Listbox to the array as a datasource? Then you already have a data structure there to work with.
Or alternatively, the... |
Forum: C# Dec 6th, 2007 |
| Replies: 2 Views: 1,605 yep. I think that you're right there. I'm pretty sure the data tools in the IDE are removed from the Express Edition...
But hey on the bright side-- at least you're getting really familiar with... |
Forum: C# Dec 6th, 2007 |
| Replies: 2 Views: 3,017 you might want to check out these two links:
http://msdn2.microsoft.com/en-us/library/ykdxa0bc(VS.80).aspx
http://msdn2.microsoft.com/en-us/library/t4a23xx4(VS.80).aspx
I think a... |
Forum: C# Jul 20th, 2006 |
| Replies: 17 Views: 93,470 You're looking at an issue of object persistence, more than likely.
When you close the form, the object that the form represents, including all members included in it, are disposed. More than... |
Forum: C# Apr 19th, 2006 |
| Replies: 6 Views: 26,707 No problem. By the way, check the other thread you posted. I think this conversation happens to be REALLY relevant to the topic there. :) |
Forum: C# Apr 19th, 2006 |
| Replies: 3 Views: 9,337 I'd have to agree with plazmo on this one.
You will probably have to have Office installed on all of the machines that you're planning on depolying to. I think that the Excel stuff you're doing... |
Forum: C# Apr 15th, 2006 |
| Replies: 6 Views: 26,707 FYI: OLEDB is for both Excel and Access. Maybe this article will help:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;257819
Basically, once you start using OLEDB, you can treat the... |