Re: user control width property




"Ken Halter" <Ken_Halter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:eO5cWotuFHA.252@xxxxxxxxxxxxxxxxxxxxxxx
> "MP" <Nomospam@xxxxxxxxxx> wrote in message
> news:432ae8d5$0$4864$8b463f8a@xxxxxxxxxxxxxxxxxxxxxx
> >



> '==========
> Private Sub UserControl_Resize()


Thanks Ken,
that was the secret, put the line UserControl.Width = x in the
UserControl_Resize event.
I didn't think of that...I had it in the Initialize event.(actually in a sub
that was called in the initialize event
I was able to set all other controls sizes and locations in that event so
didn't realize I couldn't set the control itself in the same place


>
> Also... when using Me, as soon as you hit the dot, you'll see all
available
> choices. That list will consist of any procedures you've declared as
Friend
> or Public.

Yep, I noticed it only had my custom properties available, I just didn't
realize it wouldn't have it's own intrinsic properties.

Thanks Bryan and Ken for your help on this one. Much appreciated.
Saved me many hours of random experimentation.

:-)
Mark




.



Relevant Pages

  • Re: UserForm_Initialize, how to exit sub based on condition?
    ... Activate event fires after the Initialize event, ... Private fExit As Boolean ... Private Sub UserForm_Initialize ... ensure the user won't overwrite the master file. ...
    (microsoft.public.excel.programming)
  • Re: Text Change Event
    ... Private Sub Document_DocumentSaved ... Private Sub myCell_CellChanged(ByVal Cell As IVCell) ... so that the inserted field can't be overwritten, ... shape and then enter the text in the Prop.Name custom properties field. ...
    (microsoft.public.visio.developer.vba)
  • error in using SPList for searching custom properties.
    ... >i am trying to use the SPlist class for searching the ... custom properties of the document. ... >Private Sub Button1_Click(ByVal sender As System.Object, ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Setting default values for Property procedures
    ... > how do you do it on a class module that doesn't have an initialize event? ... Private Sub Class_Initialize ... ' Clean up here ...
    (microsoft.public.vb.general.discussion)
  • Re: Setting default values for Property procedures
    ... but how do you do it on a class module that doesn't have an ... Class modules do have an Initialize event; ... dropdown over the code window and then Initialize from the right-hand ... Private Sub Class_Initialize ...
    (microsoft.public.vb.general.discussion)