EAK
July 9th, 2001, 04:18 PM
Help! I have created a user control to sit in a data repeater with data bindings. the data repeater is in picturebox#2 (on form #2 and form#2 is not used) which is then loaded into picturebox#1 on form #1 (which prevents the form #2 from receiving a resize event). i can still resize within pic#2 off the resize event from form#1 however, i can not figure out how to resize my control! i created a method to do the work but, it is unrecognized when i attempt to invoke it. even when i could force a resizing routine to run, it did not resize as i expected. below is my test code and the beeps were to confirm if and when the routine was being run.
'Public Sub snapIt()
'Dim tW As Long, i As Integer
' tW = Extender.Width
' UserControl.Width = tW * 1.1
' tW = tW * 0.9 - Label1.Width - txtSortKey.Width
' txtDescription.Width = tW
' Label1.Left = tW
' tW = tW + Label1.Width
' txtSortKey.Left = tW
' tW = tW - Label1.Width
' For i = 1 To 75
' Beep
' Next i
'End Sub
DOES ANYBODY HAVE SAMPLE CODE OR A SOLUTION? THANK YOU VERY MUCH!!
E
'Public Sub snapIt()
'Dim tW As Long, i As Integer
' tW = Extender.Width
' UserControl.Width = tW * 1.1
' tW = tW * 0.9 - Label1.Width - txtSortKey.Width
' txtDescription.Width = tW
' Label1.Left = tW
' tW = tW + Label1.Width
' txtSortKey.Left = tW
' tW = tW - Label1.Width
' For i = 1 To 75
' Beep
' Next i
'End Sub
DOES ANYBODY HAVE SAMPLE CODE OR A SOLUTION? THANK YOU VERY MUCH!!
E