Search:

Type: Posts; User: FHoelgaard

Search: Search took 0.03 seconds.

  1. SQL Server 2017: Strange Database problem - Not showing all data

    We are using a MS SQL server 2017. In one of our production database, there is a strange problem with one of the databases. In one of the tables, it only shows the first record but it contains over...
  2. Replies
    15
    Views
    1,386

    VS 2017 Re: Parameter is invalid

    Thank you very much JMC. You solved my problem :)
  3. Replies
    15
    Views
    1,386

    VS 2017 Re: Parameter is invalid

    I'm using this code to save the images to the database:


    'Set Class Values
    Dim ClFoto As New CLassFoto()
    Dim ClBReg As New BReg()

    ClBReg.intBrID = pIntBRegID
    'Save Image to MemoryStream...
  4. Replies
    15
    Views
    1,386

    VS 2017 Re: Parameter is invalid

    The line:

    Dim imgData As Byte() = CType(ReadFoto(0), Byte())

    is empty when looking at it, in the debugger. I suppose that is the cause of the error, but what can I do?

    JMC: I have deleted...
  5. Replies
    15
    Views
    1,386

    VS 2017 Re: Parameter is invalid

    Yes it is a bitmap, a jpeg file.
  6. Replies
    15
    Views
    1,386

    VS 2017 Re: Parameter is invalid

    The connection is open and the exeption is trown on this line:

    ImageListFotos.Images.Add(ImgFoto)

    As far as I can see in the debugger then the memory object is empty.
  7. Replies
    15
    Views
    1,386

    VS 2017 [RESOLVED] Parameter is invalid

    I'm having the following code:


    'Create SQL Command
    Dim SqlGet As New SqlCommand
    SqlGet.CommandText = "SELECT fotoImage FROM Fotos WHERE brID = @ID AND fotoSlettet = @Deleted ORDER BY fotoID...
  8. VS 2017 Re: [RESOLVED] Index out of range or negative

    The solution was to rewrite the entire code...
  9. VS 2017 Re: Index out of range or negative

    I have updated the code with indenting.
    The error only occurs when the number of rows should fit a page, but a new page is inserted and the error occurs. So in the problem may not be index, but the...
  10. VS 2017 [RESOLVED] Index out of range or negative

    I'am using this code witch i found on Stackoverflow


    If NewPage Then

    DgvRow = Me.dgvBReg.Rows(mRow)

    'Loop Through Header Row and print cells
    For Each cell As DataGridViewCell...
  11. Re: 20130521 - i00 Spell Check and Control Extensions -No Third Party Components Requ

    I am using i00 Spell check in my project...
  12. VS 2017 Re: How to print data from two DataGridviews

    JMC, thank you for your comment. It brought me on the right track and everything works as it should now :)
  13. VS 2017 [RESOLVED] How to print data from two DataGridviews

    I'm working on a program where I have two DataGridViews in a Windows form. When I select a row in the primary DataGridView, corresponding data appears in the secondary DataGridView. Now I would like...
  14. VS 2015 Re: Printing rows from DataGridView

    Well jmcilhinney I know you're right :), but what I can't see is what I'm missing in the logic.
    Let's start with my loop.


    For i As Integer = 0 To Me.dgvAfond.Rows.Count - 1

    'Rows to...
  15. VS 2015 [RESOLVED] Printing rows from DataGridView

    I am having the code below in my PrintDocument event. As long it's only one row, it works okay, but when I try to print two or more rows, the content from all the rows are printed on each page. And...
  16. Replies
    5
    Views
    1,107

    VS 2013 Re: Filter Error in control

    I'm closing this thread since my original question is resolved :)
  17. Replies
    5
    Views
    1,107

    VS 2013 Re: Filter Error in control

    Yes it is a nice costum control. Unfortunately there is no C# version of the control, since it's original where developed in VB in 2014, and nothing has happened since.

    I do have a ID Field as...
  18. Replies
    5
    Views
    1,107

    VS 2013 Re: Filter Error in control

    Well in that case the solution was to change the first pattern to:
    ^((0?[1-9]|[12][0-9]|3[01])[- /.](0?[1-9]|1[012])[- /.](19|20)[0-9]{2})?$
    and the second pattern to:...
  19. Replies
    5
    Views
    1,107

    VS 2013 [RESOLVED] Filter Error in control

    I have found "Auto Filtering GridView Control" on CodeProjects website.
    It fits well for a project I'm doing, as part of my rehabilitation after a stroke.
    However, there comes a filter error when...
  20. Replies
    6
    Views
    1,669

    VS 2013 Re: Convert Date in LinQ to short Date

    Problem solved.

    I found the solution in this thread.

    Thanks tg for guiding me to the correct solution. You where right, my question belongs to the Asp.Net forum, where I found the solution :)
    ...
  21. Replies
    6
    Views
    1,669

    VS 2013 Re: Convert Date in LinQ to short Date

    Hi KGComputers :)
    Nope I'm not using BoundFields in my GridView.
    Your suggestions is giving the following error:
    "Range variable name can be inferred only from a simple or qualified name with no...
  22. Replies
    6
    Views
    1,669

    VS 2013 Convert Date in LinQ to short Date

    I hope this is the right for this post. Otherwise, please move it to the right forum :)

    I'm having this code:


    Dim vGiver = New ArkivEntities

    Dim sGiver = (From aGiver In...
  23. Replies
    2
    Views
    3,079

    VS 2015 Re: Merge cells in a DataTable

    Hi jmcilhinney

    Thanks a lot for your comment. It helped me, to review my code and see it from another perspective.
    It works like a charm now :)
  24. Replies
    2
    Views
    3,079

    VS 2015 [RESOLVED] Merge cells in a DataTable

    After a stroke, I am working on, to return to the programming world.
    The problem I am trying to solve is that I import a CSV file to a DataTable with this:

    Dim dtArkivFonds As New...
Results 1 to 24 of 24



Click Here to Expand Forum to Full Width