Really need help, I will Pay!

Discussion in 'Programming General' started by TeKnOfY, Feb 28, 2010.

Really need help, I will Pay!
  1. Unread #1 - Feb 28, 2010 at 9:29 AM
  2. TeKnOfY
    Joined:
    Oct 25, 2009
    Posts:
    7
    Referrals:
    1
    Sythe Gold:
    0

    TeKnOfY Newcomer

    Really need help, I will Pay!

    Hey everyone, I need help finding a syntax error in the following code. I will pay somone like $5 after they post back the code with a corrected syntax! Thanks :)

    ///////////////////CODE STARTS HERE\\\\\\\\\\\\\\\\\\\\\\\

    Imports System
    Imports System.Windows.Forms
    Imports System.Drawing
    Imports Functions
    Class ClassName1
    public Dim a As Integer = 1
    Sub main()
    Class1.minimise(Class1.getForm())
    Class1.activeWindow()
    System.Threading.Thread.Sleep(300)
    While (a != 0)
    If (loop() == -1) Then
    a = 0
    End If
    End While
    System.Threading.Thread.Sleep(300)
    Class1.maximise(Class1.getForm())
    End Sub
    public Function loop() As Integer

    return -1
    End Function
    End Class
     
  3. Unread #2 - Feb 28, 2010 at 1:48 PM
  4. Visual Basic Matt
    Joined:
    Jan 29, 2008
    Posts:
    647
    Referrals:
    2
    Sythe Gold:
    56
    Discord Unique ID:
    223154494878253056

    Visual Basic Matt Apprentice

    Really need help, I will Pay!

    I have no idea what your trying to do here but this code is extremely wrong. The parts I couldn't understand I left out but here's the correct syntax.

    Code:
    Imports System
    Imports System.Windows.Forms
    Imports System.Drawing
    Public Class Form1
        Public a As Integer = 1
        Sub main()
            Me.WindowState = FormWindowState.Minimized
            System.Threading.Thread.Sleep(300)
            While Not (a = 0)
                If (loopc() = -1) Then
                    a = 0
                End If
            End While
            System.Threading.Thread.Sleep(300)
            Me.WindowState = FormWindowState.Maximized
        End Sub
        Function loopc() As Integer
            loopc = -1
        End Function
        'You need to call main from somewhere
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            main()
        End Sub
    End Class
    
     
  5. Unread #3 - Nov 17, 2010 at 10:31 AM
  6. jcd1827
    Joined:
    May 31, 2007
    Posts:
    688
    Referrals:
    0
    Sythe Gold:
    0

    jcd1827 Apprentice
    Banned

    Really need help, I will Pay!

    That codes extremely messy, and incorrect. Please provide what you are trying to do with it.
     
  7. Unread #4 - Nov 17, 2010 at 11:34 AM
  8. blahbleh
    Joined:
    Nov 7, 2010
    Posts:
    179
    Referrals:
    0
    Sythe Gold:
    0

    blahbleh Active Member

    Really need help, I will Pay!

    I found 1 obvious error: Class ClassName1
    Should be Class Class1.
     
< Need a little help (plz only respond if you know-.-) | An initials problem (python) >

Users viewing this thread
1 guest


 
 
Adblock breaks this site