StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
Converting Properties from VB to C#
Converting Properties from VB to C#
Post Reply
Like
0
Converting Properties from VB to C#
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Bill Cunnien
Bill Cunnien
posted 14 Years Ago
ANSWER
HOT
Topic Details
Share Topic
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.
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Converting Properties from VB to C#
Bill Cunnien
-
14 Years Ago
By the way, the error that I am getting is "The modifier 'public' is...
Bill Cunnien
-
14 Years Ago
To get past the error, I simply removed the "public" keyword.
...
Bill Cunnien
-
14 Years Ago
In C#, the how interface thing works is a bit different. I still have...
Greg McGuffey
-
14 Years Ago
Thanks, Greg...that does help explain what is going on with the...
Bill Cunnien
-
14 Years Ago
Oh, the toolbox thing, try adding this attribute to the class:
...
Greg McGuffey
-
14 Years Ago
The attribute exists...and a rebuild has occurred. The item is now in...
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
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search