Search:

Type: Posts; User: bmwpete

Page 1 of 5 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    7
    Views
    853

    Re: Download from a website not completing?

    Your Do/Loop will only perform one read, try something like this,



    Using writeStream As New FileStream(Sourcepath, FileMode.Create)
    Dim readBytes(4096) As Byte
    Dim bytesread As...
  2. Thread: Bug in VB!!

    by bmwpete
    Replies
    9
    Views
    765

    Re: Bug in VB!!

    Not sure if its right to call it a bug, probably best to consider when the controls are created and available for use, which is after the form has been created. Seen this happen with trying to set...
  3. Thread: Bug in VB!!

    by bmwpete
    Replies
    9
    Views
    765

    Re: Bug in VB!!

    This seems to happen because the form has not yet been fully created. Try moving the code into the shown event.
  4. Thread: Bug in VB!!

    by bmwpete
    Replies
    9
    Views
    765

    Re: Bug in VB!!

    I am an old person, but worth asking and you also seem to know where I am going
  5. Thread: Bug in VB!!

    by bmwpete
    Replies
    9
    Views
    765

    Re: Bug in VB!!

    Is this code in the form load event?
  6. VS 2022 Re: How to add data to SQL table once timer is done counting down?

    Could just be a typo in the post but your command parameter name in the values list is showing @Tets_SN NOT @Test_SN as defined.
  7. Re: Query returns value from wrong column of the table

    Perhaps a 'clean' and 'Rebuild All' as it seems your source and complied binaries are out of sync.
  8. VS 2019 Re: To Extract Lines with Strings in Array in MultiLine Textbox it displays only last

    Well it will do as your appending to txtBx4.text after the loop has finished using the last value in your array
  9. Re: Listbox User Names from XML file (same first and last name issue)

    I assume by Listbox you mean a Listview control. If that's the case why not add another column to store the UID field, this column can be hidden and when the username is selected simply retrieve the...
  10. VS 2013 Re: View reports on browser designed in vb.net and sql server

    What sort of file does your print process create?. If you can output a .PDF file, the easiest solution would be to email this directly to the customer, from where they can do whatever they want with...
  11. Re: Operation Must Use an updateable Query

    From what I read it appears your error will become apparent where you do not have permission to update the file, which would apply in your case if you have installed on another machine. I am also not...
  12. Thread: VB6 exe

    by bmwpete
    Replies
    22
    Views
    2,718

    Re: VB6 exe

    https://docs.microsoft.com/en-us/windows/win32/controls/common-controls-intro
  13. Replies
    22
    Views
    3,834

    Re: Can't start timer.

    If you use the BGW then you won't even need a Timer, just call your copy sub from BGW.Dowork().
  14. VS 2019 Re: Courses Or Tutorials On ASP, VB .Net and Web Forms?

    Some years ago (2014),I wanted to develop a website from which I could provide download/maintenance options for users of my VB application, and was faced with similar problems of where to start. So...
  15. Replies
    3
    Views
    712

    Re: ClickOnce Root Element Missing

    Thought that using the 'How to:Specify verbose log files for ClickOnce deployments' would help?
  16. Replies
    3
    Views
    712

    Re: ClickOnce Root Element Missing

    Don't use ClickOnce myself but found this which might help https://docs.microsoft.com/en-us/visualstudio/deployment/troubleshooting-clickonce-deployments?view=vs-2022
  17. Re: Reset invoice number for every new year vb.net

    Further to what has already been said, Invoice numbers are unique identification numbers assigned to invoices. In the UK, there is no legal requirement for how they are formatted, however, it is...
  18. Replies
    3
    Views
    900

    Re: Missing files in VS2019

    Seems your missing something, check this out (last reply)https://github.com/microsoft/terminal/issues/837
  19. Replies
    8
    Views
    1,531

    Re: IndexOutOfRangeException from DataReader

    The example given is using a connection object called 'connection' but then the code tries to use 'con'.
  20. Thread: Increment

    by bmwpete
    Replies
    9
    Views
    1,246

    Re: Increment

    You say the data is refreshed after 5mins, what is the source of that data?, that's where you can determine if a change has occurred and set the background colour as appropriate.
  21. Replies
    7
    Views
    1,190

    VS 2019 Re: Ways To Get Data From Users?

    Do you have a website?
  22. Thread: Splite Line

    by bmwpete
    Replies
    8
    Views
    1,406

    VS 2015 Re: Splite Line

    You have shown the message as a number of lines, so try splitting the message into an array first,


    Dim MessageLines() As String = Split(packet.Message, vbCrLf)

    Then process the first line...
  23. Thread: Splite Line

    by bmwpete
    Replies
    8
    Views
    1,406

    VS 2015 Re: Splite Line

    You are splitting the entire message, but you should be splitting only the first line.
  24. Thread: Whither Boris?

    by bmwpete
    Replies
    21
    Views
    2,070

    Poll: Re: Whither Boris?

    Not sure whats best, he SHOULD go, either pushed out or preferably by resignation, but there is no obvious replacement!
  25. Replies
    9
    Views
    2,453

    Re: DataGridView quantity not adding up

    Private Sub BtnTapsi_Click(sender As Object, e As EventArgs) Handles BtnTapsi.Click
    Dim CostOfItem As Double = 60.0
    For Each row As DataGridViewRow In DataGridView1.Rows
    ...
  26. Re: Move values from a textbox multiline to another textbox

    dim mystring as string = $"printf '%s\n' '{TxtSend.Lines(0)}.' '{TxtSend.Lines(1)}.' '{TxtSend.Lines(2)}.' '{TxtSend.Lines(3)}.'>foo.txt"
  27. Replies
    19
    Views
    2,606

    VS 2015 Re: Windows Forms Stream Reader Problem

    Dim Source As New StreamReader(Sfile)
    Dim Destination As New StreamWriter(Dfile, True)
    Do While Source.Peek() >= 0
    Destination.WriteLine(Source.ReadLine())
    Loop
    Destination.Close()...
  28. Replies
    19
    Views
    2,606

    VS 2015 Re: Windows Forms Stream Reader Problem

    Destination.WriteLine(mystring) appends a line terminator to whatever is presented, try using Destination.Write(mystring & vbcrlf) or Destination.Write(mystring) as necessary.
  29. VS 2019 Re: Importing CSV Fields - How To Select CSV Fields In Listbox To Map Import Fields?

    Think I would have two listviews

    Listview 1 would have rows holding each default column names.

    1. Present the first two lines of data from the user selected import file.

    2. Allow the user...
  30. Thread: Adding Value

    by bmwpete
    Replies
    6
    Views
    1,935

    VS 2010 Re: Adding Value

    Be aware that any variables declared within a Sub or Function are only within the 'Scope' of that Sub or Function. You have e.g.


    Dim Fiji_Wins As Integer = 0
    Dim Tonga_Wins As Integer = 0
    ...
  31. Replies
    18
    Views
    5,505

    Re: vb.net write color name to file and recall

    Does this help, you should be saving the name returned in your color variable in both the file and the associated checkbox .tag, not the color variable itself,


    Dim ClickedColor As Color =...
  32. Re: the process cannot access the file because it is being used by another process

    Two points you may consider relevant.

    1. The documentation https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.filesystem.kill?view=net-5.0 states in the Remarks section, Security...
  33. Replies
    4
    Views
    925

    Re: Distrition of a vb 2019 applicazione

    Take a look at the Application Class documentation which will provide paths specific to the application and user folder e.g.if you place the text file in the same folder as the executable you can use...
  34. Replies
    6
    Views
    1,774

    Re: Image retrieve from SQL DB

    Following on from Jmc's comment above, is you will need to debug the code and check what is happening when you perform that action. Somewhere you are failing to provide an argument to a function or...
  35. Replies
    6
    Views
    1,774

    Re: Image retrieve from SQL DB

    You have presumably saved the image to your database as a byte array, but you have only declared img as a single byte, this should be,

    Dim img As Byte()
  36. Replies
    6
    Views
    1,140

    Re: InvalidCastException

    As pointed out by JM the error message reports 'Unable to cast object of type 'System.String', so either you are looking at the wrong column in your data OR you have NOT written the correct data to...
  37. VS 2015 Re: working with multiple worksheets in an EXCEL workbook at one time

    Why not create a Sub to make the changes and simple pass in each sheet.
  38. Re: VISUAL STUDIO 2017 how can i to get specific number or name from a long string?

    It was a such a pity that ChrisE did not tell you where he put that string in order to use his suggested solution, oh wait he did.....
  39. VS 2019 Re: Updating a rich text box fast the first time slow after that....

    Think I would try appending to a local string variable and finally set that to S_NotesRTB.Text e.g.



    Dim LineDataIn As String

    ' Loop your data

    LineDataIn += "Created On: " &...
  40. VS 2019 Re: Updating a rich text box fast the first time slow after that....

    Comment out NotesDT.Dispose() to see if it makes any difference.
Results 1 to 40 of 182
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width