Setting BorderStyle property 
Author Message
 Setting BorderStyle property

Quote:

>I want to set BorderStyle property of TextBox.

>I can do :  text2.Text = "fjhjkhfdjksh"    and it works
>I can do :  text2.Visible = false          and it also work

>But each time I do :  text2.BorderStyle = 1
>I get message : Function call on left-hand side of assignment must
>                return Variant or Object.

>Why it doesnt work ???
>How can I change BorderStyle property ???

If you look in the help file for " BorderStyle "  you will find that it
is READ ONLY AT RUN TIME.  RTFM!

_________________________________________________________
New Vision Software     "Someday I'll think of something"
Bryan Stafford               "profound to put here."



Mon, 31 Aug 1998 03:00:00 GMT  
 Setting BorderStyle property

I want to set BorderStyle property of TextBox.

I can do :  text2.Text = "fjhjkhfdjksh"    and it works
I can do :  text2.Visible = false          and it also work

But each time I do :  text2.BorderStyle = 1
I get message : Function call on left-hand side of assignment must
                return Variant or Object.

Why it doesnt work ???
How can I change BorderStyle property ???

Greetings,
  Marek

--
-- Marek Debowski           psychology & computer science, Warsaw University



Mon, 31 Aug 1998 03:00:00 GMT  
 Setting BorderStyle property

If this is VB4 then I don't know
If this is VB 3.0 then... Sorry the Borderstyle cannot be changed at runtime
Curt

Quote:

>I want to set BorderStyle property of TextBox.

>I can do :  text2.Text = "fjhjkhfdjksh"    and it works
>I can do :  text2.Visible = false          and it also work

>But each time I do :  text2.BorderStyle = 1
>I get message : Function call on left-hand side of assignment must
>                return Variant or Object.

>Why it doesnt work ???
>How can I change BorderStyle property ???

>Greetings,
>  Marek

>--
>-- Marek Debowski           psychology & computer science, Warsaw University




Tue, 08 Sep 1998 03:00:00 GMT  
 Setting BorderStyle property
However a label will work
Curt
Quote:

>I want to set BorderStyle property of TextBox.

>I can do :  text2.Text = "fjhjkhfdjksh"    and it works
>I can do :  text2.Visible = false          and it also work

>But each time I do :  text2.BorderStyle = 1
>I get message : Function call on left-hand side of assignment must
>                return Variant or Object.

>Why it doesnt work ???
>How can I change BorderStyle property ???

>Greetings,
>  Marek

>--
>-- Marek Debowski           psychology & computer science, Warsaw University




Tue, 08 Sep 1998 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. TextBox .BorderStyle property at run-time

2. Help: BorderStyle property don't work for subclassed Edit control

3. : BorderStyle property of text control

4. borderstyle property

5. BorderStyle property for VB.Form

6. Mapping BorderStyle property

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

8. Setting BorderStyle fies Enter event

9. Any way to set ComboBox BorderStyle?

10. Set Borderstyle and Apperance of a TextBox runtime.

11. Set Nothing to user-defined Image property through Properties Window

12. upgrade to .net (property bags or property sets) ?

 

 
Powered by phpBB® Forum Software