Hi,
I have a few forms in my application. One of the forms is to confirm
some action done on the other form. I want to make sure that the user
clicks this form (by choosing 'yes' or 'no') before continuing to do
anything else. In other words, I want to keep the focus of the user on
this form till it is used.
Is that possible?
Thanks,
Avanti 3 1935
Instead of choosing myForm.Show, use myForm.ShowDial og().
They will not be able to do anything else until they
click on that form.
Robin S.
-----------------------
"avanti" <av****@gmail.c omwrote in message
news:11******** **************@ l53g2000cwa.goo glegroups.com.. .
Hi,
I have a few forms in my application. One of the forms is to confirm
some action done on the other form. I want to make sure that the user
clicks this form (by choosing 'yes' or 'no') before continuing to do
anything else. In other words, I want to keep the focus of the user on
this form till it is used.
Is that possible?
Thanks,
Avanti
Thanks. That helped.
However, now I show the form with showdialogue and when I call Close on
this form, the parent window closes as well.
Is there a workaround?
Thanks,
Avanti
RobinS wrote:
Instead of choosing myForm.Show, use myForm.ShowDial og().
They will not be able to do anything else until they
click on that form.
Robin S.
-----------------------
"avanti" <av****@gmail.c omwrote in message
news:11******** **************@ l53g2000cwa.goo glegroups.com.. .
Hi,
I have a few forms in my application. One of the forms is to confirm
some action done on the other form. I want to make sure that the user
clicks this form (by choosing 'yes' or 'no') before continuing to do
anything else. In other words, I want to keep the focus of the user on
this form till it is used.
Is that possible?
Thanks,
Avanti
Thanks. That helped.
However, now I show the form with showdialogue and when I call Close on
this form, the parent window closes as well.
Is there a workaround?
Thanks,
Avanti
RobinS wrote:
Instead of choosing myForm.Show, use myForm.ShowDial og().
They will not be able to do anything else until they
click on that form.
Robin S.
-----------------------
"avanti" <av****@gmail.c omwrote in message
news:11******** **************@ l53g2000cwa.goo glegroups.com.. .
Hi,
I have a few forms in my application. One of the forms is to confirm
some action done on the other form. I want to make sure that the user
clicks this form (by choosing 'yes' or 'no') before continuing to do
anything else. In other words, I want to keep the focus of the user on
this form till it is used.
Is that possible?
Thanks,
Avanti
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Melissa |
last post by:
1. Is there a way to programatically remove the focus from the form; ie, so
the focus is not on any control on the form?
2. Is there a way to programatically set the focus to the same place as is
done when the form opens; ie, the first control in the taborder which is
visible, which is enabled and whose tabstop property is True?
I have a form with forty two small subforms and I want to code the Enter
event of all the subform controls...
|
by: MLH |
last post by:
A form named frmVehicleEntryForm has a number of textbox
controls who's OnGotFocus property setting is an expression...
=Change2Green()
Change2Green() looks something like this...
Dim MyControl As Control
Set MyControl = Screen.ActiveControl
MyControl.BackColor = 65280
Tabbing from control-to-control is great. Each time I land on
|
by: Mystery Man |
last post by:
We have an MDI application that is not setting always setting focus to
the newly corrected MDI. It is creating the form and it is the topmost
but it does not have focus.
The code we are using to activate the MDI is something like the
following:
frmTest frm = new frmTest();
frm.MdiParent = this;
frm.Show();
|
by: Jason |
last post by:
I have created a c-sharp app that has keyup, keydown events tied to the
form. The form also has some other controls, buttons, labels and 1 custom
control that I made which inherits from user control.
My problem is ... When I first start the app all my keyboard events work
fine and by doing debugging I can see that my form has the focus. After I
click on a button or my custom control the focus is shifted to those
controls and the keyup,...
|
by: Rachel Suddeth |
last post by:
I have an form where the whole display is a tab control (well, that plus a
status bar.)
I want to set the focus to the first TextBox on the first TabPage when it
loads. I tried to put that into the FormLoad event, but the form still comes
up with the focus on the tab for the first tab page. Anyone know how to do
this?
Here is what I tried (but simplified)...
----------------
| |
by: Steve Yerkes |
last post by:
There seems to be way too much confusion over how to set focus on the a field using a field validator. I looked all over the web and found people trying to do this, but not getting anywhere. There are a couple of people selling components... but that is not really an option for me... So, I took the plunge and modified the "WebUIValidation.js" file to make it happen... After tracing through file, I figure it out. It was actually pretty...
|
by: Brian Henry |
last post by:
Hi,
I have a bunch of forms in a DLL that I call from my main application. The
one form is a login form, and I have the tab order set in the order I want
it (password box first, then ok button then cancel button then database
selection combo box then user name text box, then back to password text box)
now the password, user name and database entry's are in a group box frame.
the buttons (Ok and Cancel) are outside the group frame.
Now...
|
by: clickon |
last post by:
For testing purposes i have got a 2 step WizardControl. Eqach step contains
a text box, TextBox1 and TextBox2 respectively. If i put the following code
in the respective activate event handlers for the two steps,
TextBox1.Text ="foo";
and
TextBox2.Text = "bar";
|
by: Zytan |
last post by:
I want to set a control in a form to have the default focus.
This is not the accept button -- that's set to a button when is
'clicked' when you press ENTER. I want a textbox to have the focus
when the form is loaded. The textbox cannot be the first in the Tab
order, since it's not at the top of the window, and it seems silly to
start the tab order at it just to fix this issue. I cannot call
control.Focus() from Form1_Load() since...
|
by: Finn Stampe Mikkelsen |
last post by:
Hi
How can i set a focus to a textbox in my codebehind page??
I have this WebForm, that takes information from a user and 2 buttons on the
form. One that takes action on the entered information and one that resets
the form...
The second on, the reset button, i would like to set focus back to the first
textbox on the form. I already have an onload in my body, which sets the
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |