Background process in vb.net

Background process in v...

This month i started a new software, it’s a SEO Analisys Tool, and i needed to threat multithreading and background operations handling. Giving a look inside the .Net Framework i found a very interesting class, the BackgroundWorker class. First of all i have to tell you where...
Play wav file in vb.Net

Play wav file in vb.Net...

Today i was working on a restaurant software, the customer asked me to play a sound alarm when a new order arrives because he can’t stay all the time looking at the software. I found it very easy, the .net framework is really rich of useful classes to use Here is the code to...
Thread synchronization in .Net

Thread synchronization ...

Multithreading is a great thing but you need to know that operations are not performed perfectly as you write them in your code. If you write a=a+1 you assume that the thread will execute it in just an operation but it’s not so. Multithreading happens at a very lower level (like...
Age calculation function in vb.net

Age calculation functio...

I know this is a really simple task but i needed it in a project and i found a working function on www.freevbcode.com so i decided to publish it here too Public Function GetAge(ByVal Birthdate As System.DateTime, _ Optional ByVal AsOf As System.DateTime = #1/1/1700#) _ ...
High quality thumbnails in VB.Net

High quality thumbnails...

When i started .Net programming i appreciated all the new functionalities of the framework, everything was easier and faster to do. I tought the same thing about thumbnails generation when i found the GetThumbnailImage method of the System.Drawing.Bitmap class but giving a deeper...
Unhandled exception Win32Exception,Error creating window handle

Unhandled exception Win...

———————————— Unhandled exception Win32Exception,Error creating window handle.,System.Windows.Forms, at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp) at System.Windows.Forms.Control.CreateHandle() at...
Custom ListBox with icons in .Net

Custom ListBox with ico...

Having a nice interface is a must for professional software, it’s why the Custom Controls market is growing so fast. Programmers can have a nice interface without writing a single line of code, all that they have to do is to buy a Control Library. If you’re planning to...
Get Hard Disk Serial and CPUID in .Net

Get Hard Disk Serial an...

When we sell a software we may decide to make it work only on a specific computer generating a license key that works only for that PC. When the customer changes his hardware he has to ask for a new license key. We can identify a computer retrieving it’s CPU ID and it’s...
Using a class as ListItem in a ListBox in .Net

Using a class as ListIt...

Sometimes it could be useful to use classes as listitems in a listbox. This way you can have extra item info directly into the listbox control so when you click on the item you can easily access the full class data. I always use this solution when i work with databases so i don’t...
Using MySQL database in .Net

Using MySQL database in...

Last year i had to choose a Database Server for a new application i had to develop for my customer. The options was Access, SQL Server, Oracle. As you can imagine i decided to exclude Access from the list due to it’s slow performances. I had to decide between SQL Server and...

« Previous Entries