Results 1 to 5 of 5

Thread: toolstriptextbox size with form?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2010
    Posts
    106

    Unhappy toolstriptextbox size with form?

    well i want to make it so my toolstriptextbox will smoothly size with the form as i resize it. I tried using a timer and just say txtbox1.width = me.size.width - 100 or whatever space for the buttons and handling it for when it reaches negative numbers (with autosize off on the textbox) but its not at all smooth.

    I want to be smooth like with Google Chrome. or Firefox...or IE. and that stuff.

    Thanks.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: toolstriptextbox size with form?

    You don't do this using code, but simply by setting the appropriate properties. Follow the CodeBank link in my signature and check out my Tabbed Web Browser thread. The address bar contains a combo box that behaves the way you want.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2010
    Posts
    106

    Re: toolstriptextbox size with form?

    yes. but what is the appropreate property-

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: toolstriptextbox size with form?

    Actually, now that I think about it, you can't do it with items on a ToolStrip using just properties and, as such, I didn't in my Tabbed Web Browser. So, you do need code and that code can be found in that project of mine.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Feb 2010
    Posts
    106

    Re: toolstriptextbox size with form?

    but if you resize fast...the textbox disapears....

Tags for this Thread

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