Home
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Visual Studio .NET
VS.NET General Discussion
edit/view form(help)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Paszt" data-source="post: 991" data-attributes="member: 56"><p>Here's a procedure which may help with the ReadOnly/Editable situation:</p><p>[code]Private Sub MakeEditable(ByVal bEditable As Boolean)</p><p> Dim ctrl As Control</p><p> For Each ctrl In Me.Controls</p><p> If Not ctrl.GetType Is GetType(Button) Then _</p><p> ctrl.Enabled = bEditable</p><p> Next</p><p>End Sub[/code]</p><p>Of course you can save the edited data! The method would depend on how you are getting and displaying the data from the dataBase.</p></blockquote><p></p>
[QUOTE="Paszt, post: 991, member: 56"] Here's a procedure which may help with the ReadOnly/Editable situation: [code]Private Sub MakeEditable(ByVal bEditable As Boolean) Dim ctrl As Control For Each ctrl In Me.Controls If Not ctrl.GetType Is GetType(Button) Then _ ctrl.Enabled = bEditable Next End Sub[/code] Of course you can save the edited data! The method would depend on how you are getting and displaying the data from the dataBase. [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
Visual Studio .NET
VS.NET General Discussion
edit/view form(help)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom