Question : vb.net - make a combination

hello there,
I would like to make something that can give me all possible combination with a name and a number sign..

e#xpertsexchange
ex#pertsexchange
exp#ertsexchange
expe#rtsexchange
etc..

e#xpertsexchang#e
ex#pertsexchang#e
exp#ertsexchang#e
expe#rtsexchang#e
etc..

e#xperts#exchange
ex#perts#exchange
exp#erts#exchange
expe#rts#exchange
etc..

e#xp#er#ts#ex#ch#an#ge
ex#pe#rt#se#xc#ha#ng#e
exp#er#ts#ex#ch#an#ge
exper#ts#ex#ch#an#ge
etc..

all possible combination with number sign where the # is not the first or last digit and it doesn't repeat like this #experts##exchange#

Answer : vb.net - make a combination

Dim mcServices As New Management.ManagementClass("Win32_Service")
        Dim moService As Management.ManagementObject
        For Each moService In mcServices.GetInstances()
            'Dim srvArray As String()
            'srvArray =
            If moService.GetPropertyValue("Name").ToString() = "MyServiceName" Then
                MessageBox.Show(moService.GetPropertyValue("StartName").ToString())
            End If
        Next
Random Solutions  
 
programming4us programming4us