Results 1 to 23 of 23

Thread: [RESOLVED] Problem with disabling buttons in other forms

Hybrid View

  1. #1
    PowerPoster SJWhiteley's Avatar
    Join Date
    Feb 2009
    Location
    South of the Mason-Dixon Line
    Posts
    2,256

    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).

  2. #2

    Thread Starter
    Addicted Member Pantero's Avatar
    Join Date
    Jan 2009
    Posts
    169

    Re: Problem with disabling buttons in other forms

    Quote 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
  •  



Click Here to Expand Forum to Full Width