Friday, October 23, 2009

Clear Text TextBox, VB & C# Application in Studio 2008

VB Code
===========================================
Sub ClearTextBox(ByVal f As Form)
For Each currentControl As Control In f.Controls
If TypeOf currentControl Is TextBox Then
Dim theTextBox As TextBox = DirectCast(currentControl, TextBox)
theTextBox.Text =""
End If
Next
End Sub
===========================================


C# Code
===========================================
public void ClearTextBox(Form f)
{
foreach (Control currentControl in f.Controls) {
if (currentControl is TextBox) {
TextBox theTextBox = (TextBox)currentControl;
theTextBox.Text="";
}
}
}
===========================================

Khmer Unicode rendering in Crystal report viewer of Studio 2008

Dear all,


Reference url solution for Khmer Unicode + Crystal report in studio 2008:


Do you have any solutions? Please tell me...

Thanks in advance!