Solved

Loading form on splitter control

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

770 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