Results 1 to 7 of 7

Thread: I don't like my threads being moved.

  1. #1

    Thread Starter
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125

    Angry I don't like my threads being moved.

    Can anyone give me suggestions on how to optimize this, and what I can use it for??

    Plop this code on a form with a black background, autoredraw set to true, and a command button called command1.
    VB Code:
    1. Private Sub Command1_Click()
    2. For q = 1 To 10
    3. Cls
    4. For i = 0 To 255 Step 2
    5.   Line (i, i)-(i + i, i + i), RGB(0, 0, i), B
    6.   DoEvents
    7. Next
    8. For i = 0 To 255 Step 2
    9.   Line (i, i)-(i + i, i + i), vbBlack, B
    10.   DoEvents
    11. Next
    12. Cls
    13. For i = 255 To 0 Step -2
    14.   Line (i, i)-(i + i, i + i), RGB(0, 0, i), B
    15.   DoEvents
    16. Next
    17. For i = 255 To 1 Step -2
    18.   Line (i, i)-(i + i, i + i), vbBlack, B
    19.   DoEvents
    20. Next
    21. Next
    22. End Sub

    I don't like you martin.
    <removed by admin>

  2. #2
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Re: I don't like my threads being moved.

    Originally posted by MidgetsBro
    Can anyone give me suggestions on how to optimize this, and what I can use it for??

    Plop this code on a form with a black background, autoredraw set to true, and a command button called command1.
    VB Code:
    1. Private Sub Command1_Click()
    2. For q = 1 To 10
    3. Cls
    4. For i = 0 To 255 Step 2
    5.   Line (i, i)-(i + i, i + i), RGB(0, 0, i), B
    6.   DoEvents
    7. Next
    8. For i = 0 To 255 Step 2
    9.   Line (i, i)-(i + i, i + i), vbBlack, B
    10.   DoEvents
    11. Next
    12. Cls
    13. For i = 255 To 0 Step -2
    14.   Line (i, i)-(i + i, i + i), RGB(0, 0, i), B
    15.   DoEvents
    16. Next
    17. For i = 255 To 1 Step -2
    18.   Line (i, i)-(i + i, i + i), vbBlack, B
    19.   DoEvents
    20. Next
    21. Next
    22. End Sub

    I don't like you martin.
    what do u mean by optimize this...I can only see something like small flame in the top left corner...

    What exactly u r looking for...

  3. #3
    Hyperactive Member D12Bit's Avatar
    Join Date
    Oct 2000
    Location
    Guatemala
    Posts
    373
    is this ok?

    VB Code:
    1. Option Explicit
    2. Dim i, q, r As Integer
    3.  
    4. Private Sub Command1_Click()
    5.     r = -2
    6.     For q = 1 To 10
    7.         Cls
    8.         If r = -2 Then r = 2 Else r = -2
    9.         For i = 0 To 255 Step r
    10.           Line (i, i)-(i + i, i + i), RGB(0, 0, i), B
    11.           DoEvents
    12.         Next
    13.         For i = 0 To 255 Step r
    14.           Line (i, i)-(i + i, i + i), vbBlack, B
    15.           DoEvents
    16.         Next
    17.     Next
    18. End Sub

    and where can you use it?...I have no idea

    but I might use it to indicate that there's a process going on...just an idea
    "Who Dares Wins" - "Quien se Arriesga Gana"
    Mail me at:

  4. #4

    Thread Starter
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    Just so you know, I only posted this in question form so that martin wouldn't move it again. ugh. I was bored at work again. Try setting the scalemode to pixels on the form.
    <removed by admin>

  5. #5
    Hyperactive Member brenaaro's Avatar
    Join Date
    Sep 2001
    Location
    Montreal, Canada
    Posts
    391
    thats pretty neat..though I dont know what it would be used for
    And I, for one, welcome our new insect overlords. I'd like to remind them as a trusted TV personality, I can be helpful in rounding up others to toil in their underground sugar caves.

  6. #6
    Hyperactive Member D12Bit's Avatar
    Join Date
    Oct 2000
    Location
    Guatemala
    Posts
    373

    Talking

    LOL
    "Who Dares Wins" - "Quien se Arriesga Gana"
    Mail me at:

  7. #7
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695
    If u change the colour from to yellow and mix of red and make it like a YELLOW and mix with orange then u can use it as a GUN shot...

    When a bullet comes out of a GUN it makes a small fire and this might be useful there...

    Cheers...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width