Search results for query: *

  • Users: JohnH
  • Content: Threads
  • Order by date
  1. JohnH

    odd VS bug Application properties

    Found an odd bug in VS today, for a .Net 6 VB project the Application tab of project properties wouldn't open, I got "an error occured trying to load the page": Same for Package tab. Wondered if it was the VS 17.2.6, but another new .Net 6 VB project worked fine. Started dissecting the one...
  2. JohnH

    Problem with counting in threads

    I have this sample structure that holds linecount of a file: Private Structure TestCount Public Property Lines As Integer Public Shared Function CountFile(file As String) As TestCount Return New TestCount With {.Lines = IO.File.ReadAllLines(file).Count} End Function...
  3. JohnH

    Multiple threads, progress in order

    Let's say there is a nested loop where each item has some processing time, each item should be reported (to UI) when finished and the items must be reported in work order. Here is pseudo code of the problem: for A for B process AB report progress AB Progress report must be in...
  4. JohnH

    an old bug and learning something new

    I have for some been getting weird exceptions from code to add items to a dictionary like this: If Not dct.ContainsKey(item.Key) Then dct(item.Key) = New List(Of String) End If Once every million operations I'm sure I got NullReferenceException before (previous VS version), but could not...
  5. JohnH

    Tip VS scrollbar in map mode

    My latest Visual Studio discovery is that vertical scrollbar can be set to map mode for quicker navigating the source code file with a visual preview, see here: How to: Track your code by customizing the scrollbar - Visual Studio | Microsoft Docs The article says bar mode is default, and I...
  6. JohnH

    controlled folder access

    Some thoughts about new Defender feature controlled folder access. Windows 10 Fall Creators Update includes a new feature for Defender called "controlled folder access", which means folders can be protected from unauthorized changes. By default it is not enabled, but enabled it will protect...
  7. JohnH

    Tip WCF service library in self-hosted console server, and test client

    This is basically an update of an old Remoting example I posted here 10 years ago, this example does the same with WCF. This VS 2015 solution contains three projects, configured as multi-startup: WCF Service Library, includes the interface and implementation for one method, GetScreen, that...
  8. JohnH

    Tip Ghostscript.Net starter troubles fixes

    I used the GhostScript.Net library in a project that needed to show images of PDF pages and ran into a couple of problems. With simple code like this I got a cryptic FormatException "Input string was not in a correct format." for some files: Imports Ghostscript.NET.Rasterizer Dim raster As New...
  9. JohnH

    Windows App Studio

    Anyone tried this? Windows App Studio - Free Tool to create apps in Windows Stores|Microsoft In short: create Windows 10 apps without programming - as advertised you can optionally extend the apps using its generated code in Visual Studio.
  10. JohnH

    Visual Studio 2015 released + VB 14 + .Net 4.6

    Visual Studio 2015 was released today, here is blog post about it MSDN Blogs and it can be downloaded here: Visual Studio - Microsoft Developer Tools VB language is now version 14: Visual Basic .NET - 14 Top Improvements in Visual Basic 14 New Language Features in Visual Basic 14 - The Visual...
  11. JohnH

    Tip Debugging as elevated admin

    Running VS non-elevated will not make debugger request elevation for the debugged app by itself. This is something I had to search a while to find, so I share this simple tip here. Maybe I should have thought of doing that myself, but I had to search a long while before I found this in a forum...
  12. JohnH

    Visual Basic 14

    Some interesting news of near future of VB language in VS 2015: Visual Basic .NET - 14 Top Improvements in Visual Basic 14 #1 'extract method' refactoring has been on my wish list for some time (and researching how to write such extension is on todo list). I usually start with unstructured...
  13. JohnH

    Automatic Title Retrieval for External Links

    MSDN library now enforces https urls. It is probably the number one learning resource that we link most to here. The old and discontinued vbSEO plugin that provides the very useful functionality "Automatic Title Retrieval for External Links" at these forums does not work for https urls (and...
  14. JohnH

    Help Viewer local help proxy problem

    Since I added a proxy server in local network I can no longer use local help (Help Viewer 1.1), viewer content will only show an error page coming from my proxy. The local help urls are 127.0.0.1 ones. Computer internet settings are set to use a wpad.dat configuration file (that also exclude...
  15. JohnH

    Tip write/edit multiple lines of code at once

    Check this out: Edit multiple lines of code at once in Visual Studio | Fiona TG This also works in VB 2010 (Express), and I never knew about it until now, so cool! :)
  16. JohnH

    visual development with touch screen

    Have any of you tried VS development with a touch screen? Laptop or desktop screen? Any experiences you want to share about that good or bad? Getting arm fatigue and stiff neck? 'Pointer' precision compared to mouse? Can everything you do with mouse be done with touch also?
  17. JohnH

    GUI naming of an operation

    I have an application that has some data/settings that is stored locally, there's also option to backup/restore which zips the data files to local/remote storage. Remote storage is used to transfer/sync data between computers at different locations. Lately I added option to put/get the backup...
  18. JohnH

    url title resolve and https

    When posting urls vBSEO usually automatically resolves the target page title and use that as link text, but https urls are never resolved.
  19. JohnH

    xcode and line numbers in Chrome

    The same issue posted here Extra Lines using SyntaxHighlighter for Chrome Only? - Stack Overflow is also seen in this forum using Chrome browser. It was also reported today in "Issues" at SyntaxHighlighter website here: Many extra lines I just started using Chrome this summer and haven't noticed...
  20. JohnH

    caspol machine vs user level

    When trusting a network share (url) at machine level the app runs ok, but when applying same trust only at user level it does not. Anyone knows why? According to documentation "The set of permissions that an assembly receives is determined by the intersection of the permission sets", so it...
Back
Top