Click here to Skip to main content
15,926,703 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Timer Pin
AshokPatra14-Mar-08 1:57
AshokPatra14-Mar-08 1:57 
GeneralRe: Timer Pin
jchigg200014-Mar-08 3:10
jchigg200014-Mar-08 3:10 
GeneralRe: Timer Pin
AshokPatra14-Mar-08 1:59
AshokPatra14-Mar-08 1:59 
GeneralRe: Timer Pin
Dave Kreskowiak14-Mar-08 7:53
mveDave Kreskowiak14-Mar-08 7:53 
GeneralRe: Timer Pin
Mycroft Holmes15-Mar-08 22:11
professionalMycroft Holmes15-Mar-08 22:11 
QuestionHow Rotate a Control? Pin
Orlando_Herrera13-Mar-08 10:59
Orlando_Herrera13-Mar-08 10:59 
AnswerRe: How Rotate a Control? Pin
Christian Graus13-Mar-08 11:18
protectorChristian Graus13-Mar-08 11:18 
Questionrandom question from MS access database Pin
bapu288913-Mar-08 10:37
bapu288913-Mar-08 10:37 
hi i am new in vb.net and i am working on my assigment, I have crated ms access database, i can add new questions and i can also get all questions from database with 4 options it's working fine but now i want to randomize it
and code is some thing like this to open con. and display it and i also try to create array because we dont know how many questions are there in database so when con. opens first it counts how many questions are there and if array is smaller then it increse array size i am not sure that this right or wrong but i am just trying it and when i debug it it increses the array size if it small but i dont know how to randomize it
 Try<br />
<br />
                Me.conTest.ConnectionString = _<br />
                  "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source= MyTest.mdb"<br />
            Catch eConnection As System.Exception<br />
                MessageBox.Show(eConnection.Message)<br />
            End Try<br />
<br />
            'if array size is smaller then increase as per entry<br />
            ArraySize = Count<br />
            Dim IntegerArray(ArraySize) As Integer<br />
            'sort integers<br />
            Call SortArray(ArraySize, IntegerArray)<br />
            Try<br />
                odaTest.Fill(dsTest)<br />
                'lblNo.Text = Me.BindingContext(dsTest.MyTest).Position<br />
            Catch eLoad As System.Exception<br />
                MessageBox.Show(eLoad.Message)<br />
            End Try<br />
            Call dsContacts_PositionChanged()<br />
        End If


this is for array

Private Sub SortArray(ByVal N As Integer, ByVal SortedArray() As Integer)<br />
        'increase the array size according to number of entry <br />
        For I As Integer = 0 To N<br />
            SortedArray(I) = I<br />
        Next I<br />
    End Sub

Confused | :confused:
so can you please help me with this

waiting for your kind rep.

thanks
GeneralRe: random question from MS access database Pin
Christian Graus13-Mar-08 11:20
protectorChristian Graus13-Mar-08 11:20 
QuestionRe: random question from MS access database Pin
bapu288916-Mar-08 8:20
bapu288916-Mar-08 8:20 
AnswerUse a collection to keep track of numbers already used Pin
David Mujica29-Mar-08 11:26
David Mujica29-Mar-08 11:26 
QuestionRe: Use a collection to keep track of numbers already used Pin
bapu288930-Mar-08 1:49
bapu288930-Mar-08 1:49 
GeneralNetwork communication from a mobile device to desktop [modified] Pin
Cory Kimble13-Mar-08 9:58
Cory Kimble13-Mar-08 9:58 
GeneralRe: Network communication from a mobile device to desktop Pin
nlarson1113-Mar-08 10:54
nlarson1113-Mar-08 10:54 
GeneralRe: Network communication from a mobile device to desktop Pin
Cory Kimble13-Mar-08 11:09
Cory Kimble13-Mar-08 11:09 
GeneralRe: Network communication from a mobile device to desktop Pin
nlarson1113-Mar-08 11:12
nlarson1113-Mar-08 11:12 
GeneralRe: Network communication from a mobile device to desktop Pin
Cory Kimble13-Mar-08 11:20
Cory Kimble13-Mar-08 11:20 
GeneralRe: Network communication from a mobile device to desktop Pin
nlarson1113-Mar-08 11:21
nlarson1113-Mar-08 11:21 
GeneralRe: Network communication from a mobile device to desktop Pin
Cory Kimble14-Mar-08 3:40
Cory Kimble14-Mar-08 3:40 
GeneralPage Break for report Pin
Chris Dykes13-Mar-08 9:52
Chris Dykes13-Mar-08 9:52 
GeneralRe: Page Break for report Pin
Dave Kreskowiak14-Mar-08 8:15
mveDave Kreskowiak14-Mar-08 8:15 
GeneralRe: Page Break for report Pin
Chris Dykes14-Mar-08 8:20
Chris Dykes14-Mar-08 8:20 
GeneralRe: Page Break for report Pin
Dave Kreskowiak14-Mar-08 9:50
mveDave Kreskowiak14-Mar-08 9:50 
GeneralConfused about ByVal Pin
Kevin Brydon13-Mar-08 6:19
Kevin Brydon13-Mar-08 6:19 
GeneralRe: Confused about ByVal Pin
Christian Graus13-Mar-08 9:57
protectorChristian Graus13-Mar-08 9:57 

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.