design-time only at runtime

anyone knows how to change design-time only properties at runtime ?
making a form moveble/not moveble at runtime
making a textbox multiline/singleline at runtime
making a textbox show/not show scrollbars at runtime
Who is Participating?
Valliappan ANSenior Tech ConsultantCommented:
Have a look at this:

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

Cheers. :)

well, if you can change them at runtime, then they aren't design-time only are they?
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!!

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

You have to resort to the windows API

Some good samples on and more
pierrecampeAuthor Commented:
well not exactly what i wanted... the search goes on
but thank you for the link
Valliappan ANSenior Tech ConsultantCommented:
Well, for your textbox issues, look at this:

Valliappan ANSenior Tech ConsultantCommented:
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):

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.