Results 1 to 10 of 10

Thread: Resize on Addin

  1. #1

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Hi Everybody!

    I want to resize controls on a form resize event.
    I did this many times and it workes great. Now I tried it with a listbox on an Addin and it just resizes one time. After it the resizeevent seems to be activated, but the list1.width = frmmain.width doesn't take effect!
    Sanity is a full time job

    Puh das war harter Stoff!

  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    Just a Guess:

    Maybe the addin doesn't allow it to be resized more then once
    NXSupport - Your one-stop source for computer help

  3. #3

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    HM I can resize the form as often as I want to.
    Sanity is a full time job

    Puh das war harter Stoff!

  4. #4

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181

    Unhappy

    Hey You Guys! What's up! I don't think I need a guru to get this answered? What do I do wrong?

    Can nobdy help me?
    Sanity is a full time job

    Puh das war harter Stoff!

  5. #5
    Guest
    Misan:

    What addin?
    Is it a addin to be published? What's the code? No one can solve a problem if you don't give them specifics!

  6. #6

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    I'm doing an Addin for VB.

    Hm the code really doesn't matter I think. It's one addin to load/unload another addin, what helpes me saving time programming the other one! All those Addins are just to help me programming. (kind of school project)
    Actually I tried it on 3 different addins. And it never worked.

    So all I need is the code to resize controls on a form of an Addin!

    Thanks
    Sanity is a full time job

    Puh das war harter Stoff!

  7. #7
    Guest
    No idea. I've used a blank addin form with a blank listbox and the following code:

    Code:
    Public VBInstance As VBIDE.VBE
    Public Connect As Connect
    
    Option Explicit
    
    Private Sub CancelButton_Click()
        Connect.Hide
    End Sub
    
    Private Sub Form_Resize()
      List1.Height = Me.ScaleHeight
    End Sub
    
    Private Sub OKButton_Click()
        MsgBox "AddIn operation on: " & VBInstance.FullName
    End Sub
    And it resized perfectly. I didn't change anything in the designer and only set the border property to 2-Sizable.

  8. #8

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Strange strange strange. Acutaly u use the code I used (what else should we do).
    I set some propertys of course, but I didn't think it will change something. I'll give it a try.
    Thanks for the effort.
    Cu
    Sanity is a full time job

    Puh das war harter Stoff!

  9. #9

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Hey, I used just this code, and it didn't work. It just resizes it once!

    so I added this to the resize event:
    Code:
    MsgBox List1.Height
    MsgBox frmAddIn.ScaleHeight
    I know the code flag is stupid here, but I never tried it before!

    and surprise, the frmmAddin.scaleHeight didn't change after the first resize!

    Thanks!
    Sanity is a full time job

    Puh das war harter Stoff!

  10. #10

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Hm something is definetely wrong with the form!
    I just added a timer, that does the resizing for me. Nothing!
    So I tried to make a
    frmaddin.caption = str(frmmaddin.scaleheight)

    but nothing changed.
    Than I added a beep to the timercode, to test if it ever arrives there, and it does, it beeps all the time.

    Cu
    Sanity is a full time job

    Puh das war harter Stoff!

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