Search:

Type: Posts; User: The Intern

Page 1 of 2 1 2

Search: Search took 0.14 seconds.

  1. Replies
    9
    Views
    2,512

    Re: Logic to calculate age and age unit

    Thats it! Thanks
  2. Replies
    9
    Views
    2,512

    Re: Logic to calculate age and age unit

    strBirthDate is entered date of birth eg. 01/01/2012
  3. Replies
    9
    Views
    2,512

    Re: Logic to calculate age and age unit

    I tried your code and it only returns in Years and not in Months



    If (DateDiff(DateInterval.Year, d1, Now) >= 2) And (DateDiff(DateInterval.Day, d1, Now) >= 56) Then
    strAge =...
  4. Replies
    9
    Views
    2,512

    Re: Logic to calculate age and age unit

    thanks Paul, but will this logic applies like say in 2013,2014 and so?


    maybe I didn't make my problem clear. let me try to explain it again. so I have a 'BirthDate' field were user can put in a...
  5. Replies
    9
    Views
    2,512

    Logic to calculate age and age unit

    Hi all, I want to create a logic to calculate the age and unit from entered birth date.
    eg: If the difference between birth date and current date is >= 24 months, I will want it to display the age...
  6. Replies
    7
    Views
    8,571

    Re: Problem Overriding OnMouseMove

    I am having the same error. so what did you do different in your code?

    I know this is a very old thread but anyone that knows a solution to this please help. I will greatly appreciate it
  7. Re: can you use one datagridview on a form to display many files?

    Thanks a lot for you help
  8. Re: can you use one datagridview on a form to display many files?

    I guess if they don't have the columns you can't do it?
  9. can you use one datagridview on a form to display many files?

    eg you have two files customer.xml and owner.xml then you have datagridview1 on a form. can you use an open file dialog to browse and open each file on datagridview1, and be able to make changes and...
  10. Re: adding new row in DGV and saving the row content in original XML

    OK, xKeyPhrases is set the number of nodes in the XmlNodeList



    what should I do to allow it to add a new node?
    Thanks
  11. Re: adding new row in DGV and saving the row content in original XML

    I tried that and I didn't get the initial error I had. This is what I get when I save it
  12. Re: adding new row in DGV and saving the row content in original XML

    OK xKeyPhrases is definitely the problem. I did a count on it and xKeyPhrases.Count = 5
    while DataGridView3.RowCount = 7, which should be correct with the new row added.

    so I still have a...
  13. Re: adding new row in DGV and saving the row content in original XML

    ....
  14. adding new row in DGV and saving the row content in original XML

    I want to be able to add values inside the last (default) row in the DGV and when I click save, the value will be save to the xml

    currently when I do I get error - "Object reference not set to an...
  15. Adding values to a textbox in DataGridView

    I have a Datagridview with textbox. the textbox populates from xml



    how can I change that value from this textbox and overwrite with new value?
  16. how do I change that last button that usually appears last in the datagrid

    http://img85.imageshack.us/img85/3850/56284076.jpg

    how can I change the text for that blank button to "Add"?

    this is the code I am using:



    and of course I want to use that button to add...
  17. how to get dataset from a grid which has already bound to a dataset

    I have a datagrid which is already bound to a dataset, I need to get this dataset,make changes on some data, then rebind the datagrid with the modified dataset.
    here's my code
  18. Replies
    12
    Views
    2,044

    Re: Loading data from one DGV to another...

    Thanks for the button
  19. Replies
    12
    Views
    2,044

    Re: Loading data from one DGV to another...

    I went with this first approach and it didn't seem to work:



    Private Sub SimpleDemo()
    Using cn As New OleDbConnection("Your connection string")
    Dim cmd As OleDbCommand = New...
  20. Replies
    12
    Views
    2,044

    Re: Loading data from one DGV to another...

    "Object reference not set to an instance of an object."
  21. Replies
    12
    Views
    2,044

    Re: Loading data from one DGV to another...

    I tried:



    it throws an error
  22. Replies
    12
    Views
    2,044

    Re: Loading data from one DGV to another...

    Thanks for a explanation, but a little more code example will do much wonder :)
  23. Replies
    12
    Views
    2,044

    Re: Loading data from one DGV to another...

    but if I have to make changes in the first DGV, how can I be able to make it save or overwrite the initial content?
  24. Replies
    12
    Views
    2,044

    Re: Loading data from one DGV to another...

    because with the second DGV, the user will have the choice to input multiple data. so the second DGV can provide multiple rows
  25. Replies
    12
    Views
    2,044

    Loading data from one DGV to another...

    Hello y'all,

    I am trying to load data from one datagridview into a datagridview, make change in datagridview, and use update function to update change back to initial datagridview. It doesn't seem...
  26. Re: Error: "Object reference not set to an instance of an object." Help please

    bear in mind the error is occurring in this line of code:



    and that's before this line code you are suggesting that is wrong



    but this is the value from quickwatch:
  27. Re: Error: "Object reference not set to an instance of an object." Help please

    http://img84.imageshack.us/img84/866/xmlq.jpg
  28. Re: Error: "Object reference not set to an instance of an object." Help please

    Yes sir. still have that line of code there and didn't change anything from what I posted above
  29. Re: Error: "Object reference not set to an instance of an object." Help please

    there is no error in the error window when I build the project
  30. Re: Error: "Object reference not set to an instance of an object." Help please

    I did like you suggested and here the errors I'm getting

    http://img443.imageshack.us/img443/1541/xmlz.jpg


    how do I know where these errors are occurring or where to go fix them? it does not...
  31. Re: Error: "Object reference not set to an instance of an object." Help please

    Thanks for the response Mebhas. I did like you suggested and still get the same error
  32. Re: Error: "Object reference not set to an instance of an object." Help please

    thanks for your response. I forgot to highlight where the error occurred in the code. I just did in my code I posted above.



    I figured it could be a very easy to fix problem considering it was...
  33. Error: "Object reference not set to an instance of an object." Help please

    I'm building an application that is supposed to allow users to upload XML file from anywhere on the computer and be able to add or edit the XML and save it. When I started the project, those...
  34. Re: How can I assign xml nodes to datagridview columns?

    Let me try to explain my problem much clearer. this is my XML and I know it is not in the right xml schema


    <?xml version="1.0" encoding="utf-8" ?>
    <AutoShop>
    <KeyPhrases list="FirstOne">
    ...
  35. Re: How can I assign xml nodes to datagridview columns?

    Thanks Paul. That's good for a start, but I want to display them on a datagridview instead
  36. Re: How can I assign xml nodes to datagridview columns?

    same person two different computers, different ID
  37. Re: How can I assign xml nodes to datagridview columns?

    Thanks for pointing that out Paul. Actually I want to be able to assign values of the attributes and also the node values to the datagridview columns. Example "keyphrases" will be a column title and...
  38. Re: Getting the selected values in datagridview row. . . .

    thanks
  39. Getting the selected values in datagridview row. . . .

    I have a DataGridView. When the user selects a single row from the grid and clicks a button a different form opens and displays the fields from the selected row in textBoxes.
    1. How do I retrieve a...
  40. Re: Error: Use the "New" keyword to create object instance

    Yes. when I do that it says "Referenced object has a value of 'Nothing'."
Results 1 to 40 of 57
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width