Geeks With Blogs
Pranav`s TechNiche technical thoughts of a coffee addicted developer .NET
Check whether computer is connected to Internet or not - using VB code

Usually, most of the windows applications or other apps which reside on client system, needs to internet connectivity to perform some tasks. If the system is not connected to internet, it will take some time to check for it and return an error. For dealing in this kind of situations, here is a code sample that you can directly use with your code to check whether the system is connected to internet or not.

Posted On Tuesday, April 19, 2011 12:21 PM

What are Collaboration Data Objects (CDO)?
Collaboration Data Objects or CDO, is a component that enables messaging between applications. It's something like the MFC we have in VC++ that enables us to prefer a simpler interface compared to the WIN32 API which, as an interface, still requires lots of escalation work by developers (yet very robust!). CDO is primarily built to simply the creations of messaging applications and we should keep in mind that CDO is NOT a new messaging model but is BUILT ON the MAPI architecture. It is just an extended ......

Posted On Tuesday, April 20, 2010 9:18 PM

Opening default web browser from Windows Application
This post describes how to open default web browser from a .NET Application (esp. a Windows Application). First, copy the following code and paste it in your class. Private Declare Function ShellExecute _ Lib "shell32.dll" _ Alias "ShellExecuteA"( _ ByVal hwnd As Long, _ ByVal lpOperation As String, _ ByVal lpFile As String, _ ByVal lpParameters As String, _ ByVal lpDirectory As String, _ ByVal nShowCmd As Long) _ As Long Then, you can use the function ShellExecute() as follows. Private Sub Button1_Click() ......

Posted On Monday, October 26, 2009 7:02 PM

Upload file using C# as Client and PHP as Server
I was fed up with uploading the attachments using FTP as it was too slow (and vulnerable too), maintaining credentials to connect to server, managing permissions to specific folder etc. and all that nasty stuff. Clients have also complained on this. After head-scratching and wall banging efforts, I planned to search for an alternative for FTP to upload the files. Found this way... Its pretty cool and uploading files much faster compared to FTP approach. Just wanted to share it with you, hoping that ......

Posted On Monday, October 26, 2009 1:10 PM

Uploading and Downloading files to a website using C#
The System.Net namespace contain most of the .NET base class that deal with networking from perspective of the client. The System.Net namespace is generally concerned with Higher-level operations for example download and upload files and making requests using the HTTP and other protocols. The WebClient Class If you want to do is carry out a fairly simple operation such as requesting a file from a particular URL, Then you will probably find easiest .NET class to use is System.Net.WebClient. This class ......

Posted On Monday, October 26, 2009 12:33 PM

Copyright © Pranav | Powered by: