Perhaps a simple demo of what .Net and it's components look like once installed. Maybe making a "form" that has a command button to run and counts to 1000 in a textbox? Show the date and time it started/completed and how many milliseconds it ran? Maybe in the different languages in the development and debugging environments?
Kevin Robertson
@Reply 5 months ago
I used a List Box to count to 1,000 and I am displaying the Time Taken in milliseconds.
Kevin Robertson
@Reply 5 months ago
Kevin Robertson
@Reply 5 months ago
I added Start Time and End Time
Thomas GonderOP
@Reply 5 months ago
Now make a video of what you did from A-Z so we can see .Net differs from Access?
Has the grouping I've made helped?
Anything else you need?
Thomas GonderOP
@Reply 5 months ago
I only watched the Intro to Beginner 0, I think it's making a bit more sense now. Thanks for doing that. The order of "next" things seems a bit confusing though. Why is 2 before 1?
' Let the UI paint (non-blocking)
Await Task.Delay(1)
' --- Timing ---
Dim watch As Stopwatch = Stopwatch.StartNew()
Dim startTime As Date = Date.Now
TxtStartTime.Text = startTime.ToString("HH:mm:ss")
' --- Build data OFF the UI thread ---
Dim numbers As List(Of Long) = Await Task.Run(Function()
Dim list As New List(Of Long)(CInt(Math.Min(Integer.MaxValue, (maxNum - minNum + 1))))
For x As Long = minNum To maxNum
list.Add(x)
Next
Return list
End Function)
' --- Update UI in a tight batch ---
LstNumbers.BeginUpdate()
Try
For Each n As Long In numbers
LstNumbers.Items.Add(n)
Next
Finally
LstNumbers.EndUpdate()
End Try
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
What is .NET?.