472,793 Members | 2,219 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,793 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 2191
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" ...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.