Quantcast
Channel: API Programming »» .NET « API Programming
Browsing latest articles
Browse All 10 View Live

Using the System.Environment Class in PowerShell

The Environment class has a huge array of information and accessing this information is very simple, I’m going to try and give a whole bunch of one line examples of how to do this using PowerShell. To...

View Article


How to Ping a Computer using PowerShell

Pinging a computer is really simple, and of course since this is PowerShell we don’t want to use something as primitive as ping.exe, we want to use .NET and take advantage of all the method calls and...

View Article


Image may be NSFW.
Clik here to view.

How to Create Message Box Pop Ups in VB.NET

Creating different types of messages boxes in Visual Basic is a simple one line statement. I’m going to run through how to create several different types of message boxes in this tutorial, including OK...

View Article

How to Shutdown, Restart, Log off your computer with VB.NET or C#

This is extremely easy using VB.NET or C# (pronounced C sharp) and the built in windows EXE file shutdown.exe. To shutdown, restart, or log off your computer is as simple as entering 1 line into your...

View Article

Image may be NSFW.
Clik here to view.

Make Your Computer Talk with VB.NET Application (and Source Code)

I was playing around with COM objects in Windows and discovered that I could access the SAPI.SpVoice interface and make Microsoft Windows talk to me. Well needless to say I had to rush and develop and...

View Article


Image may be NSFW.
Clik here to view.

How to Cut/Copy/Paste into the Clipboard using VB.NET

In this example, I’ll show you how to cut, copy, paste and clear text in the clipboard. Cutting and copying text is really straight forward, pasting text requires just a little bit of checking. For...

View Article

How to Center A Form in VB.NET and C#

I’ve often found it necessary to center a form on my screen using the pure code, but it’s not as easy as Me.center in Visual Basic or this.center() in C# so I wrote some code to work around that. Using...

View Article

Image may be NSFW.
Clik here to view.

How to Use the Progress Bar in VB.NET and C#

The progress bar is one of those universal objects that everyone recognizes, it’s useful when doing a large or long task. For example, if your updating/deleting/copying a bunch of files you can update...

View Article


Image may be NSFW.
Clik here to view.

How To Use the OpenFileDialog Box in VB.NET

Using the OpenFileDialog box wasn’t as intuitive as I initially expected, I was thinking I could just drag it out onto my form as a button and place it right where I wanted to. But when I clicked on it...

View Article


Download File with a PowerShell One-Liner

I was recently trying to automate some scripts on a linux box and I wanted to know if it was as simple to download a file in PowerShell as it is in linux: wget http://example.com/file.jpg Well as it...

View Article
Browsing latest articles
Browse All 10 View Live