Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW TO GET ALL PROPERTY VALUES

Status
Not open for further replies.

Judai

Programmer
Oct 23, 2002
42
0
0
IL
Hello,

How R U B&Gs?

I'd like to get all the values of a certain property, into a combobox.

Does anyone know how 2 do it?

Lets say: all of 'Text1.ScrollBars' values into a different combobox, so that
when the combobox changes, the ScrollBars value of Text1 will change.

Thanks.

Jud-I.
 
I take it from the way you phrase your question that you are fairly new to the forum and VB, as this forum is aimed at professional VB developers.

For fairly straightforward stuff, it's usually worth reading the help file before posting. For full guidance, read the FAQ referred below.

For this question, try:

Texbox.Scrollbars property can only be :
0 - None
1 - Horiz
2 - Vert
3 - Both

so:
For a = 0 to 3
Combo1.Additem a
Next a

And in the Combo click event:
Text1.Scrollbars = Combo1.List(Combo1.ListIndex)
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Thanks,

That did help, but

I am not new 2 any of the mentioned above....

JUST THOUGHT THERE MIGHT B A SMARTER WAY OF DOING IT>>>>>>>>>>>

J.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top