Hi all,
I have created into Vb.net application a SDF database, in which a table call "TL_LOGIN_TB" and a column call TL_LOGIN inside.
Into de application I need that in case someone the enviorament variable %username% is similar of the TL_LOGIN enable the tabcontrol
TabControl.Controls.Remove(SDTrackTAB)
I dont know how to do it, but I was thinking to do similar as this:
Dim cmnd As SqlCeCommand = New SqlCeCommand("select * from TL_LOGIN_TB WHERE TL_LOGIN=%USERNAME%, MyConnection)
IF CMND THEN
TabControl.Controls.Remove(SDTrackTAB)
ELSE
TabControl.Controls.ADD(SDTrackTAB)
END IF
thank you,
Jose Luis.
I have created into Vb.net application a SDF database, in which a table call "TL_LOGIN_TB" and a column call TL_LOGIN inside.
Into de application I need that in case someone the enviorament variable %username% is similar of the TL_LOGIN enable the tabcontrol
TabControl.Controls.Remove(SDTrackTAB)
I dont know how to do it, but I was thinking to do similar as this:
Dim cmnd As SqlCeCommand = New SqlCeCommand("select * from TL_LOGIN_TB WHERE TL_LOGIN=%USERNAME%, MyConnection)
IF CMND THEN
TabControl.Controls.Remove(SDTrackTAB)
ELSE
TabControl.Controls.ADD(SDTrackTAB)
END IF
thank you,
Jose Luis.