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

Control events lost after pasting onto tabcontrol

After adding a TabControl to an Access 2000 form during screen
redesign, I found that when cutting and pasting a group of controls
(option groups, option buttons, command buttons, MSFlexGrid) into the
first page of the tab control, no control events were fired by any of
the pasted controls, even though their appearance changed as though
events were being triggered.

I found that new controls defined in the tab page generated events
normally.

Any ideas?
Nov 12 '05 #1
2 2230
If you will check the Properties, you'll find that the Properties of the
copied control do not indicate that there is event code. However, the event
code is still in the Form's module, under the same name. If you have not
renamed the controls, all you have to do is click the down arrow in the
events for which there was/is code, and select "[Event Procedure]". Once you
have restored the indication of the event code, clicking the box with three
dots will take you to the proper code, and the event code will execute when
the event fires.

It's not that the event didn't fire, it's that the event property was no
longer indicating that the code existed.

Larry Linson
Microsoft Access MVP
"Simon Kravis" <si**********@csiro.au> wrote in message
news:40**************************@posting.google.c om...
After adding a TabControl to an Access 2000 form during screen
redesign, I found that when cutting and pasting a group of controls
(option groups, option buttons, command buttons, MSFlexGrid) into the
first page of the tab control, no control events were fired by any of
the pasted controls, even though their appearance changed as though
events were being triggered.

I found that new controls defined in the tab page generated events
normally.

Any ideas?

Nov 12 '05 #2
Larry Linson wrote:
If you will check the Properties, you'll find that the Properties of the
copied control do not indicate that there is event code. However, the event
code is still in the Form's module, under the same name. If you have not
renamed the controls, all you have to do is click the down arrow in the
events for which there was/is code, and select "[Event Procedure]". Once you
have restored the indication of the event code, clicking the box with three
dots will take you to the proper code, and the event code will execute when
the event fires.

It's not that the event didn't fire, it's that the event property was no
longer indicating that the code existed.

A quicker method is to go to the code window and cut and paste the whole
module (press Ctrl+A, Ctrl+X and Ctrl+V) this will restore all event
procedure properties.

--
But why is the Rum gone?
Nov 12 '05 #3

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

Similar topics

3
by: winshent | last post by:
I have copied approx 20 controls from a form to a tab control for reasons of space. i now cannot run code triggered by the events of these controls. for example, the following will not trigger...
0
by: Josef Meile | last post by:
Hi I wanted to programmatically disable events like SelectedIndexChanged without using a boolean flag, which indeed I find a quick and dirty solution. So, I found a piece of code that do this...
6
by: Art | last post by:
Hi I'm new at this and need some help. I have a "solution" with 2 projects - the main project and a library. The library is simple, it contains a text box that will appear many times in the form...
1
by: Jeremy.Deats | last post by:
I have been programming in C# for the past few years and I'm now trying to implement something in VB.NET (Framework 1.1) that I'm having a problem with... In C# I can create a new class and make...
5
by: Doug Handler | last post by:
Hi, I have a form (Form1) that contains a tab control which one tab has a customer user control (UserControl1). When the user double-clicks on the grid hosted there a new user control is...
3
by: Mike Jakes | last post by:
I hope that someone can offer a little advice on this one - I've searched the group but can't find an answer. I think that I'm doing something really stupid or missing something trivial, but see...
1
by: ben m | last post by:
Hi all - we've recently switched up to 2005, and I'm having trouble getting the hang of some things, among them, creating a control for the project. Currently, we use a combination of controls on a...
17
by: Kbalz | last post by:
I'm developing a Wizard type program, and I'm flipping between steps by using a TabControl.. buttons on each tabPage move to the next or previous tabPage. When I press CTRL+Tab however, the...
4
by: =?Utf-8?B?VmFuZXNzYQ==?= | last post by:
Hi all! Is it possible to put a textbox ou label after tab control page names? I'd like to put some information after the pages, like this: "Tab Page 1" "Tab Page 2" "Tab Page 3" ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
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
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
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.