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
Prev
1
2
Jump To Page
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 15 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 785,
Visits: 3.6K
By the way, the error that I am getting is "The modifier 'public' is not valid for this item."
Reply
Like
0
Bill Cunnien
Bill Cunnien
posted 15 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
Post Reply
Like
0
Prev
1
2
Jump To Page
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search