Tag Archives: VB.Net

How to open a webpage when we click a button?

To open a webpage in your system’s default web browser, when you click a button in your form, write the following code in your button click event: Dim sURL as String = “http://www.dotnetblogger.info” Process.Start(sURL) The above piece of code will … Continue reading

Posted in VB.Net | Tagged button click, How to, open html page from .net, open webpage, open website, VB.Net, vs 2008 code, web page | Leave a comment

How to Check whether the application/process is running or not by passing the process name

Here is the awesome VB.Net code to check whether the application/process is running or not by passing the process name: Module modMain Sub Main() ‘Check whether acrobat is running or not If IsProcessRunning(“acrobat”) Then Console.WriteLine(“Yes. Acrobat is running”) Else Console.WriteLine(“No. … Continue reading

Posted in System & API, VB.Net | Tagged application running, c#.net .Net, How to, How to check application running, VB.Net, vb.net code | Leave a comment

How to minimize a window by passing the process name

The VB.Net code posted on this page minimizes the window for the given process name. Module modMain #Region “Declarations for Minimizing Windows” Private Declare Function ShowWindow Lib “user32.dll” (ByVal hWnd As IntPtr, ByVal nCmdShow As SHOW_WINDOW) As Boolean Private Enum … Continue reading

Posted in VB.Net | Tagged c#.net .Net, How to, How to minimize a window, minimize window, VB.Net, vb.net code | Leave a comment

How to check for previous instances in .Net?

There are some instances you may want to disallow the user to launch your program if it is already running. There are few ways to check whether the previous instance of your application is already running. Here is one of … Continue reading

Posted in C#.Net, VB.Net | Tagged c#.net .Net, How to, How to check previous instance, previous instance, VB.Net, vb.net code | Leave a comment

How to Check whether a Windows Service is running or not by passing the service name

Here is the awesome VB.Net code to check whether the windows service is running or not by passing the service name: Instructions: Open a New Console application Add a new bas module called modMain Set a reference to System.ServiceProcess (Go … Continue reading

Posted in System & API, VB.Net | Tagged c#.net .Net, How to, How to check service running, VB.Net, vb.net code, windows service running | Leave a comment