473,385 Members | 1,620 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,385 software developers and data experts.

Maintaining Parent Form Integrity

What am I missing form this method that will prevent access to the parent
form when the frmB is active? If you run this method, you can still access
the parent form and its functionality.

Sub WhatEver
Dim frmB As New Form '-- The New Form to display
frmB.TopMost = True
frmB.Owner = CType(Parent, Form)
frmB.Show()
End Sub

As always - Thanks for replys...
Joseph
Oct 11 '05 #1
2 1245
CT
Joseph,

You can either hide the parent form, or use the ShowDialog method instead of
Show to make frmB modal.

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Joseph" <Jo****@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
What am I missing form this method that will prevent access to the parent
form when the frmB is active? If you run this method, you can still
access
the parent form and its functionality.

Sub WhatEver
Dim frmB As New Form '-- The New Form to display
frmB.TopMost = True
frmB.Owner = CType(Parent, Form)
frmB.Show()
End Sub

As always - Thanks for replys...
Joseph

Oct 11 '05 #2
CT,

Kick Butt! Thanks for the information...

Joseph

"CT" wrote:
Joseph,

You can either hide the parent form, or use the ShowDialog method instead of
Show to make frmB modal.

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Joseph" <Jo****@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
What am I missing form this method that will prevent access to the parent
form when the frmB is active? If you run this method, you can still
access
the parent form and its functionality.

Sub WhatEver
Dim frmB As New Form '-- The New Form to display
frmB.TopMost = True
frmB.Owner = CType(Parent, Form)
frmB.Show()
End Sub

As always - Thanks for replys...
Joseph


Oct 11 '05 #3

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

Similar topics

25
by: Steve Jorgensen | last post by:
Yup, Steve's full of tips, but hey, it makes him feel important, right? Ok, here goes. I've been trying to improve encapsulation by putting code in the same object as the stuff it affects, so I...
2
by: Sean | last post by:
Greetings all, I am attempting to make a form that will filter through several tables that (I believe) have refretial integrity. I am pulling data from several tables into the form and i would...
13
by: Stuart McGraw | last post by:
I haven't been able to figure this out and would appreciate some help... I have two tables, both with autonumber primary keys, and linked in a conventional master-child relationship. I've...
2
by: Joseph | last post by:
What am I missing form this method that will prevent access to the parent form when the frmB is active? If you run this method, you can still access the parent form and its functionality. Sub...
3
by: ~john | last post by:
I'm working on a multi-user system that at times may result in 2 users accessing the same screen. These screens allow the users to both view and update data. The problem comes when you have user A...
3
by: G .Net | last post by:
Hi Everybody I was wondering if anybody could help me with something that has been bothering me for some time. Basically, it is a problem I encountered some time ago with DataSets. I found a...
11
by: nbomike | last post by:
Hello. Can someone tell me a good way to reference a parent table from only some of the records of the child table? I know that this is breaking referential integrity, but I'm not sure how to go...
2
by: Brent | last post by:
I have a child page opened with a simple open() statement. I'd like to be able to refresh the parent page and keep the current scroll position. (If I do an "F5" refresh on IE, for instance, the...
0
by: Ty | last post by:
Question: If the Division number changes in 1 table, it is suppose to automatically change in the other tables. If it don't change, what is the problem? Response: My professors response to my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.