dcsimg

Search:

Type: Posts; User: Mallard8

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    335

    VS 2017 Re: [RESOLVED] Draw polygon Adapted

    Thanks for the reply John, another step forward in my vb.net knowledge.
  2. Replies
    6
    Views
    335

    VS 2017 Re: Draw polygon Adapted

    Boops thanks, made it easier

    Si thanks, decided now to use a picture box and show an image depending what the user has clicked circle, triangle or polygon
  3. 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. Replies
    9
    Views
    453

    VS 2017 Re: [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. Replies
    9
    Views
    453

    VS 2017 Re: 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. Replies
    9
    Views
    453

    VS 2017 Re: 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. Replies
    9
    Views
    453

    VS 2017 Re: 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. 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

    ...
  9. 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. Replies
    4
    Views
    264

    VS 2017 Re: 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. Replies
    18
    Views
    894

    VS 2017 Re: [RESOLVED] Music note duration

    Shaggy That's terrible! although it did make me smile.
  12. Replies
    18
    Views
    894

    VS 2017 Re: [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. Replies
    18
    Views
    894

    VS 2017 Re: [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. Replies
    18
    Views
    894

    VS 2017 Re: [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. Replies
    18
    Views
    894

    VS 2017 Re: 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. Replies
    18
    Views
    894

    VS 2017 Re: 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. Replies
    18
    Views
    894

    VS 2017 [RESOLVED] Music note duration

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Dim noteArray() As String = {"D", "D", "A", "A", "B", "B", "A", "G", "G", "F", "F", "E", "E", "D"}

    For...
  18. 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.
  19. Replies
    16
    Views
    1,019

    VS 2017 Re: [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...
  20. Replies
    16
    Views
    1,019

    VS 2017 Re: [RESOLVED] Possible?

    Not quite John, it's a Brass band I play cornet :)
  21. Replies
    16
    Views
    1,019

    VS 2017 Re: [RESOLVED] Possible?

    Thanks Passel will look at the link.
  22. Replies
    16
    Views
    1,019

    VS 2017 Re: Possible?

    Thanks passel, will take a look at the link provided.
  23. Replies
    16
    Views
    1,019

    VS 2017 Re: Possible?

    Thanks tommy will give it a go.
  24. Replies
    16
    Views
    1,019

    VS 2017 Re: 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.
  25. 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. Re: VS 2015 getting this error after showing another form

    Ahh, another error that I get, that explains it.
    Glad you got it sorted.
  27. 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. Re: VS 2015 Ending the program giving me error why?

    Have you tried something like

    Private Sub ExitApplication()
    Application.Exit()
    End Sub
  29. Replies
    16
    Views
    760

    VS 2017 Re: 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. Replies
    16
    Views
    760

    VS 2017 Re: 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. Replies
    16
    Views
    760

    VS 2017 Re: Points around a circle

    Really annoyed I tried

    Private Sub markCircle(g As Graphics)


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

    but then did this thinking it had to follow through.

    markCircle(g.Graphics)
  32. Replies
    16
    Views
    760

    VS 2017 Re: 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. Replies
    16
    Views
    760

    VS 2017 Re: 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. Replies
    16
    Views
    760

    VS 2017 Re: 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. Replies
    16
    Views
    760

    VS 2017 Re: 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. Replies
    16
    Views
    760

    VS 2017 Re: Points around a circle

    Thanks John, will do that, seems obvious now you've suggested it.
  37. 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. 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. Replies
    4
    Views
    385

    VS 2017 Re: 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. Replies
    4
    Views
    385

    VS 2017 Re: Drag an image on to a form

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



Featured


Click Here to Expand Forum to Full Width