C
Chua Wen Ching
Hi there.
I had 3 questions to ask.
1)
Public Event ButtonClicked(MessageBoxNumber As Integer,
OKButton As Boolean, CancelButton As Boolean, ExitButton
As Boolean)
--> how to code this in c#? If not mistaken, if they used
the keyword WithEvent i will use delegates and events. But
now is the keyword event! Any sample codes base on top?
2)
Public Property Let MessageBoxPrompt(MessageBoxNumber As
Integer, ByVal vData As String)
MBox(MessageBoxNumber).Prompt = vData
End Property
MBox is a type of MessageBox
--> oh okay, i know c# got get and set, but there is no
let. And can i assign property with arguments like
MessageBoxNumber as integer, etc...
3) in vb6, you had in operator '\' for division integer,
how can i achieve this in c#?
Any help, please?
Thanks.
Regards,
Chua Wen Ching![Stick Out Tongue :p :p](/styles/default/custom/smilies/tongue.gif)
I had 3 questions to ask.
1)
Public Event ButtonClicked(MessageBoxNumber As Integer,
OKButton As Boolean, CancelButton As Boolean, ExitButton
As Boolean)
--> how to code this in c#? If not mistaken, if they used
the keyword WithEvent i will use delegates and events. But
now is the keyword event! Any sample codes base on top?
2)
Public Property Let MessageBoxPrompt(MessageBoxNumber As
Integer, ByVal vData As String)
MBox(MessageBoxNumber).Prompt = vData
End Property
MBox is a type of MessageBox
--> oh okay, i know c# got get and set, but there is no
let. And can i assign property with arguments like
MessageBoxNumber as integer, etc...
3) in vb6, you had in operator '\' for division integer,
how can i achieve this in c#?
Any help, please?
Thanks.
Regards,
Chua Wen Ching
![Stick Out Tongue :p :p](/styles/default/custom/smilies/tongue.gif)