Click here to Skip to main content
16,006,594 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: trying to learn vb 2005 Pin
Christian Graus20-Jan-07 22:38
protectorChristian Graus20-Jan-07 22:38 
QuestionBuilding a design time editable custom controll Pin
Polymorpher20-Jan-07 18:33
Polymorpher20-Jan-07 18:33 
Questionplease help me, change font of windows system Pin
Your Code20-Jan-07 16:27
Your Code20-Jan-07 16:27 
GeneralRe: please help me, change font of windows system Pin
IqbalVB20-Jan-07 16:42
IqbalVB20-Jan-07 16:42 
QuestionDatagridView relations Pin
Knoen20-Jan-07 12:31
Knoen20-Jan-07 12:31 
GeneralRe: PRINT PREVIEW DIALOG QUESTION Pin
IqbalVB20-Jan-07 16:17
IqbalVB20-Jan-07 16:17 
GeneralRe: PRINT PREVIEW DIALOG QUESTION Pin
vbbeg20-Jan-07 16:38
vbbeg20-Jan-07 16:38 
QuestionVB.NET Help - Array/ArrayList Pin
joon5220-Jan-07 9:48
joon5220-Jan-07 9:48 
Hello, I am a beginner in VB.net programming (or in general..) and I am getting this "NullReferenceException: Object reference not set to an instance of an object" when I try assigning strings to an array..what am I missing?...if I make it an arraylist instead, it works ok except that things are stored in a way that I do not really know how to work with. What is the difference between array and arraylist in vb.net?.. Thanks all for your help!
Below is my code that gives me the null reference error.

Imports System.IO

Public Class Form1
Dim isotope, mass_frac, Sp_A, gammaE, absCoeff, attenCoeff As ArrayList
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Dim oFile As System.IO.File
Dim oRead As System.IO.StreamReader
Dim templine As String = Nothing
Dim strInp() As Array = Nothing
Dim PI(), PIstrList() As String
Dim i, j As Integer
Dim l As Integer = 0
Dim k As Char
isotope = New ArrayList()
Dim saparator() As Char = {" "c}
Try
'Load information file
oRead = File.OpenText("myfile.inf")
Do Until oRead.EndOfStream
templine = oRead.ReadLine
'get first char from the line
k = Mid(templine, 1, 1)
If (k <> "*" And k <> " "c) Then
strInp(l) = Split(templine, vbTab)
l += 1
End If
Loop
' System.Text.RegularExpressions.Regex()
Catch ex As Exception
MsgBox(Convert.ToString(ex))
End
End Try
End Sub
AnswerRe: VB.NET Help - Array/ArrayList Pin
Christian Graus20-Jan-07 10:27
protectorChristian Graus20-Jan-07 10:27 
QuestionColouring and Centering DataGridView Cells [modified] Pin
DA_Loring20-Jan-07 7:07
DA_Loring20-Jan-07 7:07 
Questioncreating a setup that will download and install the updates only. Pin
steve_rm20-Jan-07 5:20
steve_rm20-Jan-07 5:20 
AnswerRe: creating a setup that will download and install the updates only. Pin
Dave Sexton21-Jan-07 20:02
Dave Sexton21-Jan-07 20:02 
Questionformating time in a datagrid using the CF 2.0 Pin
steve_rm20-Jan-07 5:03
steve_rm20-Jan-07 5:03 
QuestionRetrieving Internet Connection Password Pin
VIP-CoMmAnDo20-Jan-07 4:43
VIP-CoMmAnDo20-Jan-07 4:43 
Questionhelp Pin
mohelmy20-Jan-07 2:32
mohelmy20-Jan-07 2:32 
AnswerRe: help Pin
Bassam Saoud20-Jan-07 9:56
Bassam Saoud20-Jan-07 9:56 
QuestionFilter Using Pin
Mansourgh20-Jan-07 2:28
Mansourgh20-Jan-07 2:28 
AnswerRe: Filter Using Pin
Christian Graus20-Jan-07 10:32
protectorChristian Graus20-Jan-07 10:32 
Questionhow to read delimited text and store it into array Pin
IqbalVB20-Jan-07 2:16
IqbalVB20-Jan-07 2:16 
AnswerRe: how to read delimited text and store it into array Pin
gladsmhe20-Jan-07 22:24
gladsmhe20-Jan-07 22:24 
QuestionVB2005 Question.......? [modified] Pin
msleem20-Jan-07 1:28
msleem20-Jan-07 1:28 
GeneralRe: VB2005 Question.......? Pin
IqbalVB20-Jan-07 2:07
IqbalVB20-Jan-07 2:07 
AnswerRe: VB2005 Question.......? Pin
MatrixCoder20-Jan-07 4:27
MatrixCoder20-Jan-07 4:27 
AnswerRe: VB2005 Question.......? Pin
Christian Graus20-Jan-07 10:29
protectorChristian Graus20-Jan-07 10:29 
AnswerRe: VB2005 Question.......? Pin
IqbalVB20-Jan-07 16:10
IqbalVB20-Jan-07 16:10 

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.