Browse by Tags
All Tags »
Tips and Tricks (
RSS)
Close the Current File in Visual Studio I spend many hours a day working with Visual Studio 2008 and the Office Product. What I most like from the user experience perspective is to have the same shortcuts and key-bindings, no matter which application I am currently using. In Office Applications I use the shortcut Ctrl + W to close the current window and I have always wanted this shortcut to work inside Visual Studio. Today I created this key-binding for my self. If you want to create yours: Go to...
Copy Source As Html (CopySourceAsHtml) on VPC I've been using Copy Source As Html (CopySourceAsHtml) for Visual Studio 2008 RTM for a while, but recently tried to work with it on a Virtual PC ( VPC ). When I tried copying a code snippet to the clipboard I ran into an exception: " Requested Clipboard operation did not succeed ." I found the code that I had to change in Mike Glaser's Blog , but to make thinks a little shorter: 1. Download this ZIP file that contains the add in. 2...
Compare .Net Assemblies with Framework Design Studio Trying to keep up with all the Alphas, Betas and CTP's, I was looking for a tool that will help me to compare .Net assemblies so that I can easily spot what's new in each drop. Just when I didn't find a suitable tool and was about to write one for my self, I noticed Framework Design Studio , by Krzysztof Cwalina, Hongping Lim and David Fowler. From the Framework Design Studio Home Page: " Framework Design Studio is a set of tools...
Linq to SQL Like Operator As a response for customer's question, I decided to write about using Like Operator in Linq to SQL queries. Starting from a simple query from Northwind Database; var query = from c in ctx.Customers where c.City == "London" select c; The query that will be sent to the database will be: SELECT CustomerID, CompanyName, ... FROM dbo.Customers WHERE City = [London] There are some ways to write a Linq query that reaults in using Like Operator in the SQL statement...
רוצים לדעת איך להוסיף קוד לפוסטים שלכם בצורה קלה ונוחה שגם שומרת על העימוד, הצבע והפונט של הקוד?...
Learn hoe to separate datasets from the table adapters in orcas...
Jon Galloway has some tips to save some time during this process. As his post's title says - I wish I'd got to his post before trying to install... Enjoy!
Partial classes are a great new feature in Visual Studio 2005. They allow the definition of a class, struct or interface to be split into multiple files. You usually find partial classes when using some kind of a designer, such as Windows Forms Designer, or DataSet Designer, but sometimes you just want to split your class to separate files (maybe to allow some developers work simultaneously on the same file in source control). In order to arrange the solution a little bit, Instead of keeping all...
When you have large solutions that have many files, even if you arrange your files in folders, they are sometimes very difficult to find... If you know the full name of the file you want to open (for example Program.cs), you can go to the Find ComboBox in the Standard toolbar. (You can go directly to this combo box using Ctrl + / keystroke). Then type your file name and hit Ctrl + Shift + G . Your file will be opened in a new tab. If it is already open, it will be focused. If the file name is too...
When exploring new technologies, You often wonder what is really written in the assemblies you reference. Currently, exploring WF and WCF along many other exiting new technologies, I am working with a great tool that I want to share with you: Reflector for .NET. Reflector is the class browser, explorer, analyzer and documentation viewer for .NET. Reflector allows to easily view, navigate, search, decompile and analyze .NET assemblies in C#, Visual Basic and IL. So, If you want to know all about how...
When debugging code, one of the annoying things for me is to step into a one-line method or property. For example, Assume that I have the following property: /// <summary> /// Returns the word (string) of this lookup word /// </summary> public string Word { get { return word; } set { word = value ; } } And I have a code that uses that property when calling a method: // Use that property as a parameter for a method DoSomething(obj.Word); When you debug that line, and step into the method...
Resolver must be specified. The default resolver (PNRP) is not available PeerChannel is part of the Windows Communication Foundation (WCF) framework that enables development of managed Peer-to-Peer applications. More details about Peer Name Resolution Protocol (PNRP) here. If you're developing a P2P application using WCF, and you run into the following exception when trying to open the service host: "System.InvalidOperationException : Resolver must be specified. The default resolver (PNRP...