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 2385
"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: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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,...
|
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...
| |