Click here to Skip to main content
15,922,894 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: import to grid Pin
Ashfield14-Oct-08 1:29
Ashfield14-Oct-08 1:29 
QuestionAny example please? Pin
Vinke200813-Oct-08 22:54
Vinke200813-Oct-08 22:54 
AnswerRe: Any example please? Pin
Ashfield13-Oct-08 22:58
Ashfield13-Oct-08 22:58 
AnswerRe: Any example please? Pin
Dave Kreskowiak14-Oct-08 1:59
mveDave Kreskowiak14-Oct-08 1:59 
AnswerRe: Any example please? Pin
Paul Conrad14-Oct-08 7:11
professionalPaul Conrad14-Oct-08 7:11 
JokeRe: Any example please? Pin
Guffa14-Oct-08 12:55
Guffa14-Oct-08 12:55 
GeneralRe: Any example please? Pin
Mycroft Holmes14-Oct-08 22:00
professionalMycroft Holmes14-Oct-08 22:00 
QuestionHow to clear How to clear Exception thrown by the target of an invocation. Pin
GopiCS13-Oct-08 19:08
GopiCS13-Oct-08 19:08 
Hai!!!
Here I am doing a object oriented program.In that we create various classes in class library.And, we add reference of the dll to the project.My doubt is I have created a new class class Maze.Which will create a maze shape in UserInterface.The content of the maze class is read from a text in the path specified.And, i have created maze using inheriting the cube class.With select the maze file content is read and if it is 'X' it creates cube and it is '0' it end the if statement.And, the File is reading correctly Character by charater.And, Finally I am getting an Exception thrown by Target of an invocation.The code I wriiten are,

Private Sub Maze()
'READING CHARACTER BY CHARACTER
'============================================

Dim intSingleChar As Integer
Dim charSingleChar As String
Dim OpenFL As FileStream = New FileStream("C:\Users\admin\Desktop\MinMini.vb\MinMini.vb\bin\Debug\Botlets\Maze.txt", FileMode.Open, FileAccess.Read, FileShare.None)
Dim ReadFL As StreamReader = New StreamReader(OpenFL)
ReadFL.Read()
CharNo = 0
While ReadFL.Peek <> -1
Do Until CharNo = OpenFL.Length
intSingleChar = ReadFL.Read
charSingleChar = Chr(intSingleChar)
Select Case CharNo
Case 0 To 16
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
Case 17 To 32
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Y = bt.CHeight / 2
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
Case 33 To 48
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Y = bt.CHeight / 2
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
Case 49 To 64
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Y = bt.CHeight / 2
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
Case 55 To 80
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Y = bt.CHeight / 2
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
Case 81 To 96
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Y = bt.CHeight / 2
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
Case 97 To 112
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Y = bt.CHeight / 2
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
Case 113 To 128
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Y = bt.CHeight / 2
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
Case 129 To 144
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Y = bt.CHeight / 2
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
Case 145 To 160
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Y = bt.CHeight / 2
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
Case 161 To 176
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Y = bt.CHeight / 2
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
Case 177 To 192
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Y = bt.CHeight / 2
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
Case 193 To 208
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Y = bt.CHeight / 2
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
Case 209 To 224
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Y = bt.CHeight / 2
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
Case 225 To 240
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Y = bt.CHeight / 2
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
Case 241 To 256
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Y = bt.CHeight / 2
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
Case 257 To 272
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Y = bt.CHeight / 2
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
Case 273 To 286
If charSingleChar = "X" Then
bt = New Templates.Botlet.MyCube()
bt.Y = bt.CHeight / 2
bt.Frame.Location = New Point3d(bt.CWidth * i, 0, 0)
Me.SubBotlets.Add(bt)
i = i + 1
End If
End Select
CharNo = CharNo + 1
Loop
MsgBox("Peek" & CharNo)
End While
End Sub


Please give me some suggesions to clear the exception.
AnswerRe: How to clear How to clear Exception thrown by the target of an invocation. Pin
Dave Kreskowiak14-Oct-08 1:58
mveDave Kreskowiak14-Oct-08 1:58 
JokeConextMenuStrip is displayed to fast on load (how to sync when main form visible). Pin
Jon_Boy13-Oct-08 15:35
Jon_Boy13-Oct-08 15:35 
AnswerRe: ConextMenuStrip is displayed to fast on load (how to sync when main form visible). Pin
GopiCS13-Oct-08 19:18
GopiCS13-Oct-08 19:18 
GeneralRe: ConextMenuStrip is displayed to fast on load (how to sync when main form visible). Pin
Tom Deketelaere14-Oct-08 1:19
professionalTom Deketelaere14-Oct-08 1:19 
GeneralRe: ConextMenuStrip is displayed to fast on load (how to sync when main form visible). [modified] Pin
Jon_Boy14-Oct-08 10:01
Jon_Boy14-Oct-08 10:01 
GeneralRe: ConextMenuStrip is displayed to fast on load (how to sync when main form visible). Pin
Tom Deketelaere14-Oct-08 20:56
professionalTom Deketelaere14-Oct-08 20:56 
QuestionBreak String into multiple listboxes Pin
JeffStewart13-Oct-08 13:38
JeffStewart13-Oct-08 13:38 
AnswerRe: Break String into multiple listboxes Pin
Jon_Boy13-Oct-08 14:02
Jon_Boy13-Oct-08 14:02 
AnswerRe: Break String into multiple listboxes Pin
Mycroft Holmes13-Oct-08 17:52
professionalMycroft Holmes13-Oct-08 17:52 
GeneralRe: Break String into multiple listboxes Pin
JeffStewart13-Oct-08 18:31
JeffStewart13-Oct-08 18:31 
GeneralRe: Break String into multiple listboxes Pin
Jon_Boy14-Oct-08 7:35
Jon_Boy14-Oct-08 7:35 
GeneralRe: Break String into multiple listboxes Pin
JeffStewart14-Oct-08 13:33
JeffStewart14-Oct-08 13:33 
QuestionVB Rich Text Box Overstrike Pin
CAN Coder13-Oct-08 8:03
CAN Coder13-Oct-08 8:03 
AnswerRe: VB Rich Text Box Overstrike Pin
Dave Kreskowiak14-Oct-08 1:53
mveDave Kreskowiak14-Oct-08 1:53 
GeneralRe: VB Rich Text Box Overstrike Pin
CAN Coder14-Oct-08 4:33
CAN Coder14-Oct-08 4:33 
QuestionCompare two datasets Pin
Sebastian T Xavier13-Oct-08 5:31
Sebastian T Xavier13-Oct-08 5:31 
AnswerRe: Compare two datasets Pin
Wendelius13-Oct-08 6:20
mentorWendelius13-Oct-08 6:20 

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.