Search:

Type: Posts; User: DavyEFC

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Modal forms

    by DavyEFC
    Replies
    6
    Views
    187

    Re: Modal forms

    I understand most of this and am trying to do it correctly following your best practices, but not understanding how to implement this bit:



    Could you show an example?
  2. Thread: Modal forms

    by DavyEFC
    Replies
    6
    Views
    187

    Re: Modal forms

    Ah thanks John, i understand now. Just one other question though... i am passing a var (a textbox) like this:


    frmSpell.ShowDialog(Me.txt1)

    then in the 'child' form:


    Dim tBox As...
  3. Thread: Modal forms

    by DavyEFC
    Replies
    6
    Views
    187

    Modal forms

    Hi, not asking for help coding here, just help with the train-of-thought that i am not grasping at the moment.

    In my app i have a form which is opening modally (.showdialog) However, i want...
  4. Replies
    2
    Views
    334

    VS 2019 Re: Mouse wheel scroll issue

    Yes, obviously trying to scroll the textbox, but the link you sent worked perfectly 👍 so thanks so much for that.
    For anyone facing same the code is as below to make the textbox 'ignore' the...
  5. Replies
    2
    Views
    334

    VS 2019 [RESOLVED] Mouse wheel scroll issue

    On my form i am drawing a series of panels onto which i am drawing a thumbnail image, each with a text box below. There may be 100 or more thumbnails so the whole form scrolls. No issue there......
  6. Replies
    18
    Views
    851

    Re: Odd write permissions issue

    Ok so the issue is now resolved. Solution was simply to add an exception to the VS projects directory. Question that will probably never be answered is why did i have to add that exception now; what...
  7. Replies
    18
    Views
    851

    Re: Odd write permissions issue

    Definitely in the right direction but still something not right:

    Avast disabled: Tests good via VS and running an .exe independent of VS
    Avast enabled: Tests fail via VS but also fails when...
  8. Replies
    18
    Views
    851

    Re: Odd write permissions issue

    Great shout. I just disabled my virus software (Avast free) and it works. Looks like your persistence got there Frabulator.
    Now two questions:
    1. Why didn't i try that earlier (will get someone to...
  9. Replies
    18
    Views
    851

    Re: Odd write permissions issue

    But it's every project - i've tried multiple.

    Another update: It seems to be only C drive. It works pointing to d:, x:, and z:

    (BTW: i do appreciate all your thoughts)
  10. Replies
    18
    Views
    851

    Re: Odd write permissions issue

    I have all my projects on GIT so tried that, exactly the same result.

    Update again: I have just run an app i wrote from it's .exe (i.e. completely outside of VS) I tried this app because it...
  11. Replies
    18
    Views
    851

    Re: Odd write permissions issue

    Yeah, computer had been rebooted many times. The next one will be from a great height.
  12. Replies
    18
    Views
    851

    Re: Odd write permissions issue

    Nah! I'm not having that you don't know, John!

    The problem is it's affecting every project i have and as is i can't do any modifications or recompile (well, theoretically i can if i use no...
  13. Replies
    18
    Views
    851

    Re: Odd write permissions issue

    Update2: If i change it to any 'known' extension (.jpg, .mp3, .txt, .pdf whatever) it fails. Use any not known extension (.zzz) and it works fine.
  14. Replies
    18
    Views
    851

    Re: Odd write permissions issue

    Apologies. It's "Access to the path 'path' is denied."
  15. Replies
    18
    Views
    851

    Re: Odd write permissions issue

    Update: By way of test I just changed the fPath to a hard-coded path (e.g. "C:\mydir\textfile.txt") and it still failed. I then changed it to the same but without the extension .txt and it worked...
  16. Replies
    18
    Views
    851

    [RESOLVED] Odd write permissions issue

    I have just had an odd issue with write permissions that has only just started affecting all of my projects (well, i've tried around 5 and all the same) I test whether the user has write permissions...
  17. Replies
    8
    Views
    629

    Re: ProcessStartInfo

    Possibly is. Maybe someone with greater knowledge than mine may advise.
  18. Replies
    8
    Views
    629

    Re: ProcessStartInfo

    Something like:



    If CheckProcess("Outlook") = True Then CloseProcess("Outlook")

    Function CheckProcess(pName$) As Boolean
    If Process.GetProcessesByName(pName).Any() Then...
  19. Thread: References

    by DavyEFC
    Replies
    0
    Views
    451

    References

    IN the latest update of VS a feature was added to 'Remove Unused References'. Even though i have it checked to use in my preferences the menu item never shows. Anyone have an idea what's wrong?...
  20. Replies
    4
    Views
    392

    VS 2019 Re: Disposing of picture boxes

    Ah, understand now. Thanks very much John, again.

    Thanks for the reply dbasnett, but didn't try as John's reply sorted me out.

    Edit: Following John's latest comment i am now disposing the image...
  21. Replies
    4
    Views
    392

    VS 2019 Disposing of picture boxes

    I'm a bit confused and hoping someone can enlighten me.
    I have a panel that has a number of pictureboxes (thumbnails) added to it at runtime, the quantity can be anything from 0 to, say, 7. At a...
  22. Thread: vbNewLine??

    by DavyEFC
    Replies
    7
    Views
    428

    Re: vbNewLine??

    Sorry to labour this but i'm just trying to understand...

    If i use Text.Encoding.Default then i get André, and if i don't specify anything then é is not displayed correctly.
  23. Thread: vbNewLine??

    by DavyEFC
    Replies
    7
    Views
    428

    Re: vbNewLine??

    Am I understanding correctly - you're saying the below is more appropriate? By not specifying anything in particular I'm telling it to try to determine the encoding itself?


    Dim lines As String()...
  24. Thread: vbNewLine??

    by DavyEFC
    Replies
    7
    Views
    428

    Re: vbNewLine??

    I didn't. I was having issues so was modifying all sorts of things trying to figure out what the issue was. I should have clarified that in my post.


    As mentioned, this was only done "by way of...
  25. Thread: vbNewLine??

    by DavyEFC
    Replies
    7
    Views
    428

    vbNewLine??

    Hundreds of times I've read a text file and split it to an array like the below, no issue at all:


    T = IO.File.ReadAllText(FN, Text.Encoding.Default)
    S1 = Split(T, vbNewLine)


    On my...
  26. Re: Referring to controls created at runtime

    Ah, perfect! Thanks a million!
  27. [RESOLVED] Referring to controls created at runtime

    Saw at thread yesterday named 'Buttons created with code and their events' and my issue is close to that but didn't want to hijack the thread, so...

    If i create some controls at run time (here...
  28. Replies
    0
    Views
    301

    Tooltip preview

    Sorry not sure exactly where to post this question...

    Is there a way to turn off the tool tip that shows the contained code when hovering the mouse over a collapsed procedure in the IDE? I've put...
  29. Replies
    4
    Views
    488

    Re: Datagridview with CellSelect

    Sorry for asking, John. I'll go sit on the naughty step.
  30. Replies
    4
    Views
    488

    Re: Datagridview with CellSelect

    SelectedCells, i know, thanks. But i'm not making the connection (feels like one of those days!) with iterating rows using SelectedCells...
  31. Replies
    4
    Views
    488

    Datagridview with CellSelect

    I can iterate DataGridView user selected rows like this:


    For Each dr as DataGridViewRow in Me.dGrid.SelectedRows
    'Do something with each
    Next

    ...which works fine in FullRowSelect mode....
  32. Thread: Code Folds

    by DavyEFC
    Replies
    5
    Views
    356

    VS 2019 Re: Code Folds

    As far as i can think its always been on the same machine but i couldn't really say for sure. If so that would point to something on my machine maybe, but i have nothing 'out of the ordinary' on...
  33. Thread: Code Folds

    by DavyEFC
    Replies
    5
    Views
    356

    VS 2019 Re: Code Folds

    Yeah, certainly 2017, 2015 and even further, as far back as i remember. Happens a lot to me, and seems to mainly happen when i've been moving procedures around. I do that sometimes to try to keep...
  34. Thread: Code Folds

    by DavyEFC
    Replies
    5
    Views
    356

    VS 2019 Code Folds

    Anyone any idea why my code folds keep screwing up? If so how to fix them. Not a world-ender of course but certainly annoying and i have been having this issue for a few versions of VS now... :mad:
    ...
  35. Replies
    6
    Views
    440

    VS 2019 Re: Understanding behaviour

    Perfect. Thanks again.
  36. Replies
    6
    Views
    440

    VS 2019 Re: Understanding behaviour

    So much thanks John. You may not have had the actual answer but it's because of your link in 2nd post we now have it :thumb: (I had searched high and low but not found that link)

    "aa-DJ is the...
  37. Replies
    17
    Views
    972

    Re: GoTo Statement... Better way?

    We used to get seriously 'moaned at' (can't type anything stronger here!) at Uni for using GoTo. Soon stopped when getting marked down...
  38. Replies
    6
    Views
    440

    VS 2019 [RESOLVED] Understanding behaviour

    I have some behaviour I don't understand but on only one of the many projects I have. It isn't causing an issue at all but i'd like to understand why it happens.

    Whenever i run it in debug two...
  39. Replies
    3
    Views
    434

    Re: value is never used

    Thanks for the reply.
    I think instead of saying 'var' i should have said 'object references' (such as xlApp in my example) - does the same logic apply in that case?
  40. Replies
    3
    Views
    434

    value is never used

    Bit confused...
    I always thought i should clear vars when finished with them. e.g.


    Dim xlApp as Excel. Application = CreateObject...
    Dim xlWBook as Excel.Workbook = xlApp.Workbooks.Open...
    ...
Results 1 to 40 of 45
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width