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

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.


Have you heard about StringCollection class in .NET?

StringCollection class is a spcialized collection type present in .NET Framework class libraries. The name itself represents it as a collection of strings. It exposes common methods and properties to manage string collection.

 

If you do not know about this class, in this post we are going learn about it's properties, methods and learn how to use it.


Solution for NPOI only supports BIFF8 format exception

In last few articles we have discussed about NPOI libraries for .NET. There could be some cases, while reading Excel files, you may get an exception with 'The supplied spreadsheet seems to be Excel 5.0/7.0 (BIFF5) format. POI only supports BIFF8 format' as message.

 

In this quick tip, we are going to discuss about this issue, the way to handle it and the way to read the same Excel workbook content.


Here's how to read Excel 95 or older document (XLS) using NPOI libraries

In the last two articles, we have learned how to use the NPOI library to read Excel 2007 (.xlsx) and Excel 97-2003 (.xls) file format. We have also discussed more about the APIs and shared the code snippet for you to understand it easily.

 

In this article, we will learn how to read Excel 95 and older workbooks easily using the free Apache NPOI libraries in your C#/.NET applications.


Here's how to read Excel 97-2003 document (XLS) using NPOI libraries

In the last article, we have discussed about the NPOI library and then learned how to read Excel 2007 file formats using the free, open sourced NPOI library. I hope, the code snippet was clear and easy to understand.

 

In this article, we will learn how to read Excel 97-2003 workbooks easily using the free Apache NPOI libraries in your C#/.NET applications.



Here's how to read Excel 2007 document (XLSX) using NPOI libraries

Recently, we have learned how to read Excel workbooks using the Microsoft Office COM APIs. As you may already know that the COM APIs are slow while performing operation, we will see another way to read the content which is faster.

 

In this article, we will learn how to read Excel 2007 workbooks using the Apache NPOI libraries which is available freely to use in your application.


Windows 10 most likely to allow control over update bandwidth

Windows 10 Update delivery works better by creating a peer network to send/receive updates within LAN and/or internet. But till date, there was no control over it's upload/download bandwidth and thus, there was a need for it.

 

Though this feature is not yet announced in Release Notes, but a separate settings page has been seen in recent version of Insiders Preview build, which we are going to discuss in this post.


Here's how to change Codelens Indicator style in Visual Studio

Code lens is a feature, first introduced in Visual Studio 2013, which helps you to understand important aspects about your code without leaving your favorite editor. It tells us the code changes in a fantastic way, within the code editor.

 

In this small tips & tricks post on Visual Studio, we will learn how to change the font and color settings of Code Lens.


Microsoft Word returns Error 800A175D - Could Not Open Macro Storage

If you are using Microsoft Word Automation or COM Components to read a MS Word document, you may notice the following error message for few word documents "Error 800A175D - Could Not Open Macro Storage".

 

This is caused by the user account, whose "user hive" is not loaded when Microsoft Word started. Continue reading to know more about the issue and solution.

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