Results 1 to 2 of 2

Thread: is there a proper CLOSE method for usercontrols?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    is there a proper CLOSE method for usercontrols?

    I'm just calling the dispose method. I guess I could also do a ParentForm.Controls.Remove to remove the usercontrol from the form...
    is it bad to call dispose? which one should I use when I want to remove a usercontrol? (the code is called from the usercontrol itself not from the form)
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    From what I have seen, if you call dispose on the usercontrol itself, it does not show up in the Parent's control collection. So I stuck with Me.Dispose.

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