1 Replies - 794 Views - Last Post: 19 February 2012 - 09:30 AM

#1 curlyfries1999  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 111
  • Joined: 22-December 11

Determine number of tabs in Tabcontrol in 'If' statement

Posted 19 February 2012 - 09:25 AM

Hello.
I am writing a tabbed webbrower program and i am trying to close the program when all tabs have been closed using ctrl+w. So far i have used the following code but it has errors as tabcount is readonly:
If
            TabControl1.TabCount.Equals(0) then
            Me.Close()
        End If

Please help.
Thanks in advance.

This post has been edited by curlyfries1999: 19 February 2012 - 09:26 AM

Is This A Good Question/Topic? 0
  • +

Replies To: Determine number of tabs in Tabcontrol in 'If' statement

#2 no2pencil  Icon User is offline

  • Original Digital Gansta
  • member icon

Reputation: 4466
  • View blog
  • Posts: 24,914
  • Joined: 10-May 07

Re: Determine number of tabs in Tabcontrol in 'If' statement

Posted 19 February 2012 - 09:30 AM

The "Site Questions & Support" sub forum is for questions about the Dream In Code website. Please post your question under the correct language sub forum. That is where all programming & technology questions are asked & addressed.

Thank you.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1