TextBox .BorderStyle property at run-time 
Author Message
 TextBox .BorderStyle property at run-time

Is there a way to change the .BorderStyle property of a TextBox with an API
call at run-time?
(I really don't want the overhead of redundant controls with visiblity
toggling since I have quite a few controls)

I think the ListView control can set pre-hWnd properties by temporarily
destroying the control and then re-creating it.  Is there a similar
application for TextBoxes?

Thanks,
-steve



Mon, 22 Jan 2001 03:00:00 GMT  
 TextBox .BorderStyle property at run-time
Put it off in design time, set new windowstyle in run-time.

An other example is to create Appearance using API;

        l& = GetWindowLong(chWnd, -20)
        l& = l& Or &H20000
        l& = SetWindowLong(chWnd, -20, l&)

redraw..
        SetWindowPos chWnd, chWnd, 0, 0, 0, 0, &H1 + &H2 + &H4 + &H20

Steven Burr heeft geschreven in bericht ...

Quote:
>Is there a way to change the .BorderStyle property of a TextBox with an API
>call at run-time?
>(I really don't want the overhead of redundant controls with visiblity
>toggling since I have quite a few controls)

>I think the ListView control can set pre-hWnd properties by temporarily
>destroying the control and then re-creating it.  Is there a similar
>application for TextBoxes?

>Thanks,
>-steve



Tue, 23 Jan 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Changing Form's BorderStyle property at run time but before form is loaded

2. Set Borderstyle and Apperance of a TextBox runtime.

3. textbox control multiline property at run-time

4. changing BorderStyle at run-time

5. Changing a control's borderstyle and appearance at run-time

6. Saving properties of ActiveX control from design time to run time

7. Accessing design time properties in run time

8. Design-time properties in Run-time Controls

9. Design time or run time, setting properties

10. TextBox BorderStyle

11. Borderstyle on TextBox

12. Setting BorderStyle property

 

 
Powered by phpBB® Forum Software