If you are writing his in C#, those tabs should have their own logical name inside the controller context. So click I side the tab as tho you were adding an item them go to properties to find the name. Then you could use a simple Boolean to check if you have a connection.
Boolean Connection (SelectApi API = SelectAPI.TargetManager) { PS3.ChangeAPI(API); Boolean state = PS3.ConnectTarget(); if (state) state = PS3.AttachTarget(); return state; } Boolean Is_Connected; private void button1_Click(object sender, EventArgs e) Is_Connected = Connection(); tab_Statz.Enabled = Is_Connected; }Something like that maybe?
Did that on my phone so I wouldn't trust Copy/Pasting it haha
Err I think I just lost myself with that xD. And yes, I'm writing in C#