Results 1 to 4 of 4

Thread: Floating Sub Form

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Wellington, NZ
    Posts
    267

    Floating Sub Form

    Hi

    Is this possible ?

    I have built a treeview structure. I want my user to click on an item they see in this structure, and show more details about that item. Say, the date purchased, their location, etc. I could just put these details in a text field that is set with relevant info when they click. But can I get some sort of info box that pops up, at some place above the parent form. Doesn't matter where. They'd need to be able to move it out of the way if neceary, or close it.

    Thanks
    Robert

  2. #2
    Frenzied Member Inuyasha1782's Avatar
    Join Date
    May 2005
    Location
    California, USA
    Posts
    1,035

    Re: Floating Sub Form

    If your looking for a personalized small messaegbox, you can find many of them on PS code. I use the little bubble one that fades in and out displaying information over an item. Here would be an example one from ps code:

    http://www.pscode.com/vb/scripts/Sho...31434&lngWId=1
    Age - 15 ::: Level - Advanced
    If you find my post useful please ::Rate It::


  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Floating Sub Form

    Quote Originally Posted by RobertLees
    Hi

    Is this possible ?

    I have built a treeview structure. I want my user to click on an item they see in this structure, and show more details about that item. Say, the date purchased, their location, etc. I could just put these details in a text field that is set with relevant info when they click. But can I get some sort of info box that pops up, at some place above the parent form. Doesn't matter where. They'd need to be able to move it out of the way if neceary, or close it.

    Thanks
    Robert
    I would suggest creating a new form that has all of the fields that you want to display.

    When a item is clicked on your treeview, code the call to the database that will return all of the information that you want to show, load the new form, and display that information in the appropriate places.

  4. #4
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Floating Sub Form

    Call the other form like this:
    VB Code:
    1. Form1.Show , Me

    It will always be on the top of the caller form but unlike a modal form, both the forms are enabled.

    Pradeep
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

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