Search:

Type: Posts; User: DavyEFC

Search: Search took 0.02 seconds.

  1. Replies
    18
    Views
    567

    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...
  2. Replies
    18
    Views
    567

    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...
  3. Replies
    18
    Views
    567

    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...
  4. Replies
    18
    Views
    567

    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)
  5. Replies
    18
    Views
    567

    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...
  6. Replies
    18
    Views
    567

    Re: Odd write permissions issue

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

    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...
  8. Replies
    18
    Views
    567

    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.
  9. Replies
    18
    Views
    567

    Re: Odd write permissions issue

    Apologies. It's "Access to the path 'path' is denied."
  10. Replies
    18
    Views
    567

    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...
  11. Replies
    18
    Views
    567

    [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...
  12. Replies
    8
    Views
    516

    Re: ProcessStartInfo

    Possibly is. Maybe someone with greater knowledge than mine may advise.
  13. Replies
    8
    Views
    516

    Re: ProcessStartInfo

    Something like:



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

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

    by DavyEFC
    Replies
    0
    Views
    400

    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?...
  15. Replies
    4
    Views
    323

    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...
  16. Replies
    4
    Views
    323

    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...
  17. Thread: vbNewLine??

    by DavyEFC
    Replies
    7
    Views
    420

    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.
  18. Thread: vbNewLine??

    by DavyEFC
    Replies
    7
    Views
    420

    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()...
  19. Thread: vbNewLine??

    by DavyEFC
    Replies
    7
    Views
    420

    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...
  20. Thread: vbNewLine??

    by DavyEFC
    Replies
    7
    Views
    420

    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...
  21. Re: Referring to controls created at runtime

    Ah, perfect! Thanks a million!
  22. [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...
  23. Replies
    0
    Views
    294

    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...
  24. Replies
    4
    Views
    478

    Re: Datagridview with CellSelect

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

    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...
  26. Replies
    4
    Views
    478

    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....
  27. Thread: Code Folds

    by DavyEFC
    Replies
    5
    Views
    344

    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...
  28. Thread: Code Folds

    by DavyEFC
    Replies
    5
    Views
    344

    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...
  29. Thread: Code Folds

    by DavyEFC
    Replies
    5
    Views
    344

    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:
    ...
  30. Replies
    6
    Views
    425

    VS 2019 Re: Understanding behaviour

    Perfect. Thanks again.
  31. Replies
    6
    Views
    425

    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...
  32. Replies
    17
    Views
    944

    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...
  33. Replies
    6
    Views
    425

    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...
  34. Replies
    3
    Views
    431

    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?
  35. Replies
    3
    Views
    431

    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...
    ...
  36. Replies
    5
    Views
    423

    Re: Textbox in graphic

    Thanks for the replies all, much appreciated :thumb:
    The issue i had was that the textbox was multi-line and painting the string to the image wouldn't have been simple enough for me (i.e. needed...
  37. Replies
    5
    Views
    423

    [RESOLVED] Textbox in graphic

    I'm writing an app that will be used for sports coaching. I have the pitch on screen, user can click to add characters, balls, equipment whatever. When done user can export the image as a graphic...
  38. Replies
    5
    Views
    1,034

    Re: RichTextBox - deselect SelectionBackColor

    Understand. Thanks to all for your help. :thumb:
  39. Replies
    5
    Views
    1,034

    Re: RichTextBox - deselect SelectionBackColor

    Tried that, but if I set it to .BlackColor then change the background to, say, Cyan then the text background is still black. I'm trying to set it, for want of a better phrase, to 'nothing'.
  40. Replies
    5
    Views
    1,034

    RichTextBox - deselect SelectionBackColor

    I've searched and seen lots of info on this but no solution, yet. Very possibly because i'm looking at it wrong. It seems simple enough an issue but I can't resolve.

    I have a RichTextBox:

    The...
Results 1 to 40 of 40



Click Here to Expand Forum to Full Width