Results 1 to 6 of 6

Thread: tab pages

  1. #1

    Thread Starter
    Lively Member flog3941's Avatar
    Join Date
    Nov 2002
    Posts
    123

    tab pages

    Im tring to reset the controls on tabpage to there default settings, how do I do this?

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    umm what do you mean default setting?
    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!!

  3. #3

    Thread Starter
    Lively Member flog3941's Avatar
    Join Date
    Nov 2002
    Posts
    123
    i guess their original setting before the user changed them

  4. #4
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    hmm, I;m not sure if there is an easy way to do this. I think you have to write the code for resetting all the textboxes/controls



    edit: well you could do something like this to make it simpler... this is for textboxes, you can add other stuff yourself
    VB Code:
    1. Dim ctrl As Control
    2.         For Each ctrl In TabControl1.TabPages(0).Controls
    3.             If TypeOf ctrl Is TextBox Then
    4.                 ctrl.Text = ""
    5.             End If
    6.         Next
    Last edited by MrPolite; Nov 24th, 2002 at 08:29 PM.
    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!!

  5. #5

    Thread Starter
    Lively Member flog3941's Avatar
    Join Date
    Nov 2002
    Posts
    123
    OK Thanks
    I was hoping I wouldnt have to to that

  6. #6
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    aah sorry to post again, I edited the last post after you posted.... see if that helps
    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!!

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