|
-
Oct 19th, 2001, 10:57 AM
#1
Thread Starter
New Member
Selecting Items in List Box control programmatically...
Hi ,
I have created list box with the property Multiselect= 2-extended.
I thought I can select more than one Item in the list box programmaticaly using the following code, but it is not working.
For i= 2 to SelctedVal
retval = SendMessage(lstNotLinked.hWnd, LB_SETSEL,
ByVal CLng(1), ByVal CLng(i))
Next i
Can some body please tell me whether it is possible OR not.
Since I am new to VB, I am not very sure of VB 6.0 capabilities.
If any of you know how to select the list box items (more than one) programmatically then please let me know.
Thank You very much........
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|