Results 1 to 3 of 3

Thread: New look and [HIGHLIGHT=vb] tag

  1. #1
    Frenzied Member
    Join Date
    Sep 06
    Posts
    1,259

    New look and [HIGHLIGHT=vb] tag

    The look of code enclosed between {HIGHLIGHT=vb}{/HIGHLIGHT} is very bad, first it just show only 4 lines at a time, second the line numbers are not continues as it is go from 1 to 9

    here is an example with {HIGHLIGHT=vb}{/HIGHLIGHT}
    vb Code:
    1. Option Explicit
    2.  
    3. Dim mblnMouseDown As Boolean
    4. Dim msngX As Single
    5.  
    6. Private Sub MDIForm_Resize()
    7.     Picture1.Width = Me.Width / 4
    8. End Sub
    9.  
    10. Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    11.     If Button = 1 Then
    12.         mblnMouseDown = True
    13.         msngX = X
    14.     End If
    15. End Sub
    16.  
    17. Private Sub Picture1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    18.     mblnMouseDown = False
    19. End Sub
    20.  
    21. Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    22.    
    23.     On Error Resume Next
    24.    
    25.     If X > Picture1.Width - 240 Then
    26.         Picture1.MousePointer = 9
    27.     Else
    28.         Picture1.MousePointer = 0
    29.     End If
    30.        
    31.     If Button = 1 Then
    32.         If mblnMouseDown = True Then
    33.             If Picture1.Width < 1200 Then
    34.                 Picture1.Width = 1200
    35.             Else
    36.                 Picture1.Width = Picture1.Width + (X - msngX)
    37.                 msngX = X
    38.             End If
    39.         End If
    40.     End If
    41. End Sub


    the same example with {CODE}{/CODE}
    Code:
    Option Explicit
     
    Dim mblnMouseDown As Boolean
    Dim msngX As Single
     
    Private Sub MDIForm_Resize()
        Picture1.Width = Me.Width / 4
    End Sub
     
    Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
        If Button = 1 Then
            mblnMouseDown = True
            msngX = X
        End If
    End Sub
     
    Private Sub Picture1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
        mblnMouseDown = False
    End Sub
     
    Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
        
        On Error Resume Next
        
        If X > Picture1.Width - 240 Then
            Picture1.MousePointer = 9
        Else
            Picture1.MousePointer = 0
        End If
            
        If Button = 1 Then
            If mblnMouseDown = True Then
                If Picture1.Width < 1200 Then
                    Picture1.Width = 1200
                Else
                    Picture1.Width = Picture1.Width + (X - msngX)
                    msngX = X
                End If
            End If
        End If
    End Sub
    I hope there is a solution.

  2. #2
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 05
    Location
    Lansing, MI; USA
    Posts
    3,788

    Re: New look and [HIGHLIGHT=vb] tag

    This has all been pointed out in the "report upgrade problems" thread
    Currently using: VS 2010 Ultimate on Win7 Ultimate x64.



    CodeBank: All Threads • Colors ComboBox • Fading & Gradient Form • MoveItemListBox/MoveItemListView • MultilineListBox • MenuButton • ToolStripCheckBox • Start with Windows

  3. #3
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 04
    Location
    The Granite City
    Posts
    21,744

    Re: New look and [HIGHLIGHT=vb] tag

    Hello,

    I am going to close this thread. Please report all forum issues here:

    http://www.vbforums.com/showthread.p...in-this-thread

    Thanks

    Gar

Posting Permissions

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