# Fill a Combox box with list of Users from NT List

**URL:** <https://forums.thehomestack.io/t/fill-a-combox-box-with-list-of-users-from-nt-list/139>\
**Category:** vb.Net\
**Created:** [February 8, 2004, 6:20am UTC](https://forums.thehomestack.io/t/fill-a-combox-box-with-list-of-users-from-nt-list/139 "2004-02-08T06:20:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://forums.thehomestack.io/uploads/default/original/1X/161426793bc0d8bdf0d1a6692b3e44446861cc72.jpeg) [@system](https://forums.thehomestack.io/u/system)\
**Post date:** [February 8, 2004, 6:20am UTC](https://forums.thehomestack.io/t/fill-a-combox-box-with-list-of-users-from-nt-list/139/1 "2004-02-08T06:20:25Z")

</div>

use this code sniplet  
Public Function ListGroupMembers(ByVal MachineName As String, ByVal GroupName As String) As String()  
Dim i As Integer  
Dim arrStr() As String  
Dim objGroup, objMember As Object  
i = 0  
objGroup = GetObject(“WinNT://” & MachineName & “/” & GroupName & “,group”)  
For Each objMember In objGroup.Members  
ReDim Preserve arrStr(i)  
arrStr(i) = objMember.Name  
i += 1  
Next  
Return arrStr  
End Function  
returns an array of string containing group memebers
