header
Google
  Last Updated : Apr 13, 2008 Visited since Apr 18, 2007: 20,071 times  
 

MFDatePicker

  I was looking to get xp style dtpicker for my project. I was surprised that no controls on internet could satisfy my need. My searches got me to 2 closest controls to what I want :
1. NeoCalendar, though this is a cool one (can change background etc), but it couldnt give me xp style that I want and anyway it's not free
2. OsenDtPicker, cool, almost all I want, but his dtpicker couldn't let user to write the date that they want (like true vb dtpicker could), user have to choose if they want to change the date.

So, I change OsenDTPicker to get user to be able to input the date manually (without having to choose calendar) and makes this control (which I would like to share with all of u).

Currently only blue xp style provided cause it's the only one I need as my project mainly used blue color.

Credit goes to Osen Kusnadi as I used his control (osenxpcombobox, osenxpspin, and monthpicker) as the start, and to gonchuki, as I used AButton (or chameleon button ?) for the xp style button. Get the source here.

Oh, and I have submitted this control on planetsourcecode too. U can see it here.

Transparent RichTextBox

  I was having a need to get a transparent textbox with automatic scrollbar. Visual basic textbox's scrollbar can't be set automatically. It can only either always display or not displayed at all. So, I'm having a look to RichTextBox which eventually very fit to what I want. So, here it is, a little example to make the RichTextBox transparent. Get the source here.

Terbilang (number in words Indonesian version) function

  This example would give words in Indonesian in bottom textbox for number filled in the top textbox. Get source here.

Permutation function

  This example about permutation for number 123. The output will be written in file test.txt. Get source here.

Encryption function

    Encryption is used to encrypt text, password or file so that it is safe from unauthorized people to get the information of it. There are many types of encryption. The most simple encryption is to add 1 to each character from string that wants to be encrypted. The more complicated encryption used lots of math calculation such as xor, multiply, divide, plus, minus, etc. There are even encryption method that can only encrypt but could not decrypt what is already encrypted (this is call one way encryption). And there are encryption method that always produces results of the same length. This sample show samples of some method of encryption. Get source here.

Treeview function

  An example on how to generate treeview from text file case. Get source here

Trouble shooting

  A Microsoft Visual Basic (VB) application uses the Crystal ActiveX (OCX) control as the reporting development tool.

While running the VB Package and Deployment Wizard, after you click 'Finish' in the Package section of the wizard, the following error appears:

"Unexpected error number 80010108 has occurred: Automation Error. The object invoked has disconnected from its clients."

An application error then appears causing VB to close.

Why does this error appear, and how can it be resolved?

Solution

This error occurs due to a problem in the Crystal control dependency file - Crystl32.dep.

This is a known issue and has been tracked. The Track ID is 53800.

To resolve this error:

1. Open Crystl32.dep in Notepad or a similar text editor and modify the section:

[CRPE32.DLL]
Dest=$(WinSysPath)
Uses1=CRPE32.DLL
Uses2=

So that it reads:

;[CRPE32.DLL]
;Dest=$(WinSysPath)
;Uses1=Crpe32.dll
;Uses2=

2. Ensure that the Crystl32.dep file is in the \WinNT\System32 folder.