473,411 Members | 2,085 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,411 software developers and data experts.

Make a window inactive when another window is being displayed

Hello. I'm using Visual Basic .NET.

How can I make a window inactive when another windows is being displayed?

For instance, if the user clicks a menu item, a button or whatever, a new
window is displayed and the user cannot do anything with the original window
until he or she closes the newly displayed window.

Take Visual Studio as an example, if you open the Option window from Tools >
Options, then you can't work in the main Visual Studio environment until you
close Option.

Thanks.

----
Xero

http://www.chezjeff.net
My personal web portal
Nov 21 '05 #1
3 2501
Jeff,

Show your second form as dialogform

\\\
dim frm as new form2
frm.text = "name of form"
frm.showdialog
dim myval as string = frm.textbox1
frm.dispose
///

I hope this helps?

Cor

"Xero" <jeff_@_chezjeff_._net(remove_underscores_and_this )>
Hello. I'm using Visual Basic .NET.

How can I make a window inactive when another windows is being displayed?

For instance, if the user clicks a menu item, a button or whatever, a new
window is displayed and the user cannot do anything with the original
window
until he or she closes the newly displayed window.

Take Visual Studio as an example, if you open the Option window from Tools
>

Options, then you can't work in the main Visual Studio environment until
you
close Option.

Thanks.

----
Xero

http://www.chezjeff.net
My personal web portal

Nov 21 '05 #2
"Xero" <jeff_@_chezjeff_._net(remove_underscores_and_this )> schrieb:
How can I make a window inactive when another windows is being displayed?


Show your form modally:

\\\
Dim f As New OptionsForm()
f.ShowDialog() ' Returns when the form is closed.
f.Dispose()
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #3
I see.
Thanks very much!

Xero
"Cor Ligthert" wrote:
Jeff,

Show your second form as dialogform

\\\
dim frm as new form2
frm.text = "name of form"
frm.showdialog
dim myval as string = frm.textbox1
frm.dispose
///

I hope this helps?

Cor

"Xero" <jeff_@_chezjeff_._net(remove_underscores_and_this )>
Hello. I'm using Visual Basic .NET.

How can I make a window inactive when another windows is being displayed?

For instance, if the user clicks a menu item, a button or whatever, a new
window is displayed and the user cannot do anything with the original
window
until he or she closes the newly displayed window.

Take Visual Studio as an example, if you open the Option window from Tools
>

Options, then you can't work in the main Visual Studio environment until
you
close Option.

Thanks.

----
Xero

http://www.chezjeff.net
My personal web portal


Nov 21 '05 #4

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

Similar topics

6
by: Paul | last post by:
Hi, I've been trying for some time now to get the height (the 'scrollable' height) of the current page (Thanks to Martin Honnen for help so far). I feel as though I am almost there, but am having...
2
by: gokul | last post by:
Hi all, Iam using mozilla firebird. I have three popups displayed at one point of time...if I close one the other two goes hidden....could you please suggest me the reason for this behaviour and...
2
by: Christine | last post by:
I have a small window open that should close after 60 secs...works fine if the user is not playing with the window. The problem occurs when the user is moving the window around when the 60 secs is...
4
by: Davey | last post by:
I have a website which has a popup window (this only opens when the user chooses to open it). In the popup window I have a <select> control which lists a selection of "classes". Each class has a...
4
by: Susan Bricker | last post by:
I would like to test to see which page of a tabl control is being displayed and then after saving the record display the other page. How can I do that? More info: Tabcontrol Name = TabCtl53...
2
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent...
3
by: danielw86 | last post by:
Hello everyone, Just a quick question - I would like to limit certain results being displayed in my database. Ive got a field called exp_date in my sql database - some of the fields have a date...
2
by: abhinavrai | last post by:
sir, sir the hidden folders in the system sre not being displayed. earlier the folder option was also not coming but i read your reply to one of the same problem so i corrected it but now the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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,...
0
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...

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.