Solved

design-time only at runtime

Posted on 2002-06-20
7
219 Views
Last Modified: 2010-05-02
anyone knows how to change design-time only properties at runtime ?
example:
making a form moveble/not moveble at runtime
making a textbox multiline/singleline at runtime
making a textbox show/not show scrollbars at runtime
 
0
Comment
Question by:pierrecampe
7 Comments
 

Expert Comment

by:HobbitHouse
ID: 7097769
well, if you can change them at runtime, then they aren't design-time only are they?
0
 
LVL 9

Accepted Solution

by:
Valliappan AN earned 200 total points
ID: 7097825
Have a look at this:
http://www.thescarms.com/VBasic/windowstyle.asp

HobbitHouse,
You seem to be right in a sense and not in another. I dont know.

Cheers. :)

0
 
LVL 2

Expert Comment

by:priya_pbk
ID: 7097831
Properties which can be set at design time only(which is) cannot be changed at run time.

But there are always workarounds to do so, which you have to try by trial and error.

For instance:
1)making a form moveble/not moveble at runtime
How abt setting the form's "Border style"=0-None. This way the user will be restricted to move the form. But you wont have the maximise, minimise and close buttons. You can do that anyway programatically(I think)

2)making a textbox multiline/singleline at runtime
How abt catching the keystroke. If the keyascii=13 then keyascii=0 and set focus there itself.

3)making a textbox show/not show scrollbars at runtime:
No idea ! i had tried this, but this I think cannot be changed at design time

These are all work-arounds, but I think you might get better suggestions from some one here in EE.

Hope this info can help you in starting off, Good Luck!!

-priya
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 2

Expert Comment

by:corvanderlinden
ID: 7097899
You have to resort to the windows API

Some good samples on

http://www.mvps.org/vb/

Formbdr.zip and more
0
 
LVL 6

Author Comment

by:pierrecampe
ID: 7109441
well not exactly what i wanted... the search goes on
but thank you for the link
0
 
LVL 9

Expert Comment

by:Valliappan AN
ID: 7109659
Well, for your textbox issues, look at this:
http://www.vbaccelerator.com/codelib/submit/txtboxex.htm

0
 
LVL 9

Expert Comment

by:Valliappan AN
ID: 7109676
And for Form Movable, etc. you can check this link, which should help a lot about this, (note, you might have to register to look at it):

http://www.informit.com/isapi/product_id~%7B3EBD1237-3C91-4CF3-A0BA-EB3976CD978B%7D/element_id~%7B371D67CE-5314-43A2-B9F9-CEBA813E7BF1%7D/st~59882F0C-365E-438C-8A2F-C0E3875F0413/content/articlex.asp

Cheers.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question