Geeks With Blogs
Pranav`s TechNiche technical thoughts of a coffee addicted developer October 2009 Entries
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: GeeksWithBlogs.net | Join free