Search:

Type: Posts; User: paulg4ije

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: how to set the size of the header as the smae as the data in streamwriter

    Isn't it just that your long header (column) names are pushing the text to the right? How does it look if you use some much shorter column names?

    190919
  2. Replies
    4
    Views
    359

    VS 2019 Re: Getting a string within a string

    Will the bit you want always be between brackets (braces)? If so, I would just do this:


    Dim TestData As String = "RPM|Cabinet - Tall - -Notch (18.000H x 1.500W) - Black - Edge: Black"
    ...
  3. VS 2022 Re: Read a text file and select certain records to be put in textboxes.

    Why not simplify things just to get started. Place your 8 textboxes on the form in the designer instead of creating them dynamically. At least that way you would know if you are reading the file...
  4. Replies
    46
    Views
    2,307

    VS 2010 Re: how convert VB6 to VB2010 code?

    https://learn.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/data-types/how-to-declare-a-structure
  5. Replies
    2
    Views
    443

    Re: Close window message

    What happens when you start Word from Windows? It looks like your copy of Office 2010 is not activated.
  6. Replies
    6
    Views
    644

    VS 2022 Re: HTTP POST using an API

    Thanks for your input. I have just tried some quite different code but I'm getting the same response so I'm beginning to think there really is an issue with my Key. I will look into postman.
  7. Replies
    6
    Views
    644

    VS 2022 Re: HTTP POST using an API

    The string is fine. Really, the question is, does my code comply with the requirements of the API? I was hoping someone familiar with HTTP POST might be able to tell me if I'm doing something wrong....
  8. Replies
    6
    Views
    644

    VS 2022 Re: HTTP POST using an API

    Not sure I know how to examine the PostData. ToString only shows "System.Net.Http.StringContent". Hovering over a breakpoint, I can look at Non-Public members > Content with IEnumerable Visualizer...
  9. Replies
    6
    Views
    644

    VS 2022 HTTP POST using an API

    I am trying to use an API to insert a new record into my online ham radio logbook. Here is the documentation for the API:

    API END POINT
    Requests should be made to https://logbook.qrz.com/api
    ...
  10. Replies
    8
    Views
    925

    VS 2022 Re: Imports appearing that I didn't add

    Thanks both.
  11. Replies
    8
    Views
    925

    VS 2022 Re: Imports appearing that I didn't add

    No-one else had this "issue"? I'm using the latest Visual Studio Community edition which I keep up to date. I have definitely done nothing that would require these phantom imports. It's happened in...
  12. Replies
    8
    Views
    925

    VS 2022 Re: Imports appearing that I didn't add

    Fair enough, but I wonder why they are being added in the first place?
  13. Replies
    8
    Views
    925

    VS 2022 Imports appearing that I didn't add

    I've been googling this but not getting a definitive answer. Why are imports that I didn't add appearing at the top of my form code? They are "greyed out" and hovering over them displays "IDE0005:...
  14. VS 2022 Re: Retain My.Settings values when copying a project

    Well you live and learn, as they say. I knew that user-scoped settings would be in the users appdata folder but didn't think that would be the case whilst running in the IDE. Turns out, it is! I have...
  15. VS 2022 [RESOLVED] Retain My.Settings values when copying a project

    Where are my.settings stored when running in the IDE (design mode)? If I make a copy of a complete solution folder and rename it, all my.settings revert to default values. I would like to copy those...
  16. VS 2022 Re: [RESOLVED] Playing "hunt the REGEX" with Google Bard

    Thanks again.
  17. VS 2022 Re: Playing "hunt the REGEX" with Google Bard

    That works! Many thanks for your help.
  18. VS 2022 Re: Playing "hunt the REGEX" with Google Bard

    This looked promising but it fails to match a string that contains a forward slash. e.g. 1AAAA/P

    Any further thoughts?
  19. VS 2022 Re: Playing "hunt the REGEX" with Google Bard

    Thanks for replying Paul. That's not quite there. The string must contain at least 1 number, at least 1 uppercase letter (it will never contain lowercase letters if that helps) and may optionally...
  20. VS 2022 [RESOLVED] Playing "hunt the REGEX" with Google Bard

    I am trying to write some "simple" Regex to match a string that contains at least one uppercase letter, at least one number and may contain a forward slash but no other symbols. The string may start...
  21. VS 2019 Re: Copy Image (PictureBox)to clipboard as in "Ctrl -C"

    I'm not sure what else to tell you. The code works for me and doesn't need the import. Those errors suggest that something is broken. You could try creating a new project with just a PictureBox and a...
  22. VS 2019 Re: Copy Image (PictureBox)to clipboard as in "Ctrl -C"

    Your code works perfectly for me in a test project targetting .Net Framework 4.8. It works the same with or without the import. Are you using .NET Framework?
  23. VS 2017 Re: Include png file in executable

    Try omitting the .png extension. e.g.


    O_PICTURE.Image = My.Resources.O
  24. Replies
    4
    Views
    1,383

    VS 2022 Re: Missing toolbar above code window

    That was it. Thank you. I must have turned it off by accident.
  25. Replies
    4
    Views
    1,383

    VS 2022 Missing toolbar above code window

    I'm gradually getting used to Visual Studio 2022 (Community). One thing I'm missing is the toolbar at the top of the code window that had drop-down lists of events available on a particular control....
  26. Replies
    9
    Views
    1,193

    Re: [RESOLVED] Problem measuring text length

    Glad you got it sorted out.
  27. Replies
    9
    Views
    1,193

    Re: Problem measuring text length

    It still works for me with a wide RichTextBox and longer text. Are you sure you are passing the correct control to the function? Don't ask how I found that potential issue ;-)
  28. Replies
    9
    Views
    1,193

    Re: Problem measuring text length

    Your code seems to work for me, although the text might be just a smidge left of centre.
  29. VS 2019 Re: How to change "Display text" of LinkLabel

    You could just place another LinkLabel on top of your existing LinkLabel with the test set to "Click here":

    Private Sub LinkLabel1_LinkClicked(sender As Object, e As...
  30. Re: set the max and min value of a NumericUpdown using code

    Don't forget April and September. Why not use a DateTimePicker which takes care of all that for you? If you must use a NumericUpDown control just change the Maximum value:


    If...
  31. Replies
    11
    Views
    1,198

    VS 2008 Re: Sending Email Problem

    Not sure I can offer much more help. This is the code I have used to send emails (but not via Gmail). It looks very similar to yours:


    Dim mail As New MailMessage

    mail.From = New...
  32. Replies
    11
    Views
    1,198

    VS 2008 Re: Sending Email Problem

    Do you have 2-step verification and an app password for the Gmail account?
  33. Replies
    4
    Views
    1,179

    Re: Sending mail failure on VB.NET 2019

    Sign in to the relevant Google account and go to "Security". Turn on "2-step verification" and then click on "App passwords".
  34. Replies
    5
    Views
    512

    Re: Make CommonDialog filename non-editable

    Quite possibly. It's been a while since I did any VB6 ;-)

    Thanks for the other suggestions too.
  35. Replies
    5
    Views
    512

    Make CommonDialog filename non-editable

    Is there a way to make the CommonDialog filename non-editable, whilst retaining the folder browsing side of things. In other words, I want to allow the user to browse to a folder to do a "save as"...
  36. Replies
    7
    Views
    1,049

    Re: Why can't I hide Form1 ?

    If you move all your form1 code to the Activated event rather than load it will work. Bear in mind that closing form2 will not close the project.
  37. Re: conversion from string to integer is not valid

    Start by taking out the Try - Catch - End Try block so at least you will see which line is causing the error.
  38. Replies
    21
    Views
    3,383

    Re: No VS2022 desktop icon

    I thought it went without saying that your path would be to a 2022 folder rather than 2017 ...
  39. Replies
    21
    Views
    3,383

    Re: No VS2022 desktop icon

    In VS 2017 the shortcut is to:

    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe

    It might be the same in 2022.

    Also, did you run the install as...
  40. Replies
    3
    Views
    808

    Re: Print all Form content

    Looks like I'm doing your Googling for you today ;-)

    Any reason you can't add Visual Basic PowerPacks to your project? It's easy via a NuGet package. Then you could do this:
    ...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width