Solved

Loading form on splitter control

Posted on 1998-08-18
1
402 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
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

839 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