Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 0.39 seconds.

  1. Re: .NET Find Most Recently Modified File incl. Recursively/Subfolder Support

    Ok. You need manual recursion through the folders in that case...



    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
  2. Re: .NET Find Most Recently Modified File incl. Recursively/Subfolder Support

    Catch ex As UnauthorizedAccessException

    Have a look at the Properties for the UnauthorizedAccessException Class
  3. Re: .NET Find Most Recently Modified File incl. Recursively/Subfolder Support

    use this...


    Dim files() as String = IO.Directory.GetFiles("C:\", "MyFileTest.txt", SearchOption.AllDirectories)
  4. Re: .NET Find Most Recently Modified File incl. Recursively/Subfolder Support

    To find the files, and the newest last write time...


    Dim files() as String = IO.Directory.EnumerateFiles("C:\", "MyFileTest.txt", SearchOption.AllDirectories)
    files = files.OrderBy(function(f)...
  5. VS 2019 Re: Return statement not returning correct value

    Try this...


    If Num1 Mod Num2 = 0 Then
    Debug.Print(Num2)
    Return Num2
    Else
    Return GCD(Num2, Num1 Mod Num2)
    End If
  6. VS 2019 Re: Return statement not returning correct value

    Integers are whole numbers. Are you sure it's not a rounding issue?
  7. Re: Check if a file exist in directory/subfolders and show its Explorer windows folde

    I shouldíve spotted it sooner. I was distracted by all of the API functions youíre using :D
  8. Re: Check if a file exist in directory/subfolders and show its Explorer windows folde

    Iím not suggesting you donít use a LinkLabel :D
  9. Re: Check if a file exist in directory/subfolders and show its Explorer windows folde

    Looking at it again, it seems you need to declare filePath at form scope, and change this...


    NativeMethods.OpenFolderAndSelectFile((IO.Path.Combine(My.Settings.Cartellasalvataggio, titolo &...
  10. Re: Check if a file exist in directory/subfolders and show its Explorer windows folde

    I havenít used a LinkLabel for years, so I canít advise on that, but my code found a file several directories deeper and opened explorer with the correct file selected on the first click...
  11. Re: Check if a file exist in directory/subfolders and show its Explorer windows folde

    I tried this... It works



    Imports System.IO

    Public Class Form1

    Dim titolo As String = "3D pie test"
    Dim ext As String = ".suo"
  12. VS 2017 Re: [HELP CODING] screenshot from a specific program

    Try this for the startup watcher...


    Dim watcher As ManagementEventWatcher

    Public Sub Main()
    Dim monitoredProcess = "Notepad.exe"
    Dim query As WqlEventQuery = New...
  13. Replies
    1
    Views
    168

    VS 2017 Re: Make The Web Browser Editable

    Read this... Post #15 onwards are useful

    https://www.vbforums.com/showthread.php?353415-RESOLVED-Webbrowser-Control-Make-it-Editable
  14. VS 2017 Re: [HELP CODING] screenshot from a specific program

    To bring your app to the front...


    AppActivate("Your TitleBar text")

    To get the bounds, read this...
    ...
  15. VS 2017 Re: [HELP CODING] screenshot from a specific program

    To detect app startup, use System.Management
  16. VS 2017 Re: [HELP CODING] screenshot from a specific program

    Thereís several things you forgot there... your app. Must bring the exe to the top of the zorder
    You need to get the exe bounds rectangle...
    Youíll need a method for monitoring exe startup (Iíll...
  17. Re: Tooltip show on the drop down menu in the combobox

    https://www.vbforums.com/showthread.php?754693-How-do-I-show-a-tip-for-each-Combobox-list-items&p=4618343&viewfull=1#post4618343ll

    Thereís a better version here...
    ...
  18. Re: Tooltip show on the drop down menu in the combobox

    The way to do it, is to create a class that inherits from NativeWindow... Iíll find the example...
  19. Thread: VB Help Needed

    by .paul.
    Replies
    3
    Views
    184

    VS 2017 Re: VB Help Needed

    To remove Pasting...


    Public Class numericTextbox

    Inherits TextBox

    Const WM_PASTE As Integer = &H302

    Protected Overrides Sub OnKeyPress(ByVal e As...
  20. Re: Grouping / add empy row following end of a "group" on data grid

    Change the Ďfor ií block for a do while block, as inserting rows in the loop will ruin the loop counting...


    Dim j As Object = -1
    Dim i as Integer = 1
    ...
  21. Re: Grouping / add empy row following end of a "group" on data grid

    Dim j As Object = -1

    DataGridView1.Rows(0).DefaultCellStyle.BackColor = Color.WhiteSmoke

    For i = 1 To DataGridView1.RowCount - 1
    If DataGridView1.Rows(i).Cells(1).Value <> j Then
    ...
  22. Re: Grouping / add empy row following end of a "group" on data grid

    Dim j As Object = -1

    For i = 1 To DataGridView1.RowCount - 1
    If DataGridView1.Rows(i).Cells(1).Value <> j Then
    j = DataGridView1.Rows(i).Cells(1).Value
    ...
  23. Re: Grouping / add empy row following end of a "group" on data grid

    DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.WhiteSmoke
    DataGridView1.Rows(i+1).DefaultCellStyle.BackColor = Color.Black
  24. Re: "Panel" object stops scrolling too soon at low-rez.

    In your panel, put an empty label positioned lower in your panel. The label wonít be visible, but itíll increase your scroll range...
  25. Re: Find location of points after ResetTransform

    I put the dots there in paint, but the points they represent are all in relation to the variable lines...
  26. VS 2017 Re: Add Video, Textboxes and Button To Web Browser?

    It doesnít have to navigate to an online webpage. You can create your own local page with html and css on your pc...
  27. Re: Find location of points after ResetTransform

    Thanks Boops. That seems to work better than any of my previous attempts...
  28. Re: Find location of points after ResetTransform

    Iím fairly sure youíre right about that part of it, but I still need those points, and Iím not experienced with matrixís and Iíve been unable to rotate those points to the correct location after...
  29. Re: Find location of points after ResetTransform

    Ok thanks for answering. Iíll try your matrix idea again later. The problem is that I need to draw part of the diagram with a transform and part without a transform. After drawing the lines, I need...
  30. [RESOLVED] Find location of points after ResetTransform

    I'm writing a small app that draws Japanese multiplications, based on values in two NumericUpDown controls...

    178969

    The problem i'm trying to solve is how to get the location of the red dots...
  31. [RESOLVED] Find location of points after ResetTransform

    I'm writing a small app that draws Japanese multiplications, based on values in two NumericUpDown controls...

    178968

    The problem i'm trying to solve is how to get the location of the red dots...
  32. Replies
    42
    Views
    1,035

    VS 2019 Re: [RESOLVED] MySQL Populate 2nd Dropdown

    Good luck with the Christmas broadcast. Which country and radio station?
  33. Replies
    42
    Views
    1,035

    VS 2019 Re: [RESOLVED] MySQL Populate 2nd Dropdown

    You're alone in being able to really test anything there. I don't have the datasource and i can only suggest changes. Been a while since i've done any databinding...
  34. Replies
    42
    Views
    1,035

    VS 2019 Re: [RESOLVED] MySQL Populate 2nd Dropdown

    You've implemented all of the changes i posted?


    Imports System.Data.SqlClient
    Public Class Form1

    Private dt as DataTable

    Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As...
  35. Replies
    42
    Views
    1,035

    VS 2019 Re: [RESOLVED] MySQL Populate 2nd Dropdown

    After the last change, try changing both instances of this line...


    Dim dv As DataView = dt.DefaultView

    To...


    Dim dv As New DataView(dt)
  36. Replies
    42
    Views
    1,035

    VS 2019 Re: [RESOLVED] MySQL Populate 2nd Dropdown

    Try it with this modification...


    Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ComboBox1.SelectedIndexChanged
    If ComboBox1.SelectedIndex =...
  37. Replies
    42
    Views
    1,035

    VS 2019 Re: [RESOLVED] MySQL Populate 2nd Dropdown

    I'm posting code mostly from memory here, so let me know how it works
  38. Replies
    42
    Views
    1,035

    VS 2019 Re: [RESOLVED] MySQL Populate 2nd Dropdown

    Should be a combo datasource
  39. Replies
    42
    Views
    1,035

    VS 2019 Re: [RESOLVED] MySQL Populate 2nd Dropdown

    After...


    da.Fill(dt)

    There's...


    Dim dv As DataView = dt.DefaultView
  40. Replies
    42
    Views
    1,035

    VS 2019 Re: [RESOLVED] MySQL Populate 2nd Dropdown

    You can still use the order by clause...



    Imports System.Data.SqlClient
    Public Class Form1

    Private dt as DataTable

    Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width