Search:

Type: Posts; User: Elfish

Search: Search took 0.02 seconds.

  1. VS 2010 Re: Im developing a small program to delete old files for a radio station

    How about something like this?

    Private Sub Fdelete()
    ' Set directory to delete files
    Dim myDir As String = "C:\MyFiles\"
    Dim mydate As Date = Now
    For Each S...
  2. Replies
    9
    Views
    1,099

    Re: A couple of OOP Questions

    Actualy now that I think more about it I am not actualy sure that I even need this because an Unchecked Checkbox will automaticaly be a False when saving the data back to the database. Am I correct...
  3. Replies
    9
    Views
    1,099

    Re: A couple of OOP Questions

    I can check a string with String.IsNullOrEmpty and I can check numbers with IsNumeric but how to I check booleans?

    Private _isElectronic As Boolean
    Public Property IsElectronic() As...
  4. Replies
    9
    Views
    1,099

    Re: A couple of OOP Questions

    Thank you for the help. I do have one additional question to complete this learning project. Is this (or something similar) how you would take fill fields from objects and vise-versa? It seems to...
  5. Replies
    9
    Views
    1,099

    Re: A couple of OOP Questions

    Less code because it doesn't require the "If Then". Ultimately I don't mind the extra code if that is the correct way to do it. It just seemed like a lot of scaffolding to build around it. And most...
  6. Replies
    9
    Views
    1,099

    Re: A couple of OOP Questions

    OK so taking this to the next step I did this but it seems more like a hack then a solution. In other words it doesn't seem like a practical solution if there were 50 fields instead of four. Is it?
    ...
  7. VS 2005 Re: Problems Installing vb.net app on another Domain.

    I have had some issues when I tried to use the Windows name for the domian (\\mydomain) as the SQL server name in my connection strings, which can be overcome by using the IP address of the server...
  8. Replies
    9
    Views
    1,099

    A couple of OOP Questions

    This is a learning project that I am using to try and fill in the missing gaps that I still have in my OOP knowledge, which by the way are very wide gaps so please don't assume that I know anything...
  9. Replies
    4
    Views
    965

    Re: Checkedboxlist Events

    OK I was able to get the results I wanted by taking your example and modifying it slightly to work with my code.

    Thanks!
  10. Replies
    4
    Views
    965

    Re: Checkedboxlist Events

    The problem that I have with that Event is that it traps the event too late and fires off my code at the wrong time. In other words if I check the first check box on my form the number doesn't get...
  11. Replies
    4
    Views
    965

    (Resolved) Checkedboxlist Events

    I am trying to figure out a way to fire off an event when a check box is checked or unchecked. I tried different events but all seem to require that you move away from the check box before they fire...
  12. Replies
    3
    Views
    4,444

    VS 2010 Re: Auto printing PDF files

    This should work for you. Use this to call

    Try
    Print.PrintPDF("C:\mypdffile.pdf")
    Catch ex As Exception
    MessageBox.Show(ex.Message)
    End Try

    ...
  13. Replies
    5
    Views
    1,025

    Re: A couple of questions about my class

    JuggaloBrotha done. Actualy I thought it had already been done, which is why I didn't see it the first time around. I just expected the compiler to tell me "Option Strict On requires that all method...
  14. Replies
    5
    Views
    1,025

    Re: A couple of questions about my class

    Oops I meant procedural based programming (old style VB6 and Access VBA, which is where I started). Good call on the ByVal sqlString As String. As a rule that is something I normaly do but I mised it...
  15. Replies
    5
    Views
    1,025

    A couple of questions about my class

    I am still making the trek from the Event Driven Model of programming to OOP and there are many things that don't make complete sense to me. For instance the following code seems to work but CodeRush...
  16. Using a collection for the first time and need help

    I am trying to come up with a way to store 3 pieces of information for each employee in the company on a daily basis. So for instance

    Day 1: Joe, 8, 80
    Day 2: Sam, 10, 90
    Day 3: Bill, 5, 40...
  17. Replies
    1
    Views
    4,754

    Re: Problem with Datagrid using XML

    Got it. There were two issues. Below is the modified sub with the corrected code.

    Dim doc As XDocument = XDocument.Load("StoresList.xml")
    Dim StoreData = From info In...
  18. Replies
    1
    Views
    4,754

    Rsolved: Problem with Datagrid using XML

    I converted this from a C# project that I found online so I am not 100% sure that I did it right but it looks right to me. Here is the code I have:


    Public Sub InitializeGrid()
    Dim...
  19. Re: CSV > Datagridview > SQL Server 2008

    Got it. For those of you following along I added this Private dt As DataTable to the top of the form and then modified the Using ds block like this dt = ds.Tables(0)

    '
    Using ds As New...
  20. (Resolved) CSV > Datagridview > SQL Server 2008

    I have a form that needs to pull a CSV file into a datagridview, which I have working OK with the code below.

    Private Sub FillDataGridviewWithCSV()
    Dim strDirectory =...
  21. Replies
    3
    Views
    762

    Re: Error Provider in a base form problem

    Any other ideas?
  22. Replies
    3
    Views
    762

    Re: Error Provider in a base form problem

    Thanks Kevininstructor. At some point I want to look into frameworks but for now I am learning the basics so I am looking for a solution out of the box.
  23. Replies
    5
    Views
    1,249

    VS 2010 Re: Developing Program with multiple developers

    See this thread VS 2008 Sharing Development. The tutorial in this thread was my introduction to Source Control and I was able to set it up and start working with it in less then an hour. The tutorial...
  24. Replies
    3
    Views
    762

    Error Provider in a base form problem

    I am working on building an error provider then I can put in my base form and use across my application. The code below is just a proof of concept and I think I am close but the one thing I haven't...
  25. Replies
    6
    Views
    1,259

    Re: Putting a datatable into a dataset problem

    Should I continue with this and convert it into a Dataview

    Using dtExport As DataTable = DirectCast(dgvSafetyGlasses.DataSource, DataTable)
    ExportDataTableToCsv(dtExport)
    ...
  26. Replies
    6
    Views
    1,259

    Re: Putting a datatable into a dataset problem

    It will not export after I filter the data out and I read where you said I need to use the default view but I am not exactly sure where to put it. I can put it where I have it commented out below but...
  27. Replies
    6
    Views
    1,259

    Re: Putting a datatable into a dataset problem

    I don't think I can use the existing Dataset because I use a filter on the grid and I only way to export the data that is currently in the grid. I did try to use the datatable as it was but I...
  28. Replies
    6
    Views
    1,259

    Putting a datatable into a dataset problem

    I am trying to put a datatable into a dateset, which I then export to a CSV file. I am getting this error

    DataTable already belongs to another DataSet. on the following line ...
Results 1 to 28 of 28



Click Here to Expand Forum to Full Width