How do i do this?
I have this at the top of the class for my form, but it doesnt work.
Protected Overrides ReadOnly Property ShowWithoutActi vation() As Boolean
Get
Return True
End Get
End Property
Any ideas? At the moment i show the form and then call the Focus method on
the calling form, but its tacky. The called form is topmost, but taking that
off doesnt do anything - it still steals focus. 1 4252
I just checked and standard form.Show method does that properly.
I use code like this:
void SomeFormEventHa ndler(object sender, ...) {
...
SecondForm f = new SecondForm();
f.Show((IWin32W indow)this);
...
}
SecondForm is shown without focus - original form stays focused.
However I found that even if main form is TopMost = true, new forms can
cover it when shown.
Otherwise it works without additional tricks.
Can you post your code, which doesn't keep focus in calling form?
"Luke R" <do**@spam.mewr ote in message
news:0F******** *************** ***********@mic rosoft.com...
How do i do this?
I have this at the top of the class for my form, but it doesnt work.
Protected Overrides ReadOnly Property ShowWithoutActi vation() As
Boolean
Get
Return True
End Get
End Property
Any ideas? At the moment i show the form and then call the Focus method on
the calling form, but its tacky. The called form is topmost, but taking
that off doesnt do anything - it still steals focus.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: AnnMarie |
last post by:
My JavaScript Form Validation doesn't work at all in Netscape, but it
works fine in IE.
I made some of the suggested changes which enabled it to work in IE.
I couldn't make all the changes because then it didn't work in IE.
How can I enable this javascipt form validation to work in Netscape?
When I use netscape, none of the alert boxes appear. It submits the
form without validating anything.
|
by: Martin |
last post by:
I have the following function in the onchange event of several text
boxes. If the user enters an invalid number the alert displays. I
would like to return the user to that same field after he closes the
alert but setting the focus as I'm doing here doesn't do it (instead,
the focus goes to the next field).
Any suggestions as to hwo I can make this work?
Thanks.
|
by: S P Arif Sahari Wibowo |
last post by:
Hi!
Do you know how to put a form's Access-Visual-Basic-code that will force
the form to be inserted, while the user has not type anything in the form,
without changing focus, selection, etc.?
Here is the story.
I have this structure:
|
by: Krzysztof Karnicki |
last post by:
I would like develop Form on my Windows Application, that is going to notify
the user, just like Microsoft Office 2003 shows that there are new mail
coming. When I use System.Windows.Forms.Form and show it on a different then
main thread on my application, this new form became focused, but I want that
new form at the beginning acts like just stay-on-top notification… also in
this form I would like have controls, that could be focused,...
|
by: sandy_pt_in |
last post by:
Hi,
I have modal form which I am showing with some fading effect...
(it is like balloon that comes when you receive a mail in the outlook.)
But when I show this form, Owner form looses focus.
I searched across net & I came across ShowWindow API, It seems working
for me ... but the fading effect is not working.Can you please suggest
me some way so that I will be able to show my modal form using
ShowDialog and Still it is deactivated when...
| |
by: sheldonlg |
last post by:
I have a problem with not seeing the current focus while in a particular
screen in a my app. The focus does not show for a type=text or
textarea. I have tried to reproduce this problem in a test application,
but have not been successful is doing that.
The actual app has a screen which is displayed on a template and the
contents are the return from an AJAX call. In that content there is a
hidden block. Clicking on a button in the...
|
by: Joergen Bech |
last post by:
Hope someone has a solution or some suggestions for this.
This cannot be right?!?
Problem:
I have multiple non-modal forms open at the same time.
One or more of these forms have a ToolStrip, each of which has
one or more ToolStripButtons.
|
by: RLN |
last post by:
Re: Access 2003
I have a process that sends out emails to addresses (internally in our
company). Form1 has all the main functionality/data, etc on it. When
the user clicks "Send Emails" on Form1, I change my cursor to an
hourglass when it starts and change it back to normal when finished. I
would like to be able to show a 2nd form (Form2) very small and simple
that says, "Sending emails out....please wait".
This little pop up form...
|
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: 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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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.
| |