Click here to Skip to main content
15,913,055 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionMerge column headers in Windows Forms DataGrid control Pin
Kishore P. Krishna22-Dec-05 0:38
Kishore P. Krishna22-Dec-05 0:38 
QuestionArrayList Question Pin
Badg3r197722-Dec-05 0:31
Badg3r197722-Dec-05 0:31 
AnswerRe: ArrayList Question Pin
Colin Angus Mackay22-Dec-05 1:04
Colin Angus Mackay22-Dec-05 1:04 
GeneralRe: ArrayList Question Pin
Badg3r197722-Dec-05 1:56
Badg3r197722-Dec-05 1:56 
GeneralRe: ArrayList Question Pin
Badg3r197722-Dec-05 1:59
Badg3r197722-Dec-05 1:59 
GeneralRe: ArrayList Question Pin
Dean_SF22-Dec-05 15:09
Dean_SF22-Dec-05 15:09 
GeneralRe: ArrayList Question Pin
Colin Angus Mackay22-Dec-05 2:10
Colin Angus Mackay22-Dec-05 2:10 
GeneralRe: ArrayList Question Pin
Badg3r197723-Dec-05 5:53
Badg3r197723-Dec-05 5:53 
OK, here is a very basic version on the code im using. Basically im using projects and need to be able to run them randomly. I started using project files (Stored in an ArrayList) and sent the project to a class which was then placed into another array and run. I then decided that I would need to pass back to much information to the project ArrayList and the GUI everytime the project was updated. I need a way for the projects to run (ie not creating project files, creating new instances of classes and saving them to disk using Serializable formatters). My actual code will need lots of events and it is a net based application and involves downloading, etc.

Still cant get the following code to work correctly. If anyone else has a better way of doing this I would be happy to dicuss it. (also im only really a hobby coder. this would be my first real application Smile | :) )

Public Class TestMe
Dim TestCls As Test
Dim AL As New ArrayList

Public Sub Init()
TestCls = New Test
AddHandler TestCls.onDone, AddressOf _onDone

AL.Add(TestCls)
DirectCast(AL.Item(0), Test).lngValue = 1000000000
DirectCast(AL.Item(0), Test).strName = "Test One"

AL.Add(TestCls)
DirectCast(AL.Item(1), Test).lngValue = 10000000
DirectCast(AL.Item(1), Test).strName = "Test Two"
End Sub

Public Sub RunTest(ByVal intValue As Integer)
DirectCast(AL.Item(intValue), Test).RunTest()
End Sub

Private Sub _onDone(ByVal StrName As String)
MsgBox("Done " & StrName)
End Sub
End Class

Public Class Test
Public strName As String
Public lngValue As Long

Public Event onDone(ByVal StrName As String)

Public Sub RunTest()
Dim intCounter As Long = 0
Dim X As Long = 0

'Do Long Process.
For intCounter = 0 To lngValue
X = X + 1
Next

RaiseEvent onDone(Me.strName)
End Sub
End Class
QuestionExcepción ImageList I need aid Pin
krakatodo21-Dec-05 23:54
krakatodo21-Dec-05 23:54 
QuestionPass variable from User Control to other from Pin
Rachel Lam21-Dec-05 22:54
Rachel Lam21-Dec-05 22:54 
AnswerRe: Pass variable from User Control to other from Pin
Colin Angus Mackay22-Dec-05 1:01
Colin Angus Mackay22-Dec-05 1:01 
AnswerRe: Pass variable from User Control to other from Pin
Dave Kreskowiak22-Dec-05 5:38
mveDave Kreskowiak22-Dec-05 5:38 
GeneralRe: Pass variable from User Control to other from Pin
Rachel Lam22-Dec-05 17:43
Rachel Lam22-Dec-05 17:43 
Questioniam unnable connect vss database server from vss client Pin
gandla venu21-Dec-05 21:33
gandla venu21-Dec-05 21:33 
QuestionGet folder permission in vb.net Pin
Mekong River21-Dec-05 21:13
Mekong River21-Dec-05 21:13 
AnswerRe: Get folder permission in vb.net Pin
Dave Kreskowiak22-Dec-05 5:34
mveDave Kreskowiak22-Dec-05 5:34 
GeneralRe: Get folder permission in vb.net Pin
Mekong River22-Dec-05 11:30
Mekong River22-Dec-05 11:30 
GeneralRe: Get folder permission in vb.net Pin
Robert Rohde22-Dec-05 11:49
Robert Rohde22-Dec-05 11:49 
GeneralRe: Get folder permission in vb.net Pin
Mekong River22-Dec-05 11:57
Mekong River22-Dec-05 11:57 
GeneralRe: Get folder permission in vb.net Pin
Robert Rohde22-Dec-05 12:29
Robert Rohde22-Dec-05 12:29 
GeneralRe: Get folder permission in vb.net Pin
Mekong River22-Dec-05 20:18
Mekong River22-Dec-05 20:18 
GeneralRe: Get folder permission in vb.net Pin
Dave Kreskowiak22-Dec-05 15:19
mveDave Kreskowiak22-Dec-05 15:19 
GeneralRe: Get folder permission in vb.net Pin
Mekong River22-Dec-05 20:23
Mekong River22-Dec-05 20:23 
QuestionStatus Bar Panels Pin
HemaRawat21-Dec-05 21:08
HemaRawat21-Dec-05 21:08 
QuestionHow can I creat an .EXE file ? ... Thanks ! Pin
hackerhcm21-Dec-05 19:45
hackerhcm21-Dec-05 19:45 

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.