MyVB.NetCodeExamples

channel image

MyVB.NetCodeExamples

PeterEJKeats

subscribers

If you have a large number that is the product of two prime numbers, then how do you know what those two are? This is an update to the original video, because I have managed to find a real way to do the process. It now takes less than a second!

Chilcott - Away Vain World (Tenor)

Chilcott - St John Passion - Away Vain World (SAATB)

Chilcott - St John Passion - Away Vain World (Alto1)

Chilcott - St John Passion - Away Vain World (Alto2)

Chilcott - St John Passion - Away Vain World (Bass)

If you are given a number that is the product of two prime numbers, then this will unpack it - it will give you the two factors. It takes a few minutes, because it's number crunching.

Percy Whitlock - Jesu Grant Me This, I Pray Bass

OK, so this is an update to earlier videos. I've let this one run away with me, so I'll stop - for now.
The Help text sort of tells you what's do-able.
You now have 9 circles, and each one is independent. You can make the pen thicker/thinner, and change the colour, and move them all around the screen.

using only keyboard entry, I have a circle that I can change the colour, and size of. I can also move it around the screen.

VB.Net DataGridView - Insert/Delete new rows
Using VB.Net and a DGV I can add new rows and then delete them, according to various rules.

Whitlock - Jesu Grant Me This, I Pray (Tenor)
This is recorded by OBS Studio, and created in Finale v27. For some reason my PC is bad at playing (or sounding) repeat notes.
If you look at the start, Bass bar 1 has two G notes, and the second one doesn't sound.
I have contacted their Helpdesk, and they can't recreate the issue, so, like I say, it looks to be a problem with my PC.
I have added the '>' sign (Diminuendo) over any note that falls into this category.
Please note that this is only added for stress - they do not actually appear in the original score.

I have deliberately not added pp/mf/ and other music notation - that's for the conductor to talk you through. This is an introduction to the work only.

Whitlock - Jesu Grant Me This, I Pray (Alto)
This is recorded by OBS Studio, and created in Finale v27. For some reason my PC is bad at playing (or sounding) repeat notes.
If you look at the start, Bass bar 1 has two G notes, and the second one doesn't sound.
I have contacted their Helpdesk, and they can't recreate the issue, so, like I say, it looks to be a problem with my PC.
I have added the '>' sign (Diminuendo) over any note that falls into this category.
Please note that this is only added for stress - they do not actually appear in the original score.

I have deliberately not added pp/mf/ and other music notation - that's for the conductor to talk you through. This is an introduction to the work only.

Whitlock - Jesu Grant Me This, I Pray (Sop)
This is recorded by OBS Studio, and created in Finale v27. For some reason my PC is bad at playing (or sounding) repeat notes.
If you look at the start, Bass bar 1 has two G notes, and the second one doesn't sound.
I have contacted their Helpdesk, and they can't recreate the issue, so, like I say, it looks to be a problem with my PC.
I have added the '>' sign (Diminuendo) over any note that falls into this category.
Please note that this is only added for stress - they do not actually appear in the original score.

I have deliberately not added pp/mf/ and other music notation - that's for the conductor to talk you through. This is an introduction to the work only.

Whitlock - Jesu Grant Me This, I Pray (SATB)
This is recorded by OBS Studio, and created in Finale v27. For some reason my PC is bad at playing (or sounding) repeat notes.
If you look at the start, Bass bar 1 has two G notes, and the second one doesn't sound.
I have contacted their Helpdesk, and they can't recreate the issue, so, like I say, it looks to be a problem with my PC.
I have added the '>' sign (Diminuendo) over any note that falls into this category.
Please note that this is only added for stress - they do not actually appear in the original score.

I have deliberately not added pp/mf/ and other music notation - that's for the conductor to talk you through. This is an introduction to the work only.

Using a simple example, I add new rows to a DGV.

VB.Net Display picture files directly from the web site
Show a gallery of pictures directly from the website, with no download.
This avoids having to download the files to your machine.

VB.Net - adding and deleting Controls (objects) from Forms
FOR EACH control Add and Delete...

I was experimenting with adding and deleting controls from a screen.
You absolutely CANNOT use this format:
For Each c As Control In Me.Controls
If Strings.Left(c.Name, 3) = "xxx" Then
Me.Controls.Remove(c)
c.Dispose()
End If
Next

This took me a while to work through, but the Controls list is dynamic.
If you delete one, the list is re-formatted to clear out spaces - at least I'm pretty sure that is what happens..
So you have 1,2,3,4,5,6 and you clear the first one. This immediately makes the list = 2,3,4,5,6 - but you have already looked at the first entry
and deleted it, so now you are looking at the second entry, which has a 3 in it. Item 2 is overlooked...
I could not see (initially) why only half of my deletes were happening. Like I say, it took me a while to work it out...

I am now generating a screen that lists all forms, and then all objects on each form. I am then adding them to a group box
in an attempt to let you see the screens quickly, without having to actually call each one.

VB.Net List all forms in a project and all controls on those forms
This took me some web searching and then further exploring to fine tune the code. I list every form within the project and then, if you click on the form name it will show you all of the controls on that form.

If you have complex screens, with lots of fields, it is sometimes difficult to spot which field you are actually in. If the tabidx is all over the place then it's close to impossible. With this small code you can attach a handler to the Enter and Leave events, to make the back colour yellow on entry, and reset it to white when you leave.

VB.Net, arrays of ascii and prime numbers. Take a message, encode it according to specific rules, and then unpack it back to the original.

Using vb.net I generate random x,y locations on a very large dgv

Using vb.net, I created a large DGV (170 across, 100 top to bottom) giving 17,000 very small cells. Using Random, I then generate an x,y co-ordinate and populate that cell, and the 8 cells around it. It runs with the DGV being double-buffered, but it still takes a while.

Only the first verse. See Sop video for the descant.

Only the first verse. See Sop video for descant.

SHOW MORE

Created 6 years, 6 months ago.

221 videos

Category Science & Technology

=====================
I am now retired. Well, semi-retired. It's hard to keep a developer down.... Still a VB coder - now in the enjoyable position of just playing with things - let's see if that works, or let's see if I can make that go faster (hint: I can...).
I would ideally like to work from home (wouldn't we all!) but on my terms - 2-3 days a week...?
Hertfordshire based and keen to learn new things all the time. If anyone wants to crowd fund me to around 50,000 GBP then I can take this CRM package a LOT further; until then it's something I work at in my spare time. See the updates for what I've done during this appalling farce of 2020...go on - take a look!
======================
By night I masquerade as a member of a local choir (strictly amateur, folks...) :)
The music on this site is generated from Finale, which is an excellent all-singing-all-dancing music software. Although I tend to concentrate on SATB and accompaniment (piano/organ) you can do it all. How big do you want your orchestra and choir to be...?
======================
Talking of Finale...if anyone thinks they might want to 'do' one of the pieces that I own the copyright to (works by E R H Keats) then let me know and I can supply a printed copy - unless you have your own Finale, in which case I'll just send you the .musx file.