473,472 Members | 2,241 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Fake Dialogs using ShowDialog(OwnerForm Form)

Hello,

We currently have an application that has a lot of screens that allow users
to add new data to the system. These forms are currently accessed via a
browse form, such as the employee's browse form. The user would access the
Add Form by clicking on the Add Employee Button.

Unfortunatly when you use MyForm.ShowDialog(this), the entire application is
locked out, which is the default and accepted behaviour of Windows Forms.

However, i need the ability to only disable access to the browse form that
has called the Add screen and ensure the rest of the application stays
responsive.

I have tried quite a few ways of doing this, but none of them are effective
enough. Does anyone know of a good way to do this.

Regards
Scott Blood
Senior Developer
www.betfred.com
Oct 26 '06 #1
5 2346
Hi Scott,

I guess you tried using Form.Show() instead and disabling the owner
form?

Thi
http://thith.blogspot.com

Oct 26 '06 #2
Use Show instead of ShowDialog.

--
HTH,

Kevin Spencer
Microsoft MVP
Short Order Coder
http://unclechutney.blogspot.com

The devil is in the yada yada yada
"scott blood" <sc*********@hotmail.comwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
Hello,

We currently have an application that has a lot of screens that allow
users to add new data to the system. These forms are currently accessed
via a browse form, such as the employee's browse form. The user would
access the Add Form by clicking on the Add Employee Button.

Unfortunatly when you use MyForm.ShowDialog(this), the entire application
is locked out, which is the default and accepted behaviour of Windows
Forms.

However, i need the ability to only disable access to the browse form that
has called the Add screen and ensure the rest of the application stays
responsive.

I have tried quite a few ways of doing this, but none of them are
effective enough. Does anyone know of a good way to do this.

Regards
Scott Blood
Senior Developer
www.betfred.com

Oct 26 '06 #3
Guys.

Thanks for your repsonse it is much appreciated, however this is not a
suitable method for us because we need the form to act as though it is modal
only affecting the form that initiated it.

Simply using show and setting enabled to false of the calling form does not
produce the desired effect.
"Kevin Spencer" <sp**@uce.govwrote in message
news:%2******************@TK2MSFTNGP04.phx.gbl...
Use Show instead of ShowDialog.

--
HTH,

Kevin Spencer
Microsoft MVP
Short Order Coder
http://unclechutney.blogspot.com

The devil is in the yada yada yada
"scott blood" <sc*********@hotmail.comwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
>Hello,

We currently have an application that has a lot of screens that allow
users to add new data to the system. These forms are currently accessed
via a browse form, such as the employee's browse form. The user would
access the Add Form by clicking on the Add Employee Button.

Unfortunatly when you use MyForm.ShowDialog(this), the entire application
is locked out, which is the default and accepted behaviour of Windows
Forms.

However, i need the ability to only disable access to the browse form
that has called the Add screen and ensure the rest of the application
stays responsive.

I have tried quite a few ways of doing this, but none of them are
effective enough. Does anyone know of a good way to do this.

Regards
Scott Blood
Senior Developer
www.betfred.com


Oct 26 '06 #4
Scott,

could you explain the difference between "we need the form to act as though
it is modal only affecting the form that initiated it" and "using show and
setting enabled to false of the calling form does not produce the desired
effect"?
--
Regards, Peter
Oct 26 '06 #5
Scott,
Thanks for your repsonse it is much appreciated, however this is not a
suitable method for us because we need the form to act as though it is modal
only affecting the form that initiated it.

Simply using show and setting enabled to false of the calling form does not
produce the desired effect.
Could you not fire up the new form in or from a new thread? Just
thinking on my feet here. I guess you could wrap it up into a function
or something.

Richard
Oct 30 '06 #6

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

Similar topics

5
by: M Wells | last post by:
Hi All, Is it possible to use form criteria in a query / view in an Access 2003 ADP with SQL Server as the backend? ie something like: select * from mytable where recid = forms!! I'm...
2
by: Ken | last post by:
Hello, I have a small VB.NET form that I open with a showdialog. When it closes, the entire mdi form flashes. This app is developed with VS 2003 and runs on Windows 2000. Any suggestions...
2
by: Wardeaux | last post by:
All, I have login form used with ShowDialog(). I have the AcceptButton property set so that the "Enter" key is mapped. I also need to keep the dialog open when the UserID and PWD are invalid so...
2
by: **Developer** | last post by:
I have a little more info about this problem I can't seem to solve! I know it'll take a minute to study the lising but if you like to sove puzzles there is one there. I have a Form (FV&C)...
4
by: Sofia | last post by:
Hi there is text field and a button.... now i have to send this textfield value to another page without using form tag......i have to use javescript... is there anyone who can help me regarding...
0
by: 22GuiCowboy | last post by:
c# .net if you have form1 and create a new form (form2) and execute a ShowDialog(); on Form2. The Z-Order on Form is changed to place the form at the bottom root windows (say the desktop) I...
3
by: 1965 | last post by:
Hi, All. I want to pass a value to asp file on server side but NOT using form post/get. For example: <input id="regionbox" type="hidden" name="region" value="abc"> function dothing ......
1
by: norazirah | last post by:
Currently i use three different version of Oracle developer for system development (Oracle 6i, Oracle 10g and old version, Oracle 4.5). There is no problem using Form Designer (Developer 2000) until...
5
oranoos3000
by: oranoos3000 | last post by:
hi I want to send value of textbox without using form tag and submit button to another page? Is it possible with php ? How do I get this thing work? thanks alot
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
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...
1
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
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.