Friday, January 15, 2010

Install IIS without Windows Installation CD

I just found out that we can actually install the Internet Information Services (IIS) without using the Windows Installation CD, as the required files are already located in our local computer.

1. Go to Control Panel.
2. Click on Add or Remove Programs.
3. Select Add/Remove Windows Components.
4. Select the Internet Information Services (IIS) option.

5. Click on Next button to start installing IIS.
6. You will be prompted to insert the Windows XP Professional CD-ROM.
7. Click on OK button to select the location for the file needed.
8. Browse to C:\WINDOWS\I386 and select the file ADMXPROX.DL_.

9. Click on Open button and then OK button. The installation process will then start.

Copy Text to Clipboard in VB6

I thought it will be quite difficult to copy text to Clipboard in VB6, after I found this out. There is actually a built-in class called Clipboard which lets us easily copy and paste text.

Copy Text to Clipboard:

Private Sub CopyTextToClipboard(ByVal TextToCopy As String)
Clipboard.Clear
Clipboard.SetText TextToCopy
End Sub

Paste Text from Clipboard:
Private Function PasteTextFromClipboard() As String
PasteTextFromClipboard = Clipboard.GetText
End Function

It's just that easy! ^_^