Forum: C# Aug 13th, 2009 |
| Replies: 7 Views: 416 sknake is right... This isn't a programming problem. This is more something that should be resolved by local security policies on a client machine. Are these machines part of a domain? |
Forum: C# Aug 13th, 2009 |
| Replies: 14 Views: 1,540 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# Aug 13th, 2009 |
| Replies: 3 Views: 620 You can't really determine what path they're saving the file to-- that dialog box is something the browser uses exclusively. Why not make the application itself determine what directory it's in, then... |
Forum: C# Aug 13th, 2009 |
| Replies: 2 Views: 336 Hey there,
There's not the notion of "applets", as in Java. The closest thing would be SilverLight, which does a lot of what you're asking. That would give you something encapsulated you could... |
Forum: C# Aug 13th, 2009 |
| Replies: 1 Views: 281 Can you please elaborate on your question?
I can say that between Vista and XP the display manager changed. That function may just behave differently now... |
Forum: C# Apr 9th, 2009 |
| Replies: 11 Views: 948 Actually, not trying to start a flame war here, but the Visual Studio is great as an IDE, whether you're working in VB or C#. The only complaint I have is that it's a bit slow to launch when you're... |
Forum: C# Apr 9th, 2009 |
| Replies: 5 Views: 1,019 What about just using the Class Designer in Visual Studio? It does a pretty good job of things, IMHO... |
Forum: C# Apr 9th, 2009 |
| Replies: 2 Views: 420 what?
Maybe this will help?
http://www.google.com/search?q=web+services+tutorial+C%23
There are LOTS of tutorials out there... There's a lot of ways you can work with web services, depending... |
Forum: C# Apr 9th, 2009 |
| Replies: 2 Views: 2,468 I will interject, though:
If Moonlight has been released for Linux, that's a subset of WPF. Perhaps they will put some work into WPF... |
Forum: C# Apr 9th, 2009 |
| Replies: 1 Views: 690 You need to run the contact launching code in a new thread, or consider using a background worker to start your FindContactEmailByName method.
Here's a tutorial on the background worker: ... |
Forum: C# Apr 9th, 2009 |
| Replies: 8 Views: 580 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,189 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,008 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: 4 Views: 1,133 Normally updating labels in a form is not a thread-safe operation. Check this article out:
http://msdn.microsoft.com/en-us/library/ms171728(VS.80).aspx
That may give you a good idea of what... |
Forum: C# Apr 9th, 2009 |
| Replies: 5 Views: 412 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 24th, 2009 |
| Replies: 4 Views: 2,713 check this out, see if it provides any guidance:
http://blogs.msdn.com/codejunkie/archive/2008/09/13/bluetooth-device-control-development-using-c.aspx |
Forum: C# Mar 24th, 2009 |
| Replies: 2 Views: 708 There's any number of ways you can do this-- if you're not actually keeping track of users logged into the site, you can really only track things through IIS, like page hits per hour, etc, with some... |
Forum: C# Mar 24th, 2009 |
| Replies: 3 Views: 6,829 ...So what part are you having issues with? Do you not know how to use ADO.Net to read Excel, or write to a SQL server? We can't provide full-fledged code solutions like this-- it is fairly involved,... |
Forum: C# Mar 24th, 2009 |
| Replies: 1 Views: 599 can you provide a structure for the nodes? do you want embedded nodes or something?
There are a lot of different ways you could do this in LINQ to XML, especially if you return the XML elements... |
Forum: C# Mar 24th, 2009 |
| Replies: 3 Views: 2,541 It might not be ASCII-- are you certain of the codepage, or the encoding? |
Forum: C# Mar 24th, 2009 |
| Replies: 6 Views: 2,694 It really depends on how you want to do it. If you just wanted to get a list of a single directory's directories, you could populate a CheckedListBox and then only process the items in the... |
Forum: C# Mar 19th, 2009 |
| Replies: 1 Views: 1,085 Yes. If you write an application using .NET 3.5 libraries and functions, then the end user will have to install .NET 3.5 framework, in addition to the code you're deploying.
Fortunately, though,... |
Forum: C# Mar 19th, 2009 |
| Replies: 1 Views: 1,486 Can you provide a code example? It could be that you're changing the time at which the SQLTransaction runs. I think there's a timeout that's based on the local time that the transaction is... |
Forum: C# Mar 19th, 2009 |
| Replies: 2 Views: 1,653 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: 4 Views: 3,231 ...But that only handles ZIP files. RAR files will have to be done with something else, like this DLL:
http://www.example-code.com/csharp/rar_unrar.asp
This won't create RAR files, but it will... |
Forum: C# Mar 19th, 2009 |
| Replies: 9 Views: 4,850 What are you trying to load from? If you're trying to load the values from a database or an XML file, then you can use Databinding to bind the combobox to a data source, where you've added all of the... |
Forum: C# Mar 19th, 2009 |
| Replies: 3 Views: 2,321 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: 3 Views: 6,829 Can you please show what work you may have already undertaken on this particular project? The code you're asking for is not really that "easy" to show, and it is heavily dependant upon the format of... |
Forum: C# Mar 19th, 2009 |
| Replies: 1 Views: 548 You'll probably want to wrap it in an MSI package or something... You can't really install FROM an ASP.Net page like you're asking... |
Forum: C# Mar 19th, 2009 |
| Replies: 5 Views: 1,229 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,251 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: 7 Views: 389 Can you set the purchaseUnits value artificially high and try stepping through it? This code genuinely looks like it should work just fine.
The only thing that I can think is that if you're using... |
Forum: C# Feb 12th, 2009 |
| Replies: 4 Views: 986 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: 2,954 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# Dec 1st, 2008 |
| Replies: 1 Views: 904 Have you dropped a debugger on that event to try and look at the call stack to determine exactly how that's being fired? It sounds like the tabpage or the textbox is actually losing focus every time,... |
Forum: C# Dec 1st, 2008 |
| Replies: 2 Views: 959 Generally when I uninstall or install services via the MSI, I do all of it in the custom action portion. I would look at this:
http://msdn.microsoft.com/en-us/library/zt39148a(VS.80).aspx
for... |
Forum: C# Dec 1st, 2008 |
| Replies: 4 Views: 740 Another thing to do, after you've made a reference to the DLL or project, is to use the using statement to include the namespace included in that DLL file. It's not absolutely required, but it does... |
Forum: C# Aug 16th, 2008 |
| Replies: 4 Views: 2,698 Thanks!
The only thing concurrent about my threads, so much, is that they share a single text reader and text writer. I deal with that using the Synchronized() methods on each of those. The order... |
Forum: C# Aug 13th, 2008 |
| Replies: 4 Views: 2,698 What's interesting is that I did take that approach, and it did seem to work. However, I had some concerns. What if say, 20 threads per core worked on one machine, but not on another?
I wound up... |
Forum: C# Aug 4th, 2008 |
| Replies: 4 Views: 2,698 Greetings all,
I'm actually proud to have a question I've never seen asked here. I've got a 1.5GB text file (YES, it's really 1.5GB) where each line needs a set of modifications. I've got the... |