AMD

AMD

  • NA
  • 1
  • 0

Tab Controls

Sep 22 2004 8:44 AM
Hey, i was wondering if any1 cud help me. I must make a realestate program. There must b a tabControl with 2 pages. Wen a guest logs in i want 2 hide tabPage2 Bcoz only the admin users must be able 2 c that tab, but it doenst wana work... this is the code im using: if (userName == "Guest") { tabPage2.Hide(); } else if (userName == "Admin") { tabPage2.Show(); } wat am i doing wrong? Or can any1 plz tell me a better way 2 do it? Thanks

Answers (1)