Search:
Type: Posts; User: dbasnett
Search:
Search took 0.80 seconds.
-
I have a strategy I use when closing form apps that have become 'complicated'. It is built-in to our standard app template.
We define a 'Closing / Stopping' synchronization object in the form of...
-
Pass 'Me' to this method and then save the Bitmap
Private Function TakeScreenShot(ByVal Control As Control) As Bitmap
Dim tmpImg As New Bitmap(Control.Width, Control.Height)
Using g...
-
I would advise against using concatenation. Use IO.Path.Combine
var = IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "\Apps")
-
What version of .Net are you using? I was using 4.8.
This worked for me, though GetFileName is returning a directory...
'path = C:\Users\michael.basnett\AppData\Roaming
Dim...
-
I tried to emulate what you say is happening. I think this captures what you said.
Dim path As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
path =...
-
If you step through this code in the debugger you'll get some ideas. The snippet contains a link to format specifiers.
Dim doubleValue As Double = 3.5#
'...
-
-
Change the one line that loads the .rtf file to this
Me.Invoke(Sub()
rtbAT.LoadFile("D:\xxxx\tmp.rtf")
End Sub)
-
I found this in the Reference Source. Didn't seem to matter if it was Show or ShowDialog.
// MSDN: When a form is closed, all resources created within the object are closed and...
-
It is a forms application running. Net 4.8
-
So my PC is fast with a lot of cores. The code in the Load takes less than 500ms, and the code in Button1 takes less than 100ms
Public Class Form1
Private Shared prng As Random
...
-
Obviously there IS manipulation.
-
Why would you store dates as strings? Generally not a good idea.
-
Depending on the structure of the XML and uniqueness of the names you might get away with this,
'the given
Dim path As String = ""
Dim assembliesElement As XElement
...
-
Then the XML you originally showed was different. Glad it worked.
-
The assumptions
Dim path As String = ""
Dim assembliesElement As XElement
' assembliesElement = XElement.Load(path)
assembliesElement = <Job>
...
-
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.
|
Click Here to Expand Forum to Full Width
|