How can one get a canonical file path in .NET?
Dear ladies and sirs. How can one with minimal effort (using some already existing facility, if possible) to convert paths like c:\aaa\bbb\..\ccc to c:\aaa\ccc ? ...
Dear ladies and sirs. How can one with minimal effort (using some already existing facility, if possible) to convert paths like c:\aaa\bbb\..\ccc to c:\aaa\ccc ? ...
Based on my question from yesterday: link text if I had to append to my existing 'where' expression, how would i append? Expression<Func<Client, bool>> clientWhere = c => true; if (filterByClientFName) { clientWhere = c => c.ClientFName == searchForClientFName; } if (filterByClientLName) { clientWhere = c => c.Clie...
The docs state: From WebRequest.Create Method The .NET Framework includes support for the http://, https://, and file:// URI schemes. Custom WebRequest descendants to handle other requests are registered with the RegisterPrefix method. However I've also been using this class to get files via ftp (not listed in the docs). Is there a ...
I have a maintenance application that has to turn enterprise data (from various databases/tables) into flat files, each in a specific format, for consumption by a legacy application. I've got data models like public class StatusCode { public String Id { get; set; } public Char Level { get; set; } public String Description { ...
Rewritten: I could use some input, suggestions, and samples from some other minds on building a databindable collection. The collection needs to provide a databindable, editable tree of items, but with a small twist: the items need to be one of two types, with each type providing slightly different characteristics. The two types of it...
I've set both Timeout and ReadWriteTimeout of HttpWebRequest, and still GetRequestStream does not time out when trying to connect to a non-existent server. I've run into similar problems in the past when the DNS resolution was struck, but this time the server in question is running on my own machine (localhost) so this not relevant. The...
The webrowser control has a navigating event that is raised before the browser navigates to a URL, but what I need is a preview event for when the webbrowser requests referenced media/pages/css. For example when a image tag is seen by the control, it will request the image from its URL. I need to proxy this URL to decide if I should disp...
Hello Does anyone know if and object's executable code/instructions that are stored in memory by the CLR when creating it are stored once for every instance of such object? Or they are duplicated for each created instance? In other words, does the CLR stores once the Executable Instructions of an object and reuses that for every instan...
Can anyone suggest any good resources for getting started with IL. Specifically if anyone knows of any GOOD books or screencasts I would appreciate the feedback. ...
Program "" has more than one entry point defined: 'Class.Main()'. Compile with /main to specify the type that contains the entry point. I have searched and searched, and have only found the syntax to specify the class of the entry point, (/main:class) but not the type. Can anyone help? static void Main() { } static void Main(string[] ...
Hello, Ive been looking a long time for this, but can't seem to find it. When I add a menu strip in vb .net, it looks like this: and I want it to look like the WinRar, Calculator, Notepad etc menus like this: From what I gathered, in vb 6 you could create a mainmenu and do it this way, but in vb .net it seems like all there is is...
We are working with Visual Studio SDK, creating a package. We need to get notified when a file (projectitem) gets undo checkout from TFS. Any solutions/pointers are appreciated. ...
I'm trying to display a simple DataGridView linked to a DataTable and I want, ultimately, my first column in the DataTable to be the row header cell for the DataGridView. At this point I will settle for having any value in the row header cell. I can display the DataGridView with all my rows and columns, and with column header cells, bu...
I have a user base that is forced to use IE 7. I have created a web site that will be getting a new URL. Is there a way to force a bookmark to update to point to the new URL when a user hits the old site via a bookmark in IE? ...
I am considering deploying an existing WPF application as an XBAP application. It currently uses TCP remoting which i would likely change to HTTP remoting. What is the best way to secure the communication - will using an SSL certificate on the remoting server be sufficient or are further steps necessary in such a scenario? ...
Hello, I'm developing an n-tier smart client application. The client part of the application is split into two tiers. An interface application and client business lib that retrieves and serves data to the interface. The data is supplied via a collection of WCF services net.tcp and http depending on the client connectivity. My problem...
Hi, I'm building a .NET DLL Class Library which depends on other libraries such as log4net.dll - where should I put these DLLs when packaging up my DLL? Is there a way to automatically include them inside one super-DLL? Should I just ship all the DLLs in a single bin folder? ...
Possible Duplicate: Best practices for signing .NET assemblies? Why should I sign a .NET assembly - what benefits does it bring as opposed to not signing it? ...
I am using a TreeView with an ImageList. As the TreeView is filled with items, each item will have an icon associated with it. Many of these icons could be identical, but currently, I am not adding any code to track duplicates, I simply add each icon to the ImageList and then track the icon associated with each TreeNode. My question is ...