|
-
Feb 10th, 2009, 04:49 PM
#1
Re: Problem with disabling buttons in other forms
As Pradeep and Bulldog have said, you create a new instance of the details form (G), you disable the button on this form, then do nothing with it - you don't show it or use it in any useful way.
Perhaps you mean to access the frmUserDetails directly and disable the delete button on that? (this is the form you've referenced in the btnLinkToUserDetails_Click event).
-
Feb 10th, 2009, 05:04 PM
#2
Thread Starter
Addicted Member
Re: Problem with disabling buttons in other forms
 Originally Posted by SJWhiteley
Perhaps you mean to access the frmUserDetails directly and disable the delete button on that? (this is the form you've referenced in the btnLinkToUserDetails_Click event).
Yes that's what i mean, shaggy hiker seems to be write, i couldn't describe my situation properly, and i finally realise that frmUserDetails is a completely different concept to concept G, you see i was under the impression that they were the same thing. Having said this i still can't see a way to achieve my goal, can someone please give me a code same that i can input in the Login button (in frmLoginScreen) which disables the Delete button (btnDelete) in the User Details form (frmUserDetails)
Thanks
EDIT>>>>> i Just saw shaggy's new post, will attempt it now
Last edited by Pantero; Feb 10th, 2009 at 05:07 PM.
Im using visual basic 2008 express edition so any posts that include coding or stuff PLEASE refer to vb 2008.
"A clever person solves problems, a wise person avoids them" 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|