Search:

Type: Posts; User: BULK

Page 1 of 9 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    4
    Views
    558

    VS 2019 Re: Line Chart

    Hi,
    Sorry it was my Listview data that was the problem, the code works.

    Best regards
  2. Replies
    4
    Views
    558

    VS 2019 Re: Line Chart

    Hi,
    Thanks no errors but no data from listbox 2 displayed.

    Regards
  3. Replies
    4
    Views
    558

    VS 2019 [RESOLVED] Line Chart

    Hi,
    I want to plot values from 2 listboxes. Meaning Listbox 2 should be secondary Y axis.
    One Listbox can be plotted with the code below, however I tried to add a Y axis but I cannot figure out how...
  4. Thread: Connect to Oracle

    by BULK
    Replies
    2
    Views
    546

    Re: Connect to Oracle

    Yes, however the same form works if it is put alone in a win forms app?
  5. Thread: Connect to Oracle

    by BULK
    Replies
    2
    Views
    546

    Connect to Oracle

    Hi,
    I have an app with multiple forms. In one form I connect to an Oracle Db. This works fine in Win-7, I use OraOledb.Oracle as provider.
    Now some users migrated to Win-10 64bit. When trying to...
  6. Replies
    16
    Views
    1,766

    VS 2015 Re: Find and delete old file

    Hi Inferrd,

    You are so right regarding my sloppy coding.
    I don't need to filter by concentration anymore, correct.

    Get_Files are used, but I have many different try and error in my code so it...
  7. Replies
    16
    Views
    1,766

    VS 2015 Re: Find and delete old file

    Thanks for your help.

    I did a dirty coding but it works.


    Dim i As Integer
    Dim Conc As String

    For Each Row As DataGridViewRow In DgOneCell.Rows
  8. Replies
    16
    Views
    1,766

    VS 2015 Re: Find and delete old file

    Thanks,

    Tested :

    Dim cyls As List(Of String) = New List(Of String)(Directory.EnumerateFiles("C:\Gases\"))

    I guess that I can get the files here:
    'look at sameCYL(0) should be the newest
    ...
  9. Replies
    16
    Views
    1,766

    VS 2015 Re: Find and delete old file

    Hi thanks,
    I'm sorry but I do not get how to use the code.
    I create a new folder with pdf files that I get by the cyl number from an other directory which has thousands of files.
    The cyl number...
  10. Replies
    16
    Views
    1,766

    VS 2015 Re: Find and delete old file

    Hi,
    They are named by their component, concentration and the cyl number. The cyl number can be letters and numbers. The cyl number belongs to the cylinder and can be refilled with a different...
  11. Replies
    16
    Views
    1,766

    VS 2015 Re: Find and delete old file

    I should maybe explain what I try to achieve in more detail.
    I populate a DataGrid from a data base. And then want to find a matching pdf file located in a folder. This works, but there are multiple...
  12. Replies
    16
    Views
    1,766

    VS 2015 Re: Find and delete old file

    There will be duplicates, however it could be any cyl number. It can be one duplicate or 5 it is a bit random.

    Thanks for helping.
  13. Replies
    16
    Views
    1,766

    VS 2015 Re: Find and delete old file

    Hi,
    There are many files in the folder. I do not know IF there are duplicates of the cyl numbers or not.
    Nor I do not know the name. The function needs to check for the newest file and if a...
  14. Replies
    16
    Views
    1,766

    VS 2015 Re: Find and delete old file

    Hi thanks for reply,

    No, because it is not the whole name that is the same, only the cyl number. And it is not sure that the oldest modified is the last one added.

    If you open a folder you will...
  15. Replies
    16
    Views
    1,766

    VS 2015 [RESOLVED] Find and delete old file

    Hi,
    I have a folder that contains pdf files.
    Sometimes identical cyl numbers occurs. I want to delete the older ones and just keep the file with the newest timestamp.

    Example:
    Nox 499,8 - cyl...
  16. Replies
    9
    Views
    6,867

    VS 2013 Re: Excel to ListView

    Hi, thanks for your effort.

    It is working perfectly fine.

    Many thanks.
  17. Replies
    9
    Views
    6,867

    VS 2013 Re: Excel to ListView

    Hi thanks,

    The row:

    lvi.SubItems.Add(xlData(row, col).ToString)

    Cast an exception:
    An unhandled exception of type 'System.NullReferenceException' occurred in SWR-Analyzer.exe
    ...
  18. Replies
    9
    Views
    6,867

    VS 2013 Re: Excel to ListView

    Hi,
    I think I need to add the subItems as well.

    This code works but it is very slow, writes about 2 rows /sec. Would be nice if there was a quicker way.


    Private Sub getXlFile()
    Dim...
  19. Replies
    9
    Views
    6,867

    VS 2013 Re: Excel to ListView

    The code:


    Dim xlApp As Excel.Application
    Dim xlWorkBook As Excel.Workbook
    Dim xlWorkSheet As Excel.Worksheet

    xlApp = New Excel.Application
    ...
  20. Replies
    9
    Views
    6,867

    VS 2013 Re: Excel to ListView

    Hi thanks,
    My Excel sheet contains 19 columns of data.

    This row cast the exception: System.Reflection.AmbiguousMatchException.
    Overload resolution failed because no Public 'Add' is most specific...
  21. Replies
    9
    Views
    6,867

    VS 2013 [RESOLVED] Excel to ListView

    Hi all,
    Can anyone give an example of how to get an Excel range to a ListView?
  22. Thread: encoding to ASCII

    by BULK
    Replies
    6
    Views
    915

    VS 2013 Re: encoding to ASCII

    I got an example how to get the data in C#. However I think that set the comport right.

    The example code:

    public bool GetTask(int typeIndex, int taskIndex, out Task2 task)
    {
    ...
  23. Thread: encoding to ASCII

    by BULK
    Replies
    6
    Views
    915

    VS 2013 Re: encoding to ASCII

    Yes probably. Some of the data is readable after convert, and some still rubbish. I must obvious do something wrong here.
  24. Thread: encoding to ASCII

    by BULK
    Replies
    6
    Views
    915

    VS 2013 Re: encoding to ASCII

    Thanks, I will try and see.
    Problem is that I talk to a device and only get garbage back. The encoding should be ISO88591 to get it right.
    I can also get hex values depending on how I set up my...
  25. Thread: encoding to ASCII

    by BULK
    Replies
    6
    Views
    915

    VS 2013 encoding to ASCII

    Hi
    I have a problem when I talk to a device with serial communication.
    What I know is that the response should be in iso-8859-1.
    Is there a way to convert Hex values to iso-8859-1?
  26. Thread: Excel Open file

    by BULK
    Replies
    2
    Views
    617

    VS 2013 Re: Excel Open file

    Thank's
    Yes, but this is a workbook with tons of calculations. I want to open the workbook and add new data which will re-calculated and then I grab the complex graphs as jpg.
  27. Thread: Excel Open file

    by BULK
    Replies
    2
    Views
    617

    VS 2013 Excel Open file

    Hi

    I need to open an Excel workbook and press a button then load the correct data into the workbook from an other location.

    This code opens the workbook and press a button that opens a file...
  28. Replies
    0
    Views
    927

    VS 2013 [RESOLVED] Chart from Listbox

    Hi
    I have a listbox with values. And I'm doing a line graph of values from it.
    Problem is that the secondary scale do not match the values. If I do not set the secondary scale y values both lines...
  29. Replies
    3
    Views
    738

    VS 2013 Re: Sort String

    Hi
    Thank you very much. Great, I will try this.
    However removing the loop did a very nice speed up.

    Cheers
  30. Replies
    3
    Views
    738

    VS 2013 [RESOLVED] Sort String

    Hi all,

    I need to load a file with a list of numbers into a richtextbox. The list could be up to 10 000 points. 111000222244444 etc..
    The 10 first values are shown in 10 different labels. Like a...
  31. Replies
    2
    Views
    692

    VS 2013 Re: Find date string formatted as day

    Hi
    Thank you very much. Worked great.
  32. Replies
    2
    Views
    692

    VS 2013 [RESOLVED] Find date string formatted as day

    Hi

    I have an application that exports data to an Excel sheet.

    In one column I format the date as day.


    With xlWorkSheet.Range("c2", "c1000")
    .NumberFormat = "dddd"
    ...
  33. Replies
    4
    Views
    691

    VS 2013 Re: Exel char on other sheet

    Yes, thank you.
  34. Replies
    4
    Views
    691

    VS 2013 Re: Exel char on other sheet

    Hi,thanks.

    For a graph I do like this:


    Dim chartPage As Excel.Chart
    Dim xlCharts As Excel.ChartObjects
    Dim myChart As Excel.ChartObject
    Dim chartRange As...
  35. Replies
    4
    Views
    691

    VS 2013 Exel char on other sheet

    Hi
    I have a app that exports data to an Excel sheet. Then I add a new Sheet (Plot) and want to make a graph.
    This works fine if I make the graph at same sheet as the sheet that I call "Data"...
  36. Replies
    8
    Views
    1,527

    VS 2013 Re: Find smallest value ListView

    Thank's
    Worked fine. I needed to change this:


    lblResult.Text = String.Format("Best Match @ Freq: {0}Hz SWR: {1} R: {2} X: {3} Z: {4}", ListView1.Items(filteredRowIndex).SubItems(0).Text,...
  37. Replies
    8
    Views
    1,527

    VS 2013 Re: Find smallest value ListView

    This code only give the first number for the frequency, but it looks for the same value.


    Dim num As Integer
    num = Me.ListView1.Items.Count - 1
    Dim smallestNumber As Double =...
  38. Replies
    8
    Views
    1,527

    VS 2013 Re: Find smallest value ListView

    Yes, but I want the other values at the same row's subItems.
  39. Replies
    8
    Views
    1,527

    VS 2013 Re: Find smallest value ListView

    Hi, thank's.

    Yes, that worked. However not for the other subItems they are still the last row values.
    I guess I need to declare them first as well.
  40. Replies
    8
    Views
    1,527

    VS 2013 [RESOLVED] Find smallest value ListView

    Hi, all.

    I want to find the lowest value in a ListView's subItem. I have been trying with the code below, but it only gives me the last values in the ListView.


    Dim num As Integer
    ...
Results 1 to 40 of 359
Page 1 of 9 1 2 3 4



Click Here to Expand Forum to Full Width