Skip to content

Sumit Gupta

bookmarking my life

Category: C#.NET

Tip: ToString() for your custom Class

May 31, 2022 by Sumit Gupta .NET, ASP.NET, C#.NET, Programming

While writing code and then debugging with step by step debugger you often just roll over a variable to see what it contain. With custom class it shows the class…

Read More

Extensions Method in .NET

February 5, 2017February 8, 2017 by Sumit Gupta .NET, C#.NET, Programming

Recently I use extension method in C# project. I knew those for years, but really never get a chance to use them where they are most effect. I have couple…

Read More

Refreshing USB ports using C#

February 2, 2015February 2, 2015 by Sumit Gupta C#.NET, Concept/algorithm, Operating System

Finished a project in which I need to refresh the USB ports by just before we start some particular benchmarking application my client has. Seems pretty easy job, if you…

Read More

C#: Code to load Object from Database

January 3, 2014 by Sumit Gupta .NET, C#.NET

It is often when managing old project that do not use ORM coding, we need to load object from database. In such scenarios it is quite boring to code all…

Read More

Self Hosted Web Service: WebServiceHost

April 26, 2013 by Sumit Gupta .NET, C#.NET, VB.NET/VB, WPF

So today I learn about WebServiceHost. Just a normal class but it does a lot for me today. This host the web service within you Desktop/Windows Service application. i.e. you…

Read More

WPF ComboBox: DataBinding with DataTable

April 10, 2013 by Sumit Gupta .NET, C#.NET, VB.NET/VB, WPF

Well it seems easy thing, but it took a while for me to get it working. Frankly I still don’t know why it works this way, but at least it…

Read More

MDI Window: C# way

April 8, 2013April 8, 2013 by Sumit Gupta C#.NET, Concept/algorithm, Programming, VB.NET/VB

So how can we make MDI Parent and Child Window in C#. The answer I found was that there is nothing inbuilt for it. So, I have two choice, either…

Read More

Posts navigation

1 2 3 4 Next →

© 2025 Sumit Gupta // Powered by WordPress