Hello All,
I have one userform and I am adding textbox and commandbuttons dynamically to it. Now I want to embed not link a picture on one command button so that picture appears on command button even if picture file is not in its location. I tried creating one userform and adding picture to image control. I used following code after that. It did not work. Need your help to achieve this.
Thanks
Angsuman
I have one userform and I am adding textbox and commandbuttons dynamically to it. Now I want to embed not link a picture on one command button so that picture appears on command button even if picture file is not in its location. I tried creating one userform and adding picture to image control. I used following code after that. It did not work. Need your help to achieve this.
Code:
With PiBtn
.Top = TxtBoxTopPos
.Height = HeightLen * 2
.Width = CalBtnWidth
.Left = UformWdth - CalMrgn - CalBtnWidth
.BackColor = &H8000000F
.ForeColor = &H80000012
.Font.Name = "Arial"
.Font.Size = 9
.Picture = LoadPicture(PicForm.Image1.Picture)
End With
Thanks
Angsuman