Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: ca8spo
  • Order by date
  1. ca8spo

    DataAdapter.Update Error

    Actually its the .insertCommand for what you are doing.
  2. ca8spo

    DataAdapter.Update Error

    You need to specify the myDataAdapter.UpdateCommand
  3. ca8spo

    Using OLEDBCONNECTION

    Have a look at this FAQ faq796-3727
  4. ca8spo

    for... next loops

    You could use the following in your loops If i = 31 then exit for
  5. ca8spo

    Setting READONLY property in control collection (How)

    You need to set the type of the control to a text box using Ctype(Me.controls(i), System.Windows.Forms.TextBox).readonly = True
  6. ca8spo

    Iterating Control collection within a control - How is this done?

    Sorry Dim t As TabControl Should be Dim t As TabControl = Ctype(Me.TabCtrl1.TabPages(0).Controls(i), System.Windows.Forms.TabControl)
  7. ca8spo

    Iterating Control collection within a control - How is this done?

    You could set up a loop within this elseif statement to loop though all controls within this tab. Something like ...ElseIf Me.TabCtrl1.TabPages(0).Controls(i).GetType() Is GetType(System.Windows.Forms.TabControl) Then Dim c As Control Dim t As TabControl Dim p As TabPage...
  8. ca8spo

    scanning text for specific values & inserting into arrays

    You could read each line of the text file into a string and then use string.indexOf to test whether a word is present. Eg. Dim strLine As String Dim s As New System.IO.FileStream("filename", IO.FileMode.Open) Dim sr As New System.IO.StreamReader(s) While...
  9. ca8spo

    ListView not displaying data.

    Yeah, i've seen that. Have you tried using -1 to autosize to the content text rather than the header text. If so, does that work? Simon
  10. ca8spo

    ListView not displaying data.

    It's you column widths Me.lvwContacts.Columns.Add("Name", -2, HorizontalAlignment.Left) Me.lvwContacts.Columns.Add("Telephone", -2, HorizontalAlignment.Left) Me.lvwContacts.Columns.Add("Email", -2, HorizontalAlignment.Left) should be somthing like...
  11. ca8spo

    ListView not displaying data.

    Not sure, but have you checked the view property of the listview control. I normally set this to details, which shows a list of items contained within. Simon
  12. ca8spo

    Convert string to date

    You could do this if you wanted it to use the same variable. Dim str As String = "08102004" str = str.Insert(2, "/").Insert(5, "/")
  13. ca8spo

    Joining DataTables ?

    You can use the DataRelation class. Something like this- 'Create a new DataRelation Dim rel As New DataRelation(strRelationName, dsDataSet.Tables("Table1")).Columns("Primary Key"), dsDataSet.Tables("Table2").Columns("Foreign Key"), False) 'Add the Relation to the DataSet...
  14. ca8spo

    Read a textfile

    You could use the StreamReader.ReadToEnd method which will return all of the files contents to a string. Then use the String.Split function on this string and pass in the ~ as separator. This function will return each 1234567890 etc. into an array of strings. Hope this helps! Simon
  15. ca8spo

    Changing Crystal Report Data Source at runtime

    Does anyone know how to change a Crystal Report's data source at runtime? At design time I have the report pointing at an XML file and need to change this to other XML files (of the same schema) while the program is running. Thanks Simon
  16. ca8spo

    Sending Email using Outlook and VB.net

    I'm trying to send an email automatically using the Outlook 10.0 object library reference in VB.net I'm using the following code: Public Class OutlookMail Dim oApp As Outlook.Application Dim oNameSpace As Outlook.NameSpace Dim oOutboxFolder As Outlook.MAPIFolder Function...

Part and Inventory Search

Back
Top