Search:

Type: Posts; User: clausowitz

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    223

    VS 2019 Re: error using File.Move

    thanks for the compliment.
  2. Replies
    6
    Views
    223

    VS 2019 Re: error using File.Move

    But how to catch the error before it terminates my process?
    At the moment when the error ocuures it says Can't create a file that already exists and terminates
  3. Replies
    6
    Views
    223

    VS 2019 [RESOLVED] error using File.Move

    I am saving files in a folder and rename them to a correct name (according to our system).
    I have the following options:

    1. if the file with the old name exists we want to give it a new name;
    2....
  4. [RESOLVED] define application installation folder

    I created an application which I install at a computer at work.
    When installing the application ends up in some complicated folder under AppData\Local\.

    Is there no way to always install the...
  5. VS 2019 Re: Font size changed after using LiveCharts.WinForms.GeoMap()

    Private Sub Form1_FontChanged(sender As Object, e As EventArgs) Handles Me.FontChanged
    MsgBox("font changed")
    End Sub

    It doesn't fire at all.
  6. Replies
    2
    Views
    248

    VS 2019 Re: ContextMenuStrip stay displayed

    Yes I am opening a new textfile but the textfile is just an example. I want to be able to copy it to any kind of file .doc, ppt, .txt
  7. Replies
    2
    Views
    248

    VS 2019 ContextMenuStrip stay displayed

    I am using a ContextMenuStrip in my program. When I click one of the menu items the text gets copied and the menu stays displayed until I click somewhere else in the form.
    The problem is that when...
  8. Replies
    18
    Views
    621

    VS 2019 Re: Create a List for multiple entries

    What I mean is.
    Your Listbox1 contains all files that matched one of the criteria (Test1, Test2 etc.)
    How can I see which criteria was found in what file?
  9. Replies
    18
    Views
    621

    VS 2019 Re: Create a List for multiple entries

    Chris,

    does this also store which strings were found?
    When retrieving I want to be able to select all files that contain "Test1"


    Private Sub Button1_Click(sender As System.Object, e As...
  10. Replies
    18
    Views
    621

    VS 2019 Re: Create a List for multiple entries

    Chris,

    does this also store which strings were found?
    When retrieving I want to be able to select all files that contain "Test1"
  11. Replies
    4
    Views
    252

    VS 2019 Re: DrawToBitmap not right

    No change, still the same.


    Private Function CreateScreenshot(ByVal Control As Control) As Bitmap

    Dim Screenshot As New Bitmap(1100, 800)
    Control.DrawToBitmap(Screenshot,...
  12. Replies
    18
    Views
    621

    VS 2019 Re: Create a List for multiple entries

    Let me give some clarification for what I do.
    I have an archive of about 4000 documents. With the code I loop through all the filenames and search for country names.
    When I find a country that I...
  13. Replies
    4
    Views
    252

    VS 2019 DrawToBitmap not right

    I am trying to create a screenshot of my geomap object:


    Private Function CreateScreenshot(ByVal Control As Control) As Bitmap

    Dim Screenshot As New Bitmap(Control.Width,...
  14. Replies
    18
    Views
    621

    VS 2019 Re: Create a List for multiple entries

    I tried following:


    For Each kvp In files
    If kvp.Key = sCountries Then
    For Each Str In kvp.Value

    Next
    End If
    Next
  15. Replies
    18
    Views
    621

    VS 2019 Re: Create a List for multiple entries

    I created as you suggested:


    ReadOnly files As Dictionary(Of String, List(Of String)) = New Dictionary(Of String, List(Of String))()

    If Not files.ContainsKey(sCountry) Then
    ...
  16. Replies
    18
    Views
    621

    VS 2019 Create a List for multiple entries

    I need to create a List to store multiple values like following example:

    I need to loop through all filenames in a folder.
    I compare the filename against keywords. When the keyword exists in the...
  17. VS 2019 Re: Font size changed after using LiveCharts.WinForms.GeoMap()

    So is there a way to identify this action at runtime?
  18. VS 2019 Re: Font size changed after using LiveCharts.WinForms.GeoMap()

    I tested the application at work on our laptop and there the issue doesn't occur. So it just happens at my desktop at home.
    No idea what makes it do that.
  19. VS 2019 Re: Font size changed after using LiveCharts.WinForms.GeoMap()

    I removed anything related to the GeoMap and then the font stays unchanged.
    As soon as i put this line again: ReadOnly geoMap1 As LiveCharts.WinForms.GeoMap = New LiveCharts.WinForms.GeoMap()

    the...
  20. VS 2019 Re: Font size changed after using LiveCharts.WinForms.GeoMap()

    That's what I tought but when I gray out this line it still happens.
  21. VS 2019 Font size changed after using LiveCharts.WinForms.GeoMap()

    I am using a GeoMap from LiveCharts in my application that shows the worldmap.
    When I open the form that displays the map all the other forms in my applications start using a completely different...
  22. VS 2019 Re: remove Listview column sortorder

    Yes I did realise that.
    But I have no idea how to write the code
  23. VS 2019 Re: remove Listview column sortorder

    tg

    it doesn't remove the arrow from the columnheader
  24. VS 2019 [RESOLVED] remove Listview column sortorder

    I have a windows form with a Listview.
    When I click the header of the listview an arrow is shown to indicate the sorting order.



    Private Sub ListView1_ColumnClick(sender As Object, e As...
  25. Replies
    5
    Views
    311

    VS 2019 Re: display label relative to textbox

    Changed the code a little to:


    Label2.Location = New Point(TxtSearch.Right - 20, TxtSearch.Bottom - 16)
  26. Replies
    5
    Views
    311

    VS 2019 display label relative to textbox

    I use a textbox on a sizable form. At the end of the textbox I display a label.
    I want the label to stay at the position at the end of the textbox when I change the size of the form.

    How can I do...
  27. Replies
    3
    Views
    295

    VS 2019 Re: progressbar math

    Of course :)
  28. Replies
    3
    Views
    295

    VS 2019 progressbar math

    I am trying to process files in a folder.

    I use a progressbar to show the progress.

    i = number of documents found


    ToolStripProgressBar1.Maximum = i
    ...
  29. VS 2019 Re: from CheckedListbox to Parameters.AddWithValue

    Thanks Wes.
    So I need to change the order in the query to match the database table.
  30. VS 2019 Re: from CheckedListbox to Parameters.AddWithValue

    I found a solution to set my datatable. There is one problem. Its updating the wrong fields with True or False



    Private Sub BtnSave_Click(sender As Object, e As EventArgs) Handles BtnSave.Click...
  31. VS 2019 [RESOLVED] from CheckedListbox to Parameters.AddWithValue

    Hi want to update a record in an access table with the values of a CheckedListbox

    I use this code to update the record but don't know how to loop through the CheckedListbox and get the values of...
  32. Replies
    12
    Views
    604

    VS 2019 Re: error sql query too complex

    I get it. Now its working fine.
  33. Replies
    12
    Views
    604

    VS 2019 Re: error sql query too complex

    MS Access

    SELECT * FROM Archief WHERE Id=1 Or Id=2 Or Id=3 Or Id=4 Or Id=5 Or Id=6 Or Id=7 Or Id=8 Or Id=9 Or Id=10 Or Id=11 Or Id=12 Or Id=13 Or Id=14 Or Id=15 Or Id=16 Or Id=17 Or Id=18 Or...
  34. Replies
    12
    Views
    604

    VS 2019 Re: error sql query too complex

    Still returned the same error:


    sSQLMissing = "SELECT * FROM Archief WHERE Id In (" & sql & ") ORDER BY [Id];"
  35. Replies
    12
    Views
    604

    VS 2019 Re: error sql query too complex

    That's not possible in my case since the records are selected based on some criteria:


    If Not File.Exists(sArchive & sDoc) = True Then
    iNum += 1
    sql =...
  36. Replies
    12
    Views
    604

    VS 2019 [RESOLVED] error sql query too complex

    I am trying to run a query which can be very long. For example:

    SELECT * FROM Archief WHERE Id=1 Or Id=2 Or Id=3 Or Id=4 Or Id=5 Or Id=6 Or Id=7 Or Id=8 Or Id=9 Or Id=10 Or Id=11 Or Id=12 Or Id=13...
  37. Replies
    7
    Views
    509

    VS 2019 Re: uncheck all parent nodes

    I did some more research and got it to work using this code:


    Private Sub UncheckTree(ByVal aTreeView As TreeView)
    Dim n As TreeNode
    For Each n In aTreeView.Nodes
    ...
  38. Replies
    7
    Views
    509

    VS 2019 Re: uncheck all parent nodes

    The TreeView.CheckBoxes property is set to True. TreeView.StateImageList is set up with the two images. Index 0 is a dotted line to make it appear empty. Index 1 is a flag.
    Still the images don't...
  39. Replies
    7
    Views
    509

    VS 2019 Re: uncheck all parent nodes

    Chris, the code works however what I needed was a way to change all StateImageIndex so the flag is replaced with a dotted line image. That way it shows no items were selected.

    181103
  40. Replies
    7
    Views
    509

    VS 2019 [RESOLVED] uncheck all parent nodes

    I have a Treeview with some nodes.


    TreeView1.CheckBoxes = True
    TreeView1.Nodes.Add("Archive")
    YearsPath.ForEach(Sub(wf)
    ...
Results 1 to 40 of 69
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width