Can anyone rewrite this code to work in VB 2008 menu

User Tag List

Results 1 to 6 of 6
  1. #1
    insignia96's Avatar Banned
    Reputation
    33
    Join Date
    Oct 2008
    Posts
    304
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can anyone rewrite this code to work in VB 2008

    its from VB6

    Code:
        Private Sub Form_Resize()
            On Error Resume Next
            txtData.Width = Me.MaximumSize.Width - (2 * txtData.Left)
            txtData.Height = Me.MaximumSize.Height - (2 * txtData.Top)
        End Sub

    Can anyone rewrite this code to work in VB 2008
  2. #2
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    Private Sub Form_Resize(ByVal sender As Object, ByVal e As EventArgs)
    txtData.Width = Me.Width - (2 * txtData.Position.X)
    txtData.Height = Me.Height - (2 * txtData.Position.Y)
    End Sub
    Probably need a little bit of fixing. (Did that in the browser) But that's the general idea.

  3. #3
    insignia96's Avatar Banned
    Reputation
    33
    Join Date
    Oct 2008
    Posts
    304
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks man +rep

  4. #4
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    Private Sub Form_Resize(ByVal sender As Object, ByVal e As EventArgs)
    would be
    Code:
    Private Sub Form_Resize(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Resize
    for vb.net. I think. Might not be Me.Resize, but you need a Handles Me.something

  5. #5
    suicidity's Avatar Contributor
    Reputation
    207
    Join Date
    Oct 2006
    Posts
    1,439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The handles on the textbox .left / .top could still be used. They are still in vb2008


  6. #6
    insignia96's Avatar Banned
    Reputation
    33
    Join Date
    Oct 2008
    Posts
    304
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks to all, it works now!

Similar Threads

  1. Can anyone get the codes used to create this keylogger
    By Guzey in forum World of Warcraft General
    Replies: 3
    Last Post: 02-16-2008, 11:58 PM
  2. [request] can anyone share this?
    By Rouslan in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 01-30-2008, 11:19 AM
  3. Can anyone decode this for me?
    By #ClumsyWizard in forum Community Chat
    Replies: 4
    Last Post: 05-12-2007, 09:00 PM
  4. Can anyone answer this please (GB players mainly)
    By Toldorn in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 12-11-2006, 07:45 PM
All times are GMT -5. The time now is 02:30 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search