how to display data in textboxes ?

From: chris (chris_at_discussions.microsoft.com)
Date: 07/08/04


Date: Wed, 7 Jul 2004 17:58:01 -0700

i'm trying to display the data into the textboxes when the user enters the appropriate id in the search textfield, however, it keeps on displaying an error message such as the following on my pocket pc

An unhandled exception of type 'System.ArgumentNullException' occurred in System.Windows.Forms.dll

Additional information: ArgumentNullException...

My codes are such as below.My web services was ok..when i enter the number, it works fine..
Private Sub Search2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Search2.Click
        Dim sID As Integer
        sID = Convert.ToInt32(TextBox1.Text)
        Dim ws As New servername.Service1
        Dim ds As DataSet = ws.GetJobID(sID)
        Dim dt As DataTable = ds.Tables("Jobs")
        TextBox2.DataBindings.Add("Text", dt, "JobID")
        TextBox3.DataBindings.Add("Text", dt, "JobNumber")
        TextBox4.DataBindings.Add("Text", dt, "JobName")
    End Sub



Relevant Pages

  • RE: From Help
    ... To see how my approach works, create a new document called Test1. ... This will create a user form named UserForm1. ... Private Sub CommandButton1_Click ... This should display the code for the Document_New ...
    (microsoft.public.word.vba.general)
  • Re: Combo Box text display problem based on AfterUpdate...
    ... Private Sub Form_Current ... The cboStore and cboEmployee display fine. ... "Ken Snell " wrote: ... <MS ACCESS MVP> ...
    (microsoft.public.access.forms)
  • Re: Trouble displaying info from access db
    ... set Label Value ... not getting the Subject Code to display in the Label? ... Private Sub Form1_Load(ByVal sender As System.Object, ... Dim intRecordCount As Integer ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How To Change default error messages
    ... is it possible to selectively display custom error messages for the ... Private Sub Save_Vehicle_Click(DataErr As Integer, Response As Integer) ... > Response = acDataErrContinue ' Don't display the default message ...
    (microsoft.public.access.forms)
  • Re: triangular array- how to transform twodimensional array into singledimesional array
    ... Dim intCount As Integer ... Private Sub CommandX_Click ... display) what is, for example, group 5, what pair make this group. ...
    (comp.lang.basic.visual.misc)