Search:
Type: Posts; User: dbasnett
Search:
Search took 0.22 seconds.
-
Here is a little example. I have a button and label on a form.
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim lblPos As Point =...
-
Which RFID reader? Post a link please.
-
A gimmeee
Private Shared Generator As New Random 'once and only once
Public Function GetRandom(ByVal Min As Integer, ByVal Max As Integer) As Integer
Return Generator.Next(Min,...
-
-
Are you manually positioning / remembering the location of the forms? I've done that and had the user remove monitors with a form on it.
-
They were given code in the form of .DLLs. Not sure what they code have learned by de-compiling and we all work for the same organization if you go far enough up the food chain.
Can you recommend...
-
So my first test didn't work, but this did.
DLL1
Namespace MOON
Public Class FOO
Public myName As String = "FOO"
End Class
End Namespace
-
Do you have an example of how you want it to look because I'm not sure what you want.
-
In the Namespaces documentation I came across this, "Multiple assemblies can use the same namespace. Visual Basic treats them as a single set of names. For example, you can define classes for a...
-
Yes it was. Better than if it had gone the other way.:check:
-
Thanks for the kind words.
-
Not sure I see the distinction. I don't want the other devs in the House / Senate to see source.
-
There was a time when that would have been relevant and ignored. Better living through chemistry.
-
What follows will not be a surprise to long term members. My first serial port program in .Net (2.0) was to interpret GPS NMEA sentences. The device I had transmitted sentences on a continuous...
-
We are in the beginning stages of a complete re-write of all systems owned by the Missouri Revisor of Statutes.
The current systems were written in a little over a year and is always the case,...
-
And this code RS232_ReadByte(1000)? In the data received event handler you have this, If Not (e.EventType = SerialData.Eof) Then. Why? Does the device send x1A for control purposes?
Are you...
-
So Me.StatusUpdate is also checking for Me.InvokeRequired? You said,"Narrow down to this line when it gets stuck: Me.BeginInvoke(New UpdateUI_Delegate(AddressOf PopulateForm))", and I find that...
-
There is a lot missing from the code posted. Like what is ATEData and where is it being populated? What is Me.StatusUpdate? In the data being received can you have a x1A character?
Try your...
-
For this probably not, not sure if there is even a difference.
-
The kludgey way
Private Sub Form1_Shown(sender As Object, e As EventArgs) Handles Me.Shown
Dim lns() As String = My.Resources.StatesAndCapitals.Split({ControlChars.Cr})
Dim...
-
Not in the code you posted does it.
-
As far as the numbers representing a Boolean I follow the remarks here.
Some code to illustrate flag manipulation based on CheckBox checked. I added other flags for testing. See Button3.
...
-
What if you have two monitors with different resolutions?
-
Since you didn't show code I'll guess that you are using Process.Start and storing the Process. Each process has an ID. Using Resource Monitor you can see each process and it's ID.
-
Why not use the program that launched??? the executables as a monitor? Show the code that does the launching. Please.
-
A very old thread marked as Resolved. Here's a thought, create a New Thread.
-
They are small, but overall threading is the way to go. After one thread has read a block of data and is writing it to disk another thread could be reading a block of data for another file. I agree...
-
Test copying remote files to local machine.
Dim iPath As String = "\\someserver\_LRSys_\PubDocs\2018\sections"
Dim oPath As String =...
-
That surprises me. I say that because a download is more than the actual transfer. But maybe a test is in order...
-
Another possibility would be Parallel.ForEach.
Private Async Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim URLs As New List(Of String) From...
-
For the collection of URL's use a ConcurrentQueue. The act of removing will alleviate the concurrency concern.
-
Another approach, create a method to accomplish what you want.
Private Sub AddLine(FileName As String, lineCount As Integer)
If Me.InvokeRequired Then
Me.Invoke(Sub()
...
-
Not sure why but that has been my experience also. Way back when I chased it for a short period of time but ended up being OK with the behavior.
-
It seems to me that I have used this sequence,
xlWb.Save()
xlWb.Close(SaveChanges:=False) 'close WB
xlApp.Quit()
xlApp = Nothing
xlWb = Nothing
...
-
It would be interesting to see the 'telnet' code. Also post a link to the protocol of the data coming from the device.
-
2kaud is correct,
Dim d As Double
d = Math.Log(0.156#)
' d = -1.8578992717326
'Wolfram Alpha answer
' ...
-
Have you tried using IO.Directory.Delete? In the Catch you could use debugging to find issue....
Try
IO.Directory.Delete("path here")
Catch ex As Exception
...
-
In this example I created some values to use. Once I had those I created your output using StringBuilder.
' Sample values
' Define the size of the array
Const rows As...
-
You were given two suggestions. Here they are,
Public Class Form1
'process 1 was added in the Form designer
Private Sub Process1_Exited(sender As Object, e As EventArgs) Handles...
-
I ran this as a test. Note the comments for the results. The input folder is 327 MB.
Public Class Form1
Private Async Sub Button1_Click(sender As Object, e As EventArgs) Handles...
|
Click Here to Expand Forum to Full Width
|