Click here to Skip to main content
15,889,335 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: need help calculator do not accept more than max char on textbox Pin
vblearner0917-Aug-09 16:20
vblearner0917-Aug-09 16:20 
GeneralRe: need help calculator do not accept more than max char on textbox Pin
Christian Graus17-Aug-09 16:28
protectorChristian Graus17-Aug-09 16:28 
GeneralRe: need help calculator do not accept more than max char on textbox Pin
vblearner0917-Aug-09 16:34
vblearner0917-Aug-09 16:34 
GeneralRe: need help calculator do not accept more than max char on textbox Pin
Christian Graus17-Aug-09 16:50
protectorChristian Graus17-Aug-09 16:50 
GeneralRe: need help calculator do not accept more than max char on textbox Pin
vblearner0917-Aug-09 17:57
vblearner0917-Aug-09 17:57 
GeneralRe: need help calculator do not accept more than max char on textbox Pin
Christian Graus17-Aug-09 19:20
protectorChristian Graus17-Aug-09 19:20 
GeneralRe: need help calculator do not accept more than max char on textbox Pin
vblearner0918-Aug-09 7:59
vblearner0918-Aug-09 7:59 
QuestionVariable Depth For Loop to create a number sequence...how?! Pin
Aaron @ Think Software17-Aug-09 14:43
professionalAaron @ Think Software17-Aug-09 14:43 
I have a loop at the moment that creates a number loop that is 5 deep, each number in a sequence can only be used once...for example

12345
12354
12435
54321 etc...

Here is what i have for the code creating this sequencing...

SortOrder = New List(Of Integer())

Dim iTemp(PanelDepth) As Integer, iCount As Integer = 0

For a As Integer = 0 To PanelDepth - 1
    For b As Integer = 0 To PanelDepth - 1
        If b <> a Then
            For c As Integer = 0 To PanelDepth - 1
                If c <> b And c <> a Then
                    For d As Integer = 0 To PanelDepth - 1
                        If d <> c And d <> b And d <> a Then
                            For e As Integer = 0 To PanelDepth - 1
                                If e <> d And e <> c And e <> b And e <> a Then

                                    ReDim iTemp(PanelDepth)

                                    iTemp(0) = a
                                    iTemp(1) = b
                                    iTemp(2) = c
                                    iTemp(3) = d
                                    iTemp(4) = e

                                    SortOrder.Add(iTemp)

                                End If
                            Next
                        End If
                    Next
                End If
            Next
        End If
    Next
Next


my dilemma is that i need it to be variable on the depth of the sequencing, so for example i might need it to calculate 9 deep, so 123456789, or even more 10/11 sometimes, but i am having trouble coming up with a way to do this, anyone got some ideas that i could try to get it to loop through and still create individual number sets for a n deep sequence?

ta.
AnswerRe: Variable Depth For Loop to create a number sequence...how?! Pin
Christian Graus17-Aug-09 14:56
protectorChristian Graus17-Aug-09 14:56 
GeneralRe: Variable Depth For Loop to create a number sequence...how?! Pin
Aaron @ Think Software17-Aug-09 14:59
professionalAaron @ Think Software17-Aug-09 14:59 
AnswerRe: Variable Depth For Loop to create a number sequence...how?! Pin
Aaron @ Think Software17-Aug-09 15:38
professionalAaron @ Think Software17-Aug-09 15:38 
GeneralRe: Variable Depth For Loop to create a number sequence...how?! Pin
Luc Pattyn17-Aug-09 15:46
sitebuilderLuc Pattyn17-Aug-09 15:46 
AnswerRe: Variable Depth For Loop to create a number sequence...how?! Pin
Moreno Airoldi18-Aug-09 3:50
Moreno Airoldi18-Aug-09 3:50 
QuestionAccessViolationException when resizing an image Pin
Sonhospa17-Aug-09 12:02
Sonhospa17-Aug-09 12:02 
AnswerRe: AccessViolationException when resizing an image Pin
Christian Graus17-Aug-09 13:40
protectorChristian Graus17-Aug-09 13:40 
AnswerRe: AccessViolationException when resizing an image Pin
Luc Pattyn17-Aug-09 14:42
sitebuilderLuc Pattyn17-Aug-09 14:42 
GeneralRe: AccessViolationException when resizing an image Pin
Sonhospa17-Aug-09 19:15
Sonhospa17-Aug-09 19:15 
QuestionUsing %windir% in File.copy Pin
Ghost_80717-Aug-09 11:03
Ghost_80717-Aug-09 11:03 
AnswerRe: Using %windir% in File.copy ... oppps VB Pin
Adam R Harris17-Aug-09 11:29
Adam R Harris17-Aug-09 11:29 
AnswerRe: Using %windir% in File.copy Pin
Sonhospa17-Aug-09 11:36
Sonhospa17-Aug-09 11:36 
AnswerRe: Using %windir% in File.copy Pin
Ghost_80717-Aug-09 12:03
Ghost_80717-Aug-09 12:03 
GeneralRe: Using %windir% in File.copy Pin
Dave Kreskowiak17-Aug-09 14:34
mveDave Kreskowiak17-Aug-09 14:34 
GeneralRe: Using %windir% in File.copy Pin
Ghost_80718-Aug-09 3:06
Ghost_80718-Aug-09 3:06 
GeneralRe: Using %windir% in File.copy Pin
Dave Kreskowiak18-Aug-09 4:20
mveDave Kreskowiak18-Aug-09 4:20 
GeneralRe: Using %windir% in File.copy Pin
Ghost_80718-Aug-09 6:44
Ghost_80718-Aug-09 6:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.