Search results

  1. JohnH

    Question How to drag and drop files from explorer to elevated with administrator right application in Windows 10?

    The cause is UIPI security in Windows, drag-drop is not allowed between processes running in different execution levels. One workaround is to copy the files in Explorer and read clipboard in your app. You can for example listen to KeyDown event to see the Ctrl-V (keyboard paste), or use other...
  2. JohnH

    Resolved Direct Printing

    That's quite large numbers in your code, have you looked up the documentation to see what they mean?
  3. JohnH

    Resolved how to display text in a listbox?

    It is just a multiline TextBox. String with linefeeds can be assigned to Text property, or assign string array to Lines property. https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.textbox.multiline?view=netframework-4.8
  4. JohnH

    Resolved Problem with Click-Once Deployment

    Of course... I didn't notice the notice on top when I browsed directly to the setting.
  5. JohnH

    Resolved Problem with Click-Once Deployment

    My mention was about the solution posted by Stan York in that thread, navigation to that address gives me this: The solution also mentions and links to a Windows Remix ClickOnce Helper that is supposed to work with Edge and give a better experience. You can look in Extensions in Edge to...
  6. JohnH

    Resolved BinaryWriter and String variables

    No, docs says it writes the prefix as unsigned integer. I would have thought that was 4 bytes, but it actually uses its protected Write7BitEncodedInt method for this, which "Writes a 32-bit integer in a compressed format". The format is LEB128 and can use 1-5 bytes to express the prefix integer...
  7. JohnH

    Resolved Problem with Click-Once Deployment

    Newer Edge has changed engine to Chromium, browse to edge://flags/#edge-click-once and check the ClickOnce Support option, to what I read it must be set to Enabled for the ActivationUri to be passed...
  8. JohnH

    Resolved Problem with Click-Once Deployment

    Is it possible this is related to Warning Messages on publishing ? Changing platform would imply a new identity for ClickOnce.
  9. JohnH

    Question Issue with JSON POST using WebClient

    Beware of WebClient.Encoding Property (System.Net) Encoding.Default is the system's active code page. If API doc doesn't say which encoding to use I would try UTF-8.
  10. JohnH

    Resolved Strange Characters in POST WebRequest Response

    IDK, probably for POST data too.
  11. JohnH

    Resolved Strange Characters in POST WebRequest Response

    Also, if you use for example XDocument.Load directly on the response stream it should detect the right encoding from the xml declaration.
  12. JohnH

    Resolved Strange Characters in POST WebRequest Response

    StreamReader used like that reads as UTF-8 encoding. Use StreamReader(Stream, Encoding) constructor and specify Encoding.GetEncoding("gb2312")...
  13. JohnH

    Answered Help! With GetElementsByTagName("A")

    I recommend that you start with tutorials to learn the basic programming elements of the language first. Let this rest until variables and loops is not a foreign concept anymore.
  14. JohnH

    Answered Help! With GetElementsByTagName("A")

    What does firstLink has do with anything in your loop??? link is the loop variable.
  15. JohnH

    Answered Help! With GetElementsByTagName("A")

    For Each link As HtmlElement In linkElements F1 (help) on HtmlElementCollection Class (System.Windows.Forms) says "Defines a collection of HtmlElement objects". Make it a habit to use the help system in Visual Studio.
  16. JohnH

    Answered Help! With GetElementsByTagName("A")

    Question mark in immediate windows is to evaluate an expression; to see the value. It allows you to inspect values of objects so you can see what the state of the program is at the break point. For example you can use it to check the attribute before and after your code has changed it. Lets say...
  17. JohnH

    Answered Help! With GetElementsByTagName("A")

    Here you can read about how For Each...Next Statement - Visual Basic
  18. JohnH

    Answered Help! With GetElementsByTagName("A")

    LOL, I said to write this in Immediate Window, it is a debugging tool. Immediate Window - Visual Studio
  19. JohnH

    Answered Help! With GetElementsByTagName("A")

    When I looked yesterday at the page source only the last link had target _blank, while your code only checked first link. Debug, debug, debug :) Here's an example, put a break-point on line 26 (If firstLink...) and mouse over firstLink and expand it, look at InnerText to see which link you...
  20. JohnH

    Answered Help! With GetElementsByTagName("A")

    You have to be more specific. What do you mean "just returns nothing", Sub methods do not have returns. Are you referring to a line of code or a return value of a statement? Why do you expect an error message? Have you debugged the code step by step and inspected the state of variables and...
Top Bottom