1 Replies - 1141 Views - Last Post: 12 September 2013 - 07:06 AM Rate Topic: -----

#1 Pradeepfdo   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 19-April 13

Tab Page Picture Box - VB.net

Posted 12 September 2013 - 05:07 AM

How to check, If Image there in control on Dynamically created Tab Page(Picture Box)

I try like this,

'Declare
Dim PBPicture As PictureBox
PBPicture.Name = "PBPicutreName"

' adding controls
newPage.Controls.Add(PBPicture)


Now I want to refer that Picture Box,

Is Image there ..?
Is This A Good Question/Topic? 0
  • +

Replies To: Tab Page Picture Box - VB.net

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14776
  • View blog
  • Posts: 59,065
  • Joined: 12-June 08

Re: Tab Page Picture Box - VB.net

Posted 12 September 2013 - 07:06 AM

The .Controls in "newPage.Controls " is a collection. You can find the tab in there, cast it as a tab page, and then reference the picturebox from that tab object's .Controls.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1