Hi everyone,
I have actually been successful in creating controls
onto forms on the fly. What I am wondering is if it
is possible to generate VBA code for a particular control
at the same time.
For example, a combobox is created with all the properties
added in code. Then, an event procedure (ie. ON CLICK) is
subsequently generated for that control via code.
I have been able to create a blank form with VBA included
for non-existent controls that can later be pointed to. But,
I'm wondering if it can be done programatically from scratch.
Thanks for any suggestions. SAM 4 2377
"SAM" <ga*********@hotmail.com> wrote in message
news:98**************************@posting.google.c om... Hi everyone,
I have actually been successful in creating controls onto forms on the fly. What I am wondering is if it is possible to generate VBA code for a particular control at the same time.
For example, a combobox is created with all the properties added in code. Then, an event procedure (ie. ON CLICK) is subsequently generated for that control via code.
I have been able to create a blank form with VBA included for non-existent controls that can later be pointed to. But, I'm wondering if it can be done programatically from scratch.
Yes, look for help on the insertlines method.
Regards,
Duncan Macarthur
"SAM" <ga*********@hotmail.com> wrote in message
news:98**************************@posting.google.c om... Hi everyone,
I have actually been successful in creating controls onto forms on the fly. What I am wondering is if it is possible to generate VBA code for a particular control at the same time.
For example, a combobox is created with all the properties added in code. Then, an event procedure (ie. ON CLICK) is subsequently generated for that control via code.
I have been able to create a blank form with VBA included for non-existent controls that can later be pointed to. But, I'm wondering if it can be done programatically from scratch.
Yes, look for help on the insertlines method.
Regards,
Duncan Macarthur
Hello,
What I do in that situation is to create the controls at
design time, complete with the VBA code to handle events, but I set
the visible property to false. Then, as I need them, I make them
visible.
Write me direct, if you need more help.
Hank Reed
Hello,
What I do in that situation is to create the controls at
design time, complete with the VBA code to handle events, but I set
the visible property to false. Then, as I need them, I make them
visible.
Write me direct, if you need more help.
Hank Reed This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Kiyomi |
last post by:
Hello,
I create a Table1 dynamically at run time, and at the same time, I would
like to create LinkButton controls, also dynamically, and insert them into
each line in my Table1. I would...
|
by: John Crowley |
last post by:
I'm having an odd problem with viewstate and a dynamically created control
inside a repeater template.
Basically, I have a repeater setup like this in the aspx:
|
by: Kamal Jeet Singh |
last post by:
Hi Friends !!
I am have facing problem in controlling the dynamically created
controls on web page. The problem Scenario is
Scenario:- My requirement is to load the web user controls on the...
|
by: Kamal Jeet Singh |
last post by:
Hi Friends !!
I am facing problem in controlling the dynamically created
controls on web page. The problem Scenario is
Scenario:- My requirement is to load the web user controls on the web...
|
by: Chad |
last post by:
I have a problem that I am desperate to understand.
It involves dynamically adding controls to a Table control that is built as a result of performing a database query.
I am not looking to...
|
by: Marcus |
last post by:
I have a problem maybe one of you could help me with. I've created a data
entry screen with lots of dynamically-created client-side controls. I
create HTML texboxes client-side by assigning a...
|
by: Amoril |
last post by:
I've read quite a few different message on various boards and for some
reason I'm still having trouble wrapping my head around this viewstate
maintenance and trying to get these dynamically created...
|
by: Chris |
last post by:
I am dynamically adding a user control to each row in a gridview. The reason
I am doing it dynamically is the user control is different depending on
certain data in the gridview. The gridview...
|
by: mohaaron |
last post by:
I can think of a lot of reasons why this might need to be done but as
far as I can tell it's not possible. I've been looking for a way to
add HtmlTableRows to a table using a button click for a...
|
by: semomaniz |
last post by:
I have a form where i have created the form dynamically. First i manually added a panel control to the web page. Then i added another panel dynamically and inside this panel i created tables. I have...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |