Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2004

Tip: Looking for answers? Try searching our database.

Adding textboxes runtime and controlling KeyDown Event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Suad Candir - 19 Dec 2004 00:07 GMT
Hii everybody,
I want to add a new Textbox to my Userform runtime.If the user press teh
Enter Key on this runtime added Textbox then I want to add another Textbox
below the last want. And again on Enter Key I want to do that all again.
Adding a Textbox Runtime is OK.But I cannot controll the Keydown Event of
this runtime added Textbox.

Does anyone have any idea ?

Thanks in advance

Suad Candir
Jezebel - 19 Dec 2004 02:50 GMT
The added textboxes can be set to call a macro on exit ... that macro can
add the next textbox and set focus to it. How will your code know when to
stop adding more textboxes?

> Hii everybody,
> I want to add a new Textbox to my Userform runtime.If the user press teh
[quoted text clipped - 8 lines]
>
> Suad Candir
Suad Candir - 19 Dec 2004 13:01 GMT
Hi Jezebel,

I want to use Keydown_Event.If the user hits the Enter key the macro should
add another textbox.I can write the code for the textboxes at designtime, no
problem.But if I add a textbox at runtime,I cannot assign a macro to the
Keydown_event.That is my big problem.

Any idea ?

Suad Candir

> The added textboxes can be set to call a macro on exit ... that macro can
> add the next textbox and set focus to it. How will your code know when to
[quoted text clipped - 13 lines]
>>
>> Suad Candir
JBNewsGroup - 25 Dec 2004 04:57 GMT
Hi Suad,

I had a similar problem but I did know how many controls I was adding.
However, Peter Hewett explained it all.  Take a look at the following to
read all the questions and answers:

http://www.wordmax.org/Adding_controls_at_Runtime_in_Userforms-5377192-4116-a.html

There may be some info to help you out.

Jerry Bodoff

> Hii everybody,
> I want to add a new Textbox to my Userform runtime.If the user press teh
[quoted text clipped - 8 lines]
>
> Suad Candir
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.