.Net

Showing posts with label .Net. Show all posts

Many time we need to show a set of records grouped by a specific field. If you are building Windows app using WPF control, it is very simple to implement using the List View control that we already discussed in the last blog post.

 

Today we are going to discuss how easy it is to add support for grouping in the list. Continue to know about it and implement the same with a simple example.

Published by on under .Net | Tips

The 'ListView' control provides you the base to display a set of data items in a WPF (Windows Presentation Foundation) application in different layouts or views. In case you are working to show a dataset in your WPF app, this post will help you to get started with it.

 

In this blog post, we will learn about the ListView control with a basic layout followed by advance layout with a GridView. Continue reading further.

Published by on under .Net | Tutorial

In the last blog post, we discussed the C# code to detect whether any antivirus product is already installed in the system. In today's blog post we will learn how to retrieve the installed antivirus software name from the Security Center.

 

Continue reading to grab the source code and discuss more on the API set exposed by the Framework. If you have any queries, do let me know.

Published by on under .Net | C#

Many time during app development, developers need to find out whether any Antivirus software is installed in client's operating system. In case it is installed, we may want to know the installed antivirus software name.

 

If you are looking for such code (using .NET/C#), you came to the right place. Here we are going to see the code to retrieve this information.

Published by on under .Net | C#

The .NET Framework is a software development framework developed by Microsoft which runs primarily on Windows operating systems. But these days, it is used by millions of developers to create apps and services on any device and operating systems with amazing performance.

 

In this post, I am going to bookmark most of the .NET redistributables for references in future. Bookmark this for your future references too.

Published by on under .Net | C#

If you are a developer and using C# .NET to build your application, you may need to access the Application Data (AppData) folder of all the user accounts currently created in a specific system. The .NET framework exposes API to detect only the logged-in user's AppData folder.

 

To get the path for all the users of the system, you have to find it from the Windows Registry. Today we will discuss on that topic with a piece of code. Continue reading.

Published by on under .Net | C#

Microsoft .NET Framework is a programming infrastructure created by Microsoft for building, deploying and running applications & services that use .NET technologies, such as desktop applications, web applications and Web services.

 

In this post, I am going to list down the history of .NET Framework along with the key features which has been introduced with each version of the framework.

Published by on under .Net | C#

If you are addin developer for any Microsoft product, you might have in need to find out the exact version no. of the office product. You can get it from the app version from the interop libraries, but that doesn't return the correct one to you.

 

So, how to retrieve it? Today in this small post, we will find out the way to get the correct version no. If you know any alternate way, will highly appreciate if you do share it with us.

Published by on under .Net | Office

If you are building a custom installer of your own, you might want to compress the files inside a ZIP and extract them on need basis. You can easily do this by using some 3rd party libraries, among which some are free and some are paid versions. Why to use additional libraries if the .NET framework provides you the set of APIs?

 

You might be aware of this, but if you are unaware of it, let me tell you that, it was present since .NET 2.0. Let’s explore it in today’s quick blog tips & tricks. Continue reading and share the link in your network.

Published by on under .Net | C#

The giant company released the RC build (Release Candidate) of Visual Studio 2015 Update 2, focusing mainly on stability and user's feedback received via the Update 1 RTM channel. Microsoft marked this as "Go Live", though it is still under prerelease and has few known issues.

 

If you want to explore the new changes, read more to find the download links as well as the link towards release notes and a list of bug fixes, known issues.

Published by on under .Net | News

If you are working with XML serialization in .NET/C#, you might have already encountered this and might have analyzed a lot why your data is not serializing though you have written proper code. The reason/solution might be simple but in case you are not aware of such common mistakes, you will definitely break your head finding the root cause.

 

In this quick post, we will learn about the common mistakes that may happen while declaring the properties of data class that you are going to serialize. Continue reading and let me know, if you find more points to be added here.

Published by on under .Net | C#

In most cases, we use XML files to serialize/de-serialize data from/to the app. To do this, we expose properties of known types and pass them to the serializer for the automatic serialization process. Sometimes, we don’t need to serialize all the properties and manually need to mark them from the serialization process.

 

In this small blog post, we are going to see the way, by which you can prevent a property from the XML serialization process. Continue reading to know more.

Published by on under .Net | C#

Not every system has the right folder permission set to all user account and hence, sometime we need special access to specific folder during installation or while executing the application. It is not possible to manually set it up by browsing the folder and hence an automation is mandatory.

 

If you are looking for a way to set the right permission to specific folder(s) using C# code, this post will help you. Continue reading to learn more about it and grab the code.

Published by on under .Net | C#

Registry is the heart of Windows Operating System and all/most of the apps and games associates various values/data into the registry, which can be accessed at different point of time. Playing with Windows registry is very dangerous and hence general people should avoid or take special care while working with it.

 

In case you are a developer, you want to read/write/delete entries to/fro Windows Registry. This post will cover details and code snippets to delete an entire key tree from it. Continue reading to learn how to do it.

Published by on under .Net | C#

Sometime we need to find out details of running process which is external to your current process, might be a third party one. If you are currently looking for some code to find out details of a process, this post will definitely help you. Here we will learn, how to get the process description using C#.

 

Continue reading to learn about it. Also, sample code has been shared for you to understand it better. If you have specific query, drop a line in the comment section.

Published by on under .Net | C#

When downloading from a remote location, many time we need to know whether the file downloaded properly or not. There are many techniques to know about it but among them, one of the approach is to check the hash value of the file. The Cryptography APIs of .NET can help you to calculate the same.

 

Today in this post, we will learn how to calculate the hash value of file stored in local resource. Continue reading to learn more about the steps. Code has been shared.

Published by on under .Net | C#

Most of the developers in the Microsoft platform uses C# as their programming language. C# is now matured to version 6 and has come with new features in its different versions. As a programmer, we should know all these features. This will not only help you in cracking interviews but also help you decide whether you should upgrade your project to latest.

Published by on under .Net | C# 4.0

Let’s come to basics of programming today. It’s a common interview question asked during an interview and many time candidates become confused with the difference between using directive and using statement/block. Today we will cover this topic and discuss various difference among those.

 

To learn or brush up the basic concepts, continue reading more. I hope, this will clarify all your doubts. If any feedback, do share below in the comments section.

Published by on under .Net | CSharp

Many time we need to programmatically retrieve the size of a file before downloading it from a web location or a network path. This is require to calculate the progress and/or the estimated time to download and display it to the user. For a local file it is easy, but to retrieve this information from a remote location, the implementation is little different.

 

Today in this small blog post, we will learn how to retrieve it dynamically using C# code. Continue reading to know about it. Code snippet has been shared in the post.

Published by on under .Net | CSharp

This could be one of the issue you might face while using service call or HTTP Post to server. Though this issue rarely happens but in case you encounter such error in your production, possibility is your client application is facing issue connecting to the server due to proxy server.

 

If you come across such issue, this quick blog post will help you to resolve it. You don’t need to do much, but just a configuration settings will help you.

Published by on under .Net | CSharp