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

Activated Event in TopLevel=False forms

I'm having problem to get the Form.Activated (and .Deactivated for that matter) events to trigger for a Form with Form.TopLevel=False.

The reason why the form is TopLevel=False is because I need to put it in a tabcontrol.

Is there any other ways to detect when the Form is entered/activated?
Jan 20 '10 #1
3 1761
Plater
7,872 Expert 4TB
Detect when the tabpage it is in becomes active?
Thats what I do
Jan 20 '10 #2
Plater, thanks for the advice. Problem is that I have multiple Forms per tab. (The tabs are basically worksheets where the user can arrange a multitude of different forms per their preference).

Would be possible with some mouse tracking magic to figure out with Form that is active?
Jan 20 '10 #3
Plater
7,872 Expert 4TB
I was able to use the enter/leave events on the form to deal with that.
the "enter" even was fired whenever focus shifted from a different form to any control on the current form(that accepts focus, clicking on a label for instance, no good) and the elave event fired whenever i went to a control on a different form
Jan 20 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: b.dam | last post by:
I'm trying the following: function grid() { this._el = document.createElement("TABLE"); var self = this; document.addEventListener("onkeydown", function(event) {self.gridKeyDown(event);},...
1
by: Uchiha Jax | last post by:
Standard Framework documentation goes into great detail " A top-level form is a window that has no parent form, or whose parent form is the desktop window. Top-level windows are typically used as...
11
by: John | last post by:
Hi I have a main form which contains a panel which contains a child form. So the hierarchy is as follows; frmMain->MyPanel-> frmChild I have a toolbar on the main form. When a user presses a...
3
by: Tony Mastracchio | last post by:
Win app vs vb .net xp pro I have 2 forms forma and formb how do I show formb from a button on forma. kinda like response.redirect ("formb") equivilent for win app. Thanks
1
by: slaprade | last post by:
I have a MDI form with the following Public fm2 As New Form2() Public fm3 As New Form3() and Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
0
by: A_PK | last post by:
Hi I got the following environment.......Form1 and inside Form1, got Panel1.... I also got another new Form ...named Form2... Form1, Panel1 Form2 Inside Form1, I click a button to show Form2...
15
by: prabhdeep | last post by:
Hi, Can somebody explain, why in following code, i get "event not defined" error funcTest(sMenu) { doument.getElementById('id1').addEventListener('mousedown', function(){ click(sMenu,...
6
by: EJO | last post by:
TIA, There is already a form (Access 2k) with the selected record and a button with this code behind it: DoCmd.PrintOut acSelection Except that Access does not print the acSelection, it...
0
by: Tuomas | last post by:
import pygtk, gtk, gobject, ... class MyEntry(gtk.Entry): def __init__(self, is_OK): gtk.Entry.__init__(self) self.is_OK=is_OK self.add_events(gtk.gdk.FOCUS_CHANGE)...
2
by: AMDRIT | last post by:
Hello Everyone, I am having an issue where an event appears to be fired repeatedly where I only expect it to be fired once. See below for objects and behaviors. I have a control that contains...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.