Hi cicatrix,

sorry for not indicating the version of my Visual Studio..
btw,im using VS2003.i already test your updated code..and it works perfectly.

thank you very much for your effort.

i already rated this post as very helpful to me.