Link to home
Start Free TrialLog in
Avatar of Shane Russell
Shane RussellFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Make Another form follow the main form like in winamp & 3 D Pie Charts

I would like to know how to make a secondary form follow the first main form in visual basic like winamp does when you move it around ? I also want to know where can I get a 3D Pie chart component or how to make a one?

Any help is much appreciated!
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Avatar of cool12399
cool12399

For a 3D PieChart Component (although not specifically VB, but you may be able to use in your project, believe it is Java based):
http://www.wyka-warzecha.com/website/products/123piecharts/index.htm

For a secondary form following a first one, not exactly sure what you mean (don't use
winamp right now). But assuming basically you'd have to capture a move event, and
simply change the form.left & .top properties when the primary one is used. (May need
to use subclassing for this).
Ah, p.s., re: the form moving, this might help (you'll have to do a little coding
yourself, but this has the API calls)

http://www.vb-helper.com/howto_move_form_with_arrows.html
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
For the Pie you can do: Right click on the ToolBox and select "Components..." then select the tab "insertable Objects" and select the "....Microsoft Graph" (ussuly at the end of the list) and "OK" - add the "Chart" component to your form and then on the menu (above) you can select a 3D Pie... (like MsOffice Chart/Pie - very easy to use.....)
maybe for the movement, make a timer, keep the old position and compare it to the new position(left and top)
if it is different, oldposition = new position and form2's position = form1's position+offset
Avatar of Shane Russell

ASKER

I have tried the method of using the 3D pie chart that 2Angel suggested and that does not work for me because I do not know how to update the values for the pie chart like I did using the MS chart control.

Basically I have made a utility in visual basic that attains disk information, like serial number, free space, used space, etc and I need to be able to update the values for the pie chart to represent the information in real time such as the free space , etc.

If someone could help me with that then I will split the points.

Thanks !
None of the suggestions made for a 3D pie chart worked for me so I just accepted the move form answer.