Kunal-Chowdhury.com - Microsoft Technology Blog for developers and consumers: Tips
Showing posts with label Tips. Show all posts
Showing posts with label Tips. Show all posts

Do you know that, you can easily copy code from C# Interactive Window?

C# Interactive Window, inside Visual Studio, allows you to test code snippet without compiling the application. It supports several features like syntax highlighting, intellisense and more, and comes with a feature like 'Copy Code', that allows you to copy only the code part from that window.

 

In this quick blog post, we will discuss about the 'Copy Code' functionality part of the C# Interactive Window, inside Visual Studio.



Windows 10 will allow you to control the permissions an app has requested

Along with Windows 10 Insiders Preview Build: 17063, Microsoft added support to see the permissions an application has requested. You will have total control over it to allow or disallow a specific permission for that application.

 

In this quick post, we are going to discuss about this feature, which has been newly introduced with Windows 10 build 17063.


Solution: Add-in can only be connected or disconnected by an administrator

It often happens that, when you attempt to remove a COM Add-In from an Office application, it shows a message saying that 'This add-in is installed for all users on this computer and can only be connected or disconnected by an administrator.'.

 

If you face this case, it is because the said add-in was installed using admin permission. To disconnect that add-in, you need to follow the steps as mentioned in this post.


How to force an Outlook Add-In to load always?

Outlook's resiliency logic, which was introduced with Outlook 2013, allows you to control the way slow add-ins are handled. It gives users option to disable add-ins that take more than 1 second to load, during Outlook launch.

 

In this post we will learn how to force Outlook to always load a specific add-in, by modifying Windows Registry settings.


How to find, which COM Add-Ins are installed in Outlook client?

Outlook add-ins are built by third parties to integrate into Outlook to provide additional functionalities to it. There exists many addins which makes the life easier while working with mails and meetings. Some examples are: Outlook social connector, Skype meeting, TeamViewer meeting addins.

 

In this post, we will learn two different methods by which you will be able to see the list of addins installed on your Outlook client.


Here's how to grab the Office Insider release builds using Registry hack

Just like Windows 10, there also exists an Insider Program for Office 365 subscribers to get early access to the new features and improvements, which will eventually come to the next public release build of the product. This program is available as "Insider Fast" and "Insider Slow" rings.

 

In this quick tip, we will learn how to change the Office Insider release branch using a Registry hack. Continue to read further on it.



Here's how to install Windows 10 Fall Creators Update

We all know that, the next major update of Windows 10, named 'Fall Creators Update', is already there. The update released worldwide on 17th October 2017, contains a set of new features like: Fluent design, Windows Mixed Reality, OneDrive placeholders and many more improvements and fixes.

 

By the time you might have already received the upgrade notification, but in case you didn't, here's some ways to grab the Windows 10 Fall Creators Update.


Here's how to add Microsoft Print to PDF printer driver in Windows 10

In this computing world, we are familiar with PDF document formats, which opens in Acrobat Reader or any other compatible PDF Reader applications. In Windows 10, it is easy to create PDF files using the Microsoft Print to PDF printer drivers.

 

Though, this feature is available by default with the operating system, but in case it is not available, you can install the required driver by following the steps mentioned in this post.


Here's how to reset Windows 10 password with or without Reset Disk

Haven't used your PC for a while and forgot Windows 10 sign-in password? Change Windows password often but couldn't remember the last password used on your laptop? Need to assist someone else in resetting lost computer password?

 

Performing a clean install of Windows is never a good idea, especially if you have important softwares or files stored on your hard drive. In this tutorial we'll show you how to easily reset forgotten Windows 10 password with or without reset disk.


Use DebuggerHidden attribute to hide methods from debugger breakpoints

When you want certain constructors, methods or properties out of the debugger scope, you can use the DebuggerHidden attribute, part of the System.Diagnostics namespace. When a member has been marked as DebuggerHidden, breakpoints will not hit for that member.

 

If you are unaware of this attribute, let's go a step ahead to learn about this attribute and how it works. Continue reading to know more.


Visual Studio 2017 can now decide whether to enable Lightweight Solution Load

Lightweight solution loading is a new concept in Visual Studio 2017, when enabled, Visual Studio loads a small subset of the projects instead of loading all the projects available in a large solution. Thus, it loads solutions twice faster.

 

You need to manually enable/disable this feature. But in version 15.3 and above, you can ask Visual Studio to decide whether to enable it or not. Let's discuss the steps.



The Complete HTML Cheat Sheet

Looking to jump start a career in web development? Seeking help in recalling an HTML tag? Just here to check out what all the fuss about HTML is about? Well, if your answer to any of these questions is in the affirmative, then you’ve come to the right place.


Here's how to run web application in multiple browsers from Visual Studio

If you are a web developer and designing any website or a page, you may want to run it in multiple browsers to check cross-browser issues. Visual Studio provides an easy way to run the web application in all the selected browsers at a single shot.

 

In this quick tip, today, we are going to learn how to run the web application in multiple browsers from the Visual Studio IDE. Continue reading to know more about it.


Let's learn about default literal in C# 7.1

If you are using Visual Studio 2017 version 15.3, it came with new improvements on top of C# 7.0, thus changing the version to 7.1. One of the new change in C# 7.1 is 'default' literal to avoid the redundant information while writing code.

 

In this post, we will learn about this improvement and will also cover how to use this. Continue reading to know about it.


Do you know that, there exist a snippet to generate reverse 'for' loop?

In every programming language, when you want to loop through a collection, you use the 'for' loop in maximum scenarios. When writing code in Visual Studio, you might be aware that, there exist a code snippet to write the for-loop structure.

 

But you might not noticed that, there exist another code snippet to generate a reverse for-loop. Let's see what it is and how it operates.


Marshal.ReleaseComObject() vs. Marshal.FinalReleaseComObject()

If you are using COM components on your .NET code, you might be already aware of the Marshal.ReleaseComObject and Marshal.FinalReleaseComObject, which are used to release the managed reference to Runtime Callable Wrapper (RCW) of the COM object.

 

If both are used to release COM objects from memory, and you are unsure which one to use, then this post will help you to learn the differences between the calls.



Here's how to retrieve Process details of Excel, PowerPoint app instance

If you are using COM objects like Microsoft Excel or Microsoft PowerPoint, you may sometime notice that the COM instances are not releasing from the process list; even though you called Close(), Quit() on the application instance.

 

In case you faced the same issue, this post will guide you to find the Process ID (from the HWND) of that particular instance to take further action to release it.


Solution for runtime error while repeatedly calling Ping.Send from C#

If you are using .NET Framework 2.0 or .NET Framework 3.5, and getting unexpected Runtime Error while repeatedly calling the System.Net.NetworkInformation.Ping.Send method from C# code, this is due to an issue which got resolved in .NET Framework 4.0 and above.

 

Today, we are going to discuss about the issue, the root cause and the workaround to resolve this issue targeting .NET Framework version older than 4.0.


Parse or TryParse? Which one should I use?

It's often require to parse a string value to another data type, like integer, and there exists a confusion among the developers whether to use the Parse method or the TryParse method that the framework provides to us.

 

In this post, we will discuss the difference between each of those two methods and guide you to understand and pick the preferable one. Continue reading to know more.


What's the difference between null string and string.Empty?

Let's continue our 'Back to Basics' series. It's often an interview question to get an idea of the basic knowledge of a candidate. This is one of the simple question that an interviewer may ask during an interview and you should also know this while writing your code.

 

In this post, we are again going to discuss on the basics and this time we will learn the difference between null string and empty string.

 
© 2008-2018 Kunal-Chowdhury.com - Microsoft Technology Blog for developers and consumers | Designed by Kunal Chowdhury
Back to top