| Thread | Last Post | Replies |
|
| Converting a Dictionary to an array? | 18 Dec 2006 22:26 GMT | 20 |
This is two questions in one really. First, I wonder how to convert the values in a Dictionary to an array. Here's the dictionary: private Dictionary<Uri, Schema> schemas = new Dictionary<Uri, Schema>(); Uri is the System.Uri class, and Schema is a class I made. Now, I want
|
| partial classes | 18 Dec 2006 22:03 GMT | 10 |
I have come to like just about everything in VS2005 except for the "partial class" feature. Sometimes when I add a control to a web form, it is not referenced in the partial class [no Intellisense]. Before VS2005 I could simply add my own reference, now I can't. Where can I
|
| byte conversion | 18 Dec 2006 22:01 GMT | 4 |
I have a byte array read from a file using Stream IO, and containing a mixture of 16-bit integers, strings, etc.. The problem: what is the best way to convert two byte sequences into 16-bit integers in a way similar to what I used to do with C or C++ formatted IO?
|
| Reading (string) | 18 Dec 2006 21:52 GMT | 6 |
I have a command line application and i want to read a string that contains couple of words.I should read this line untill I reach a group of charecters such as {b,c,d}. How can I do it?
|
| WebRequest: underlying connection was closed - what the hell? | 18 Dec 2006 21:34 GMT | 2 |
I'm having troubles with uploading files to the ftp server using FtpWebRequest. I occasionally get an Exception saying: "The underlying connection was closed: An unexpected error occurred on a receive". but what's wired i get this exception just after upload is finished when i
|
| BinaryWriter - Dynamic cast | 18 Dec 2006 21:28 GMT | 1 |
I am new to C# and I don't know how to cast dynamically an object to a specific type . I have the object and its type (as a Type object). For example, I read some data from a query (which has been created dynamically) and get a list of objects and theirs types (string, Int64,
|
| system.directoryservices question | 18 Dec 2006 21:17 GMT | 2 |
I have inherited a sharepoint web part from my predecessor that is displaying an issue. It calls FindAll() to locate a specific security group, and then enumerates through the group to retrieve the user's display names and email addresses.
|
| System.Windows.Forms.WebBrowser and AxSHDocVw Differences | 18 Dec 2006 21:15 GMT | 1 |
Trying to figure out the difference between these 2 browser I am embedding a MS office Document (Word/Excel) in a WebBrowser on a Form With AxSHDocVw I can do the following to save the current document object o = new object();
|
| Tooltip on a label widget? | 18 Dec 2006 20:34 GMT | 1 |
I'm trying to put a tooltip on a label in csharp... I found an example that says to add some code to the InitializeComponent() method, but that's in the .Designer.cs file - which says to not edit it. Is there a different way to go about it that is designer friendly?
|
| Symmetric encryption keys | 18 Dec 2006 20:16 GMT | 6 |
Picking your collective brains again, this time regarding the storage of the key used in symmetric encryption. Let's say you have a requirement to add encryption to a C# project, so you might choose the TripleDESCryptoServiceProvider class:
|
| Bubbling Exceptions | 18 Dec 2006 18:41 GMT | 2 |
In studying for the 70-316 I ran across the question below. I'm a little confused by the 'correct' answer. Why is it necessary to wrap the Validate method in a try/catch block? Doesn't the Exception that's thrown in the call to Validate propagate up the call stack to the parent ...
|
| sending msg to message loop of background thread | 18 Dec 2006 17:36 GMT | 8 |
I started a background thread to preform some time intensive tasks for a GUI frontend. This background thread uses a C++ object which requires a windows message loop so I started one in it by calling Application.Run(). Now I can see that messages from the C++ libraries
|
| Clean up of memory leak in unmanaged code | 18 Dec 2006 16:23 GMT | 7 |
I have been wandering about the best way to sandbox memory leaks in 3rd party libraries when using them from the .Net framework. I have a 3rd party library, written in C++, that leaks a lot of memory but I still had to use it.
|
| wmp com in c# application - reduce memory | 18 Dec 2006 15:46 GMT | 2 |
i have a small application setting in tray. The main form is hidden but has a media player component on it which plays a url link (radio tuner...). Anyway, my application take about 35MB of ram.
|
| Access DB transaction or rollback? | 18 Dec 2006 15:36 GMT | 4 |
I wrote a C# program that uses System.Data.OleDb (MS Access). For a certain operation, it calls bunch of ExecuteScalar(). The problem is, if any of those ExecuteScalar failes, then the whole DB becomes unstable data. So can I set a rollback point or group them in a one
|