-1

is there any way to select multiple textbox in one click...
for example...
we have 4 textboxs in an each row..
and 4 textboxes in an each columns..
just like this

- - - -
- - - -
- - - -
- - - -
now when we click on first row's, first column, the entire and entire column sholud b selectd, and it should change its border color...

- - - -
- - - -
- - - -
- - - -
like this....
is there anyone ??? who can help me

Votes + Comments
question is not clear. what exactly do you need ?
4
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by AndreRet
0

I have no idea on how to select multiple textbox at once (Run Time). But there are some properties which would look like you are doing it.

The Enable or Locked property for example, you can lock and enable multiple textboxes (or other controls in just one click.

PS: You can't do this using the Setfocus command because it will only set focus on the last textbox.setfocus statement that is on the last line of your code (if you try this).

Edited by abelingaw: n/a

0

In VB 6, textbox control doesn't have a bordercolor property, only backcolor and borderstyle.

However you can change the appearance to flat and just put a shape (rectangle) around the textbox and change the color in your preferred event.

Private Sub Command1_Click()
Shape1.BorderColor = &HFF& 'put your desired color
End Sub

Edited by abelingaw: n/a

0

I do not think the OP means text boxes, by mentioning columns etc.:)

What exactly do you need? Are you talking about excel with rows and columns or a datagrid?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.