Search:
Type: Posts; User: bmwpete
Search:
Search took 0.04 seconds.
-
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...
-
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...
-
This seems to happen because the form has not yet been fully created. Try moving the code into the shown event.
-
I am an old person, but worth asking and you also seem to know where I am going
-
Is this code in the form load event?
-
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.
-
Perhaps a 'clean' and 'Rebuild All' as it seems your source and complied binaries are out of sync.
-
Well it will do as your appending to txtBx4.text after the loop has finished using the last value in your array
-
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...
-
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...
-
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...
-
https://docs.microsoft.com/en-us/windows/win32/controls/common-controls-intro
-
If you use the BGW then you won't even need a Timer, just call your copy sub from BGW.Dowork().
-
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...
-
Thought that using the 'How to:Specify verbose log files for ClickOnce deployments' would help?
-
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
-
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...
-
Seems your missing something, check this out (last reply)https://github.com/microsoft/terminal/issues/837
-
The example given is using a connection object called 'connection' but then the code tries to use 'con'.
-
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.
-
-
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...
-
You are splitting the entire message, but you should be splitting only the first line.
-
Not sure whats best, he SHOULD go, either pushed out or preferably by resignation, but there is no obvious replacement!
-
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
...
-
dim mystring as string = $"printf '%s\n' '{TxtSend.Lines(0)}.' '{TxtSend.Lines(1)}.' '{TxtSend.Lines(2)}.' '{TxtSend.Lines(3)}.'>foo.txt"
-
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()...
-
Destination.WriteLine(mystring) appends a line terminator to whatever is presented, try using Destination.Write(mystring & vbcrlf) or Destination.Write(mystring) as necessary.
-
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...
-
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
...
-
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 =...
-
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...
-
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...
-
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...
-
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()
-
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...
-
Why not create a Sub to make the changes and simple pass in each sheet.
-
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.....
-
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: " &...
-
Comment out NotesDT.Dispose() to see if it makes any difference.
|
Click Here to Expand Forum to Full Width
|