Solved

Loading form on splitter control

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now