# Search:

Type: Posts; User: Mallard8

Page 1 of 5 1

## Search: Search took 0.01 seconds.

by Mallard8
Replies
6
Views
335

### VS 2017Re: [RESOLVED] Draw polygon Adapted

Thanks for the reply John, another step forward in my vb.net knowledge.

by Mallard8
Replies
6
Views
335

### VS 2017Re: Draw polygon Adapted

Si thanks, decided now to use a picture box and show an image depending what the user has clicked circle, triangle or polygon

by Mallard8
Replies
6
Views
335

### VS 2017[RESOLVED] Draw polygon Adapted

So I'm looking around the forums and came across this sub

Public Sub DrawPoly(x As Integer, y As Integer, ByVal e As PaintEventArgs)

Dim side As Double = 50 '' the length of the...
4. ## Thread: [RESOLVED] Find the Apothem of a polygon

by Mallard8
Replies
9
Views
453

### VS 2017Re: [RESOLVED] Find the Apothem of a polygon

Boops,
Thanks for the laugh 'cough medicine' !

Tommy,
Why is it every time I think I'm not doing too bad, some one comes along with an even better way!
The thing is no matter what you think to...
5. ## Thread: [RESOLVED] Find the Apothem of a polygon

by Mallard8
Replies
9
Views
453

### VS 2017Re: Find the Apothem of a polygon

Option thanks,
No need to move to Maths forum it now works with the code corrected, that's one of the troubles with copy and paste.
x,y and z represent the different sizes the user enters for each...
6. ## Thread: [RESOLVED] Find the Apothem of a polygon

by Mallard8
Replies
9
Views
453

### VS 2017Re: Find the Apothem of a polygon

Tried suggestion by using TryParse below is the code but the answer for the triangle doesn't work out right so I figure I must have the layout for the calculation wrong?

Option Explicit On
Option...
7. ## Thread: [RESOLVED] Find the Apothem of a polygon

by Mallard8
Replies
9
Views
453

### VS 2017Re: Find the Apothem of a polygon

Thanks Boops,
I must try and get in to functions more often, I'm sure you are correct with NumericUpDown and TryParse and once I get it all working I will use NumericUpDown and I will switch to...
8. ## Thread: [RESOLVED] Find the Apothem of a polygon

by Mallard8
Replies
9
Views
453

### VS 2017[RESOLVED] Find the Apothem of a polygon

here is what I have so far

'Apothem = x / 2tan(180/y)
'txtY = 6 number of sides
'txtX = 8 Length of side

...

by Mallard8
Replies
2
Views
205

### Re: VS Community 2017 - install from local cache, "Download all, then install"?

Optional features are just that, optional so uncheck them and download the 2.48gb You can always add extras later as you create more space.
10. ## Thread: Creating a Compound Interest Calculator

by Mallard8
Replies
4
Views
264

### VS 2017Re: Creating a Compound Interest Calculator

Try this it works fine for me

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Double.TryParse(txtPrinciple.Text, principle)
...
11. ## Thread: [RESOLVED] Music note duration

by Mallard8
Replies
18
Views
894

### VS 2017Re: [RESOLVED] Music note duration

Shaggy That's terrible! although it did make me smile.
12. ## Thread: [RESOLVED] Music note duration

by Mallard8
Replies
18
Views
894

### VS 2017Re: [RESOLVED] Music note duration

Thanks to all,
Passel I think you and I are singing from the same hymn sheet re music keys etc so I'll put it to bed now.
Paul the system beeps code will play with it just for fun.
Boops the midi...
13. ## Thread: [RESOLVED] Music note duration

by Mallard8
Replies
18
Views
894

### VS 2017Re: [RESOLVED] Music note duration

Yes you are correct, maybe I should have explained better the composition I'm using is for a cornet which is tuned to Bb.
14. ## Thread: [RESOLVED] Music note duration

by Mallard8
Replies
18
Views
894

### VS 2017Re: [RESOLVED] Music note duration

Thanks Boops,
D Major does indeed have F# as well as C# if the piece is in D major but as I have said in #4 mine is in C major so F# is not needed.
I will have a go with what you have suggested...
15. ## Thread: [RESOLVED] Music note duration

by Mallard8
Replies
18
Views
894

### VS 2017Re: Music note duration

Thanks Tommy, interesting reply. I'm sure for what I'm doing the win forms timer will suffice. It's only something I'm messing with nothing monumental.
16. ## Thread: [RESOLVED] Music note duration

by Mallard8
Replies
18
Views
894

### VS 2017Re: Music note duration

Thanks Shaggy and Passel.

Passel the key is C major and the song is in it's simple form no sharps or flats, it's for beginners. Not all songs start with the key note, although I can understand why...
17. ## Thread: [RESOLVED] Music note duration

by Mallard8
Replies
18
Views
894

### VS 2017[RESOLVED] Music note duration

Dim noteArray() As String = {"D", "D", "A", "A", "B", "B", "A", "G", "G", "F", "F", "E", "E", "D"}

For...
18. ## Thread: Wage Calculator (Code not calculating)

by Mallard8
Replies
2
Views
225

### Re: Wage Calculator (Code not calculating)

What do you mean by this? the code doesn't run? the calculation doesn't show? Please explain a little more.

by Mallard8
Replies
16
Views
1,019

### VS 2017Re: [RESOLVED] Possible?

Passel I play keyboards ,Organ and piano as well, started on a trumpet many years ago.
Tommy, Can't change title although to be fair this thread did seem to take on a life of it's own!
Will look at...

by Mallard8
Replies
16
Views
1,019

### VS 2017Re: [RESOLVED] Possible?

Not quite John, it's a Brass band I play cornet :)

by Mallard8
Replies
16
Views
1,019

### VS 2017Re: [RESOLVED] Possible?

Thanks Passel will look at the link.

by Mallard8
Replies
16
Views
1,019

### VS 2017Re: Possible?

Thanks passel, will take a look at the link provided.

by Mallard8
Replies
16
Views
1,019

### VS 2017Re: Possible?

Thanks tommy will give it a go.

by Mallard8
Replies
16
Views
1,019

### VS 2017Re: Possible?

Thanks Si,
As long as it's possible that's a start and it'll give me something else to play around with, no doubt I'll be back here before long.

by Mallard8
Replies
16
Views
1,019

### VS 2017[RESOLVED] Possible?

For those who looked at my previous threads you will know that I am playing with graphics below is what I ended up with.
165179

Now, as I am in to music (play in local band) I thought it would be...
26. ## Thread: [RESOLVED] VS 2015 getting this error after showing another form

by Mallard8
Replies
12
Views
631

### Re: VS 2015 getting this error after showing another form

Ahh, another error that I get, that explains it.
27. ## Thread: [RESOLVED] VS 2015 Ending the program giving me error why?

by Mallard8
Replies
5
Views
430

### Re: VS 2015 Ending the program giving me error why?

Well I use this in one of my programs and it works no problem. Why is yours in a private sub?

Private Sub btnNewGame_Click(sender As Object, e As EventArgs) Handles btnNewGame.Click
...
28. ## Thread: [RESOLVED] VS 2015 Ending the program giving me error why?

by Mallard8
Replies
5
Views
430

### Re: VS 2015 Ending the program giving me error why?

Have you tried something like

Private Sub ExitApplication()
Application.Exit()
End Sub
29. ## Thread: [RESOLVED] Points around a circle

by Mallard8
Replies
16
Views
760

### VS 2017Re: Points around a circle

Thanks to all,
No longer use redBrush, will make names clearer and look at ditching PictureBox1 reference,
I always use Option Strict, which means I'm always getting red squiggles, sometimes I see...
30. ## Thread: [RESOLVED] Points around a circle

by Mallard8
Replies
16
Views
760

### VS 2017Re: Points around a circle

Before I mark this thread solved, is this correct? (it works)

Private Sub drawCircles(c As Graphics)
Dim x, y As Single
Dim rd As Single = 100
Dim cp As Integer =...
31. ## Thread: [RESOLVED] Points around a circle

by Mallard8
Replies
16
Views
760

### VS 2017Re: Points around a circle

Really annoyed I tried

Private Sub markCircle(g As Graphics)

g.DrawLine(Pens.Red, x1, y1, x2, y2)

markCircle(g.Graphics)
32. ## Thread: [RESOLVED] Points around a circle

by Mallard8
Replies
16
Views
760

### VS 2017Re: Points around a circle

Blast! just when I think I'm doing alright.
Not sure what to put in the () now as I have tried various things all wrong (of course) my way still works but I understand why it can't be that way.
33. ## Thread: [RESOLVED] Points around a circle

by Mallard8
Replies
16
Views
760

### VS 2017Re: Points around a circle

Just coming back to say I'd done it, with degree of satisfaction, but you got here first.

Private Sub markCircle(e As PaintEventArgs)

to call it

Private Sub markCircle(e)
34. ## Thread: [RESOLVED] Points around a circle

by Mallard8
Replies
16
Views
760

### VS 2017Re: Points around a circle

Well it didn't go as I expected I created a method for the marks and put the marks code in to it

Private Sub markCircle()
Const RADIUS_INNER As Integer = 85
Const...
35. ## Thread: [RESOLVED] Points around a circle

by Mallard8
Replies
16
Views
760

### VS 2017Re: Points around a circle

Thanks Tommy for the encouragement, so you're telling me that those marks around that clock are just an image and not programmed?

BTY; I'm not writing a clock program there are loads already out...
36. ## Thread: [RESOLVED] Points around a circle

by Mallard8
Replies
16
Views
760

### VS 2017Re: Points around a circle

Thanks John, will do that, seems obvious now you've suggested it.
37. ## Thread: [RESOLVED] Points around a circle

by Mallard8
Replies
16
Views
760

### VS 2017[RESOLVED] Points around a circle

Still playing with graphics. The code I have to show a circle with an arrow moving around like a second hand.

Original Code

Private Sub PictureBox1_Paint(sender As Object, e As...
38. ## Thread: Simple colour picker

by Mallard8
Replies
0
Views
847

### Simple colour picker

Probably one of many but I was pleased with it. Picks any colour from the screen, the colour wheel is for decoration.

Option Explicit On
Public Class Form1
Private WithEvents Timer1 As New...
39. ## Thread: [RESOLVED] Drag an image on to a form

by Mallard8
Replies
4
Views
385

### VS 2017Re: Drag an image on to a form

Thanks to you both for replying, as it turns out the thread is redundant as I found a program online called, Crescendo Music Notation Editor, it does everything and more and it's free for home use....
40. ## Thread: [RESOLVED] Drag an image on to a form

by Mallard8
Replies
4
Views
385

### VS 2017Re: Drag an image on to a form

Thanks for the pointers John.
Results 1 to 40 of 171
Page 1 of 5 1

Featured