Solved

Loading form on splitter control

Posted on 1998-08-18
1
404 Views
Last Modified: 2008-02-07
We basically want to use treeview and listview controls. We want treeview on
the left side of the vbusplitter control and two listviews on the right side of
the splitter control. But ur control is not working this way. we are able to place
only two control instead of three controls which ur control is meant to support.
       _______________
         |      | List       |
      |      | View1      |      
      | Tree      |_______|      
      | View      | List      |
      |      | View2      |
      |_______|_______|
This is what we want to achieve.

      We also have one problem if u can help us then we will be highly obliged.
 We are placing this control on MDI form. The problem is, we want to load a form
in the listview1 at runtime. But form is loaded but not on listview1. It is loaded
outside the splitter control area.
      Hope u help us in solving these above mentioned problems.

Thank You,
0
Comment
Question by:Lata071698
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

by:
cymbolic earned 10 total points
ID: 1429490
Look, I have joined forms with treeviews and listviews in the past.  However, although the "form" portion looked like a form, it was actually only a picturebox for a background with child controls on it.  I could then easily overlay listviews with the form by sizing the form exactly the same as the listview, and hiding the listview, and the opposite to bring back the listview.  That way you get a pop/pop feel, and all the logic exercises itself inside of the same form, plus it's more under your control.  In fact, this app was so linked between treeview/listview and form that when you went up and down the treeview items, you saw all related items in the listview, or if the form was open, you saw the related form as the treeview item was hilighted.  This was done by dynamically creating different "forms" for each treeview item via unloading and loading controls.  There really was only one form, with base controls of each type postitoned on the picturebox, as control arrays, with control(0) for each type.  Then through load methods, and .move methods, each type of control was replicated, located, sized, and loaded with appropriate data before the picturebox was displayed.  Even the picturebox was resized if a virtual form was created (one too large to fit in the viewing window -had scroll bars)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB6 Compile Compatibility Issue 4 121
Copy a row 12 69
How to set the sa password in a vb6 code for sql connection 9 62
MS SQL Update query with connected table data 3 61
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question