Hi;
I'm already using Visual Basic 6.0. Furthermore i would like to learn C# but it's look like hard for now. Where should I start or or could you give me samples.
For example I would like to add two textbox value by using function in C#.
In Visual basic
I'm using global function in Bas module like below
and in Form1Code:Public Result As Double Public Function Add(Val1 As Double, Val2 As Double) Result = Val1 + Val2 End Function
Thank youCode:Private Sub Command1_Click() Dim a As Double Dim b As Double a = Val(Text1) b = Val(Text2) Call Add(a, b) MsgBox Result End Sub
Levent




Reply With Quote