Search:

Type: Posts; User: wingers

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Re: Get username of current logged on user from app running as admin or service

    solved with answer on another forum - https://docs.microsoft.com/en-us/answers/questions/848695/get-username-or-profile-path-of-current-logged-on.html
  2. Re: Get username of current logged on user from app running as admin or service

    No, doesn't work i'm afraid - when running app as Admin they come back as Administrator and c:\users\administrator rather than wingers and c:\users\wingers
  3. [RESOLVED] Get username of current logged on user from app running as admin or service

    Hi

    I need to be able to get the username (or profile path) of the currently logged on user from my app which may be running either as admin or a service running under system account

    I have...
  4. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    Ignore me - glitch my side, should learn to read properly!!
  5. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    That doesn't seem to work as just returning Nothing

    179370
  6. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    Quick related question

    I am struggling (for some reason) to be able to retrieve a specifc value from the IEnumerable when matching another value

    In english based on image in first post - I want...
  7. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    I hope so, has taken some time, and getting this bit working was hopefully the last major hurdle
  8. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    Yes it displays the tree and then in the background it calculates the sizes of each folder (and its contents) from the information held in the nodes IEnumerable


    totalsum =...
  9. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    I am using a third party control - DevExpress TreeList as more customizable for my needs.

    It is loading the levels of the filesystem "on demand" so to speak using what DevExpress called Virtual...
  10. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    I think it is because it is looping through that sub many times in my code to then add folder structure to a tree
  11. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    Thanks

    Doing it that way seems to be much slower than just adding \ to end of path if not already got one

    Running it with your new LINQ code took 21 seconds to run and populate my TreeList,...
  12. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    :)

    To explain fully (for future reading) my last comment

    The below worked fine when "path" was "C:\" or "C:\Windows\" but doesn't work if it is "C:\Windows" e.g. if no \ on end


    Dim dirs As...
  13. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    No problem at all, have spent weeks working with it now and those project and the author were very helpful

    Ah yes, sorry forgot I had used it in example project

    Oddly enough even though the...
  14. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    Yes so far I have found it to be quite reliable, certainly so much quicker than using any of the System.IO methods. I spent ages testing all of the different ways of enumerating my C: drive, some...
  15. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    Okay from initial testing that may well have solved my problem. How would I amend below so the resulting list is in alphabetical order please?


    Dim dirs As List(Of String) =...
  16. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    @Inferrd - sorry posted my explanation at same time as you replied - thanks I will give that a try
  17. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    So to explain further

    It correctly gets directories that just have Attributes of Directory e.g.

    179357

    But it doesn't get those which has multiple Attributes that include Directory e.g.
    ...
  18. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    I think I did put why it failed - "it is missing some directories where Attributes contains more than just Directory e.g. C:\ProgramData has Attributes shown as "Hidden Or Directory Or...
  19. VS 2019 Extracting specific information from an IEnumerable using LINQ?

    I have an IEnumerable which contains file and directory information - example below of its contents:-

    179352

    I want to extract specific information from this IEnumerable and am assuming LINQ is...
  20. Re: Best way to handle licencing, trial versions, activation etc for my app

    Thanks jmcilhinney - very handy to know, I had stumbled across that latter and it does look good. Also found https://www.treekslicensinglibrary.com/ and...
  21. Best way to handle licencing, trial versions, activation etc for my app

    I created an app which I intend to sell, which is not something I have done before, most of my previous tools were freebies, or designed directly for clients internal use.

    Can anyone give me...
  22. Replies
    124
    Views
    131,510

    Re: Populate TreeView with Active Directory objects

    Amended version of original project with ability to show groups as well as containers/OUs - which is something I needed for my project

    As per example form checkboxes to set Boolean of true or...
  23. SQLite Async and any other performance tips

    Hi
    Been using SQLite for a app I have created and getting on okay with it

    Just can't find much documentation relating to Async usage of it and wondered if any SQLite experts around here who can...
  24. Re: Error: "Cross-thread operation not valid: Control 'TextBox1' accessed from a...."

    Thank you both very much for your responses - that works perfectly

    @jmcilhinney - sorry I didn't read your codebank thread fully - appreciate your time
  25. Re: Error: "Cross-thread operation not valid: Control 'TextBox1' accessed from a...."

    Okay thanks - that makes sense - based on my code above any clues as to how I can perhaps get this working?
  26. Re: Error: "Cross-thread operation not valid: Control 'TextBox1' accessed from a...."

    @techgnome

    Yes I get the logic of WHY - just not the HOW to fix it - I will need to be making changes to lots of fields on main form when I finish the app, and instead of just one line i.e....
  27. Re: Error: "Cross-thread operation not valid: Control 'TextBox1' accessed from a...."

    @jmcilhinney

    Thanks - yes I had found your article actually when googling, I understand why but still not sure how to fix it - seems a lot of extra code needed just to write to a textbox?!
  28. Error: "Cross-thread operation not valid: Control 'TextBox1' accessed from a...."

    Hi guys

    Getting this error when trying to change text on a textbox on my form

    "Cross-thread operation not valid: Control 'TextBox1' accessed from a thread other than the thread it was created...
  29. Replies
    95
    Views
    90,223

    Re: Enhanced VB Tabbed Web Browser

    Hi

    I know this thread is a few years old but I had been searching for code to show IE favorites in a treeview and out of all the ones I tried - yours was the only one which worked perfectly for...
  30. VS 2013 Re: Retrieving CPU/Motherboard temp/voltages/fan speeds etc

    Thanks for your reply - yes I thought this was going to be a difficult on - that is why the SDK's from places such as CPUID sell for 1000 euros!
  31. VS 2013 Retrieving CPU/Motherboard temp/voltages/fan speeds etc

    Hi

    I would like to be able to find a way to retrieve CPU/Motherboard temp/voltages/fan speeds etc - i.e. in the same way as various utils such as HWinfo does

    Any clues as to how this can be...
  32. VS 2013 Re: anyway of detecting what wireless security is being used i.e WPA2, WEP, open etc

    gave up trying to understand native wifi API, as seemed to be returning wrong information on some Windows 8.1 machines

    So went for my original idea of parsing result from netsh wlan show interface...
  33. VS 2013 Re: anyway of detecting what wireless security is being used i.e WPA2, WEP, open etc

    Right, it appears the reason I am getting multiple results returned, is that the code is showing me encryption state of all networks it can see - where I want to just see encryption type (and SSID,...
  34. VS 2013 Re: anyway of detecting what wireless security is being used i.e WPA2, WEP, open etc

    Think I may have found it - had never use the object browser before, very handy
    Thanks again for all your help and pointing me in the right direction, at least I have something to play with now
  35. VS 2013 Re: anyway of detecting what wireless security is being used i.e WPA2, WEP, open etc

    Thanks, that makes sense

    Still confused as to why it comes back with four different results for one card (AES,AES,None,AES) - would be nice just to get the one result for the current connection to...
  36. VS 2013 Re: anyway of detecting what wireless security is being used i.e WPA2, WEP, open etc

    Okay that seems to sort of work - but it gives me back 4 results on a laptop with only 1 wireless card/connection and none of them seem to tally with what the connection is - i.e. it comes back AES...
  37. VS 2013 Re: anyway of detecting what wireless security is being used i.e WPA2, WEP, open etc

    Thanks Joacim - for some reason though it was going to be more complex than that - will have a go now!!
  38. VS 2013 Re: anyway of detecting what wireless security is being used i.e WPA2, WEP, open etc

    Another way I could do it perhaps...

    The command netsh wlan show interfaces shows the authentication of current connection i.e. WPA2-Personal

    So perhaps I could pull the information from this...
  39. VS 2013 Re: anyway of detecting what wireless security is being used i.e WPA2, WEP, open etc

    Thanks for your replies - think I need to do some reading then as looks quite complex - was hoping for an easier way to just pick up security used for current connection, sounds like that isn't going...
  40. VS 2013 Re: anyway of detecting what wireless security is being used i.e WPA2, WEP, open etc

    The app I am creating is to perform "health checks" on my customers PC - it is basically automating a lot of things I check manually - so currently it checks what AV is installed, and whether enabled...
Results 1 to 40 of 73
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width