Converting Properties from VB to C#


Author
Message
Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
I'd like to get the following code (from InheritedUI DevEx.TextEdit control) to work in C#:





.Private _ControlSourceUpdateMode As ControlUpdateMode = ControlUpdateMode.OnPropertyChanged

.Public Property ControlSourceUpdateMode() As System.Windows.Forms.ControlUpdateMode Implements IBusinessBindable.ControlSourceUpdateMode

. Get

. Return Me._ControlSourceUpdateMode

. End Get

. Set(ByVal value As System.Windows.Forms.ControlUpdateMode)

. Me._ControlSourceUpdateMode = value

. End Set

.End Property





Here is what I have, so far:





.private ControlUpdateMode _ControlSourceUpdateMode = ControlUpdateMode.OnPropertyChanged;

.public ControlUpdateMode IBusinessBindable.ControlSourceUpdateMode

.{

. get { return _ControlSourceUpdateMode; }

. set { _ControlSourceUpdateMode = value; }

.}





I think that Implements keyword in VB is throwing me off. Can anyone help me with this?



Thanks!!

Bill



P.S. How do I get the copied code to follow the proper indenting after I paste it? I know there must be some trick...I just cannot remember it.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Bill Cunnien - 14 Years Ago
Bill Cunnien - 14 Years Ago
Bill Cunnien - 14 Years Ago
Greg McGuffey - 14 Years Ago
Bill Cunnien - 14 Years Ago
Greg McGuffey - 14 Years Ago
Bill Cunnien - 14 Years Ago
                         This is related to interface implementation. This property:
...
Greg McGuffey - 14 Years Ago
                             Ok. Makes sense. I think. Sort of. Kinda.

Here is my...
Bill Cunnien - 14 Years Ago
                                 The properties are accessible from code but not in the designer. What...
Bill Cunnien - 14 Years Ago
                                     Note sure. There usually isn't a trick. The designer will show all...
Greg McGuffey - 14 Years Ago
                                         Interesting. I'll go back to my original plan. Thanks for your...
Bill Cunnien - 14 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search