473,412 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Forms question

I have a program written in VB6 that has a main form with a menu bar.
Depending on the action of the user other forms can be loaded on top of the
main form ( for user input and info, etc.) leaving the menu bar visible. How
can I make the loaded forms follow the main form when the main form is moved
around the desktop area?
I appreciate your time.

--
rvd
Jul 17 '05 #1
4 2508
One of two things if my memory serves me rightly. I'm 75 and almost
higher so mine isn't always the best. When you want to not see the
othere forms simply have them go invisable and only appear when you
need them. The second is to use a File type form that allows as many
files as you desire. I use this with my Addressbook program that I
couldn't be without. You can move it anywhere you wish and all goes
along. I use six pages.

Verne

On Tue, 16 Nov 2004 12:50:27 GMT, "rv daffin" <di**@daffin.net> wrote:
I have a program written in VB6 that has a main form with a menu bar.
Depending on the action of the user other forms can be loaded on top of the
main form ( for user input and info, etc.) leaving the menu bar visible. How
can I make the loaded forms follow the main form when the main form is moved
around the desktop area?
I appreciate your time.


Jul 17 '05 #2
> I have a program written in VB6 that has a main form with a menu bar.
Depending on the action of the user other forms can be loaded on top of the main form ( for user input and info, etc.) leaving the menu bar visible. How can I make the loaded forms follow the main form when the main form is moved around the desktop area?


It almost sounds like your are describing an MDI type interface (a
housing form with menubar that contains the actual forms to be worked
on... think Microsoft Word). If so, add an MDI form and make your
existing forms children of the MDI form by setting their MDIChild
properties to True at design time.

CAUTION... just in case you find out you don't really want to do it this
way, make back up copies of ALL your existing project files so you can
easily restore yourself to a known setup.

Rick - MVP

Jul 17 '05 #3
On Tue, 16 Nov 2004 12:50:27 GMT, "rv daffin" <di**@daffin.net> wrote:
I have a program written in VB6 that has a main form with a menu bar.
Depending on the action of the user other forms can be loaded on top of the
main form ( for user input and info, etc.) leaving the menu bar visible. How
can I make the loaded forms follow the main form when the main form is moved
around the desktop area?
I appreciate your time.


Another easy to use alternative is to put several frames on your form, each of
which covers all but the bar at top. Each frame carries its own set of controls
which are either shown or hidden with the frame which which contains them.

If you don't want the frame label to show (I usually don't) just delete the
default text.

Val Mehling
valjm16@DELETE_THISearthlink.net

XRL (Extreme Racing League) Info
http://extremeracingleague.com/
Jul 17 '05 #4

"rv daffin" <di**@daffin.net> wrote in message
news:nI*******************@newsread1.news.pas.eart hlink.net...
I have a program written in VB6 that has a main form with a menu bar.
Depending on the action of the user other forms can be loaded on top of the main form ( for user input and info, etc.) leaving the menu bar visible. How can I make the loaded forms follow the main form when the main form is moved around the desktop area?

in the form2 activate event:

me.left = frmMain.left
me.top = frmMain.top


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: KK | last post by:
Windows Forms Inheritance, Incomplete? I was playing around with Windows Forms and found out this Forms Inheritance feature. The moment I saw that, I felt this can be used effectively if the...
2
by: KK | last post by:
** Posting it here cause after couple of days no body responded.** I was playing around with Windows Forms and found out this Forms Inheritance feature. The moment I saw that, I felt this can...
6
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
4
by: Lumpierbritches | last post by:
Thank you once again for any and all assistance. I'm building an application that's getting quite bulky due to the number of forms, macros and procedures. I was wondering if there's a way to use 1...
1
by: Sunil Sabir | last post by:
Dear All, I have 4 web ASP.net Forms. I use a image control to move between these forms.The problem I am facing is that I cannot preserve the state of the form when moving between different...
18
by: Rippo | last post by:
Hi I am using role base forms authentication in asp.net and have come across a problem that I would like advice on. On a successful login a session variable is set to identify a user. This is...
15
by: Alex | last post by:
Does anybody know why VB.NET would omit the Forms collection available in previous versions versions of VB? I imagine that there must be a reason why they decided to do away with it, but I can't...
8
by: =?Utf-8?B?TFc=?= | last post by:
Hello! I am just learning about forms authentication so please excuse this basic question. I am using .NET 1.1 and C#. I have created my web.config file and my login.aspx and the associated cs...
1
by: Troy Bull | last post by:
Greetings I am trying to use a singleton to hold a group of forms. I have a MDIMaster form. I have a class called Forms; Forms is a singleton. I want to do something like the following. In...
21
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.