Click here to Skip to main content
15,904,156 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralFoldercopyprogress shown in progressbar Pin
Wassilli2-Apr-05 2:47
Wassilli2-Apr-05 2:47 
GeneralRe: Foldercopyprogress shown in progressbar Pin
skrtbh2-Apr-05 4:54
skrtbh2-Apr-05 4:54 
GeneralRe: Foldercopyprogress shown in progressbar Pin
Wassilli2-Apr-05 21:24
Wassilli2-Apr-05 21:24 
GeneralRe: Foldercopyprogress shown in progressbar Pin
Dave Kreskowiak3-Apr-05 4:21
mveDave Kreskowiak3-Apr-05 4:21 
GeneralRe: Foldercopyprogress shown in progressbar Pin
Wassilli3-Apr-05 4:57
Wassilli3-Apr-05 4:57 
GeneralError Exception Message when I close the app. Pin
viettho1-Apr-05 13:48
viettho1-Apr-05 13:48 
GeneralSetup a form for printing (VB6) Pin
PalleJensen1-Apr-05 13:15
PalleJensen1-Apr-05 13:15 
GeneralObject reference not set to an instance of an object Pin
VB.NET Newbie1-Apr-05 11:21
sussVB.NET Newbie1-Apr-05 11:21 
Hi there! I am a newbie to this VB.NET language. I am trying to make a datatable that pulls from a database and populates a datatable with certain information. However I am receiving the following error and I don't know what to do about it. "System.NullReferenceException: Object reference not set to an instance of an object." Here is the section of my code that it causing the error

Dim myService As CalWebServiceVB.CalWebServiceVB
' Create variables for DataTable
Dim myDataSet As DataSet = New DataSet
Dim dtblCal As DataTable
Dim dcolCal As DataColumn
Dim drowCal As DataRow
dtblCal = New DataTable("New Calendar")
' Number of days to retrieve from Calendar and Name of Calendar
Dim CalName As String = "Academic" 'Request.QueryString["CName"];
Dim numdays As Integer = 45 'Convert.ToInt32(Request.QueryString["CDays"]);
Dim numcount As Integer = 4
Dim output As String
output = "Number of elements in a table "
'output += (myService.GetEventsTable(CalName, numdays).Rows.Count())
Console.WriteLine(output)
numcount = myService.GetEventsTable(CalName, numdays)

This is the line on which I get the error "numcount = myService.GetEventsTable(CalName, numdays)". The method call myService.GetEventsTable(CalName, numdays) calls a method that returns the number of rows in this table as an integer. Any help that could be tossed my way would be great. Thanks
GeneralRe: Object reference not set to an instance of an object Pin
Dave Kreskowiak1-Apr-05 13:42
mveDave Kreskowiak1-Apr-05 13:42 
GeneralRe: Object reference not set to an instance of an object Pin
VB .NET Newbie1-Apr-05 15:26
sussVB .NET Newbie1-Apr-05 15:26 
GeneralCapslock status Pin
Mr Dabbah1-Apr-05 9:12
Mr Dabbah1-Apr-05 9:12 
GeneralRe: Capslock status Pin
Anonymous1-Apr-05 18:41
Anonymous1-Apr-05 18:41 
QuestionDrive mount/dismount notification ? Pin
MrBean1-Apr-05 5:03
MrBean1-Apr-05 5:03 
AnswerRe: Drive mount/dismount notification ? Pin
Anonymous3-Apr-05 9:34
Anonymous3-Apr-05 9:34 
AnswerRe: Drive mount/dismount notification ? Pin
Anonymous3-Apr-05 9:59
Anonymous3-Apr-05 9:59 
GeneralAccessor Properties in Forms Pin
maxmanzero1-Apr-05 4:58
maxmanzero1-Apr-05 4:58 
GeneralRe: Accessor Properties in Forms Pin
carlos_rocha3-Apr-05 23:08
carlos_rocha3-Apr-05 23:08 
GeneralIMAP Client Pin
M4nj_j1-Apr-05 4:37
M4nj_j1-Apr-05 4:37 
Questionplaying mpeg files How? Pin
stevekhan1-Apr-05 4:23
stevekhan1-Apr-05 4:23 
GeneralHelp file not getting focus on Dialog Form Pin
Rizwan Bashir1-Apr-05 1:38
Rizwan Bashir1-Apr-05 1:38 
GeneralRe: Help file not getting focus on Dialog Form Pin
Dave Kreskowiak1-Apr-05 2:23
mveDave Kreskowiak1-Apr-05 2:23 
GeneralRe: Help file not getting focus on Dialog Form Pin
Rizwan Bashir1-Apr-05 20:15
Rizwan Bashir1-Apr-05 20:15 
GeneralSave Pictures Pin
RajithCAlwis1-Apr-05 1:36
RajithCAlwis1-Apr-05 1:36 
GeneralRe: Save Pictures Pin
bodespace1-Apr-05 1:51
bodespace1-Apr-05 1:51 
Generallook for dominant color in bitmap Pin
bodespace1-Apr-05 0:59
bodespace1-Apr-05 0:59 

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.