How do u set the picture property of the panel when the status bar is in simple mode??? Woka
My .NET Tutorials: • Silverlight Enabled WebPart in WSS My VB.NET Code Examples: • Create IIS Virtual Directory • Validate Login Against Active Directory • Automatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET My ASP.NET Code Examples: • Login To Website (Forms Authentication) • Login To Website (Custom Authentication) My VB6 Code Projects: • Multithreading In VB6 • Custom Tooltips • Multi Language Support • Item Selector Control • Annimated Systray Icon • Simple Effective Graph Control • Download From Web • LiveUpdate, download application updates from the web automatically • Systray Notification Messages • Skin A Form • API Timer • Badger Messenger, an MSN clone that uses the MSN Network • Wokawidgets VB6 Component Suite
Simple mode does not support images in it... Also...if you want Text on it in simple mde ..you need to use the SimpleText property.. and one more thing...when the Statusbar is in simple mode. You cannot control it through the Panels() collection they are maintained seperately try this: VB Code: Private Sub Command1_Click() If StatusBar1.Style = sbrSimple Then StatusBar1.Style = sbrNormal Else StatusBar1.Style = sbrSimple End If End Sub Private Sub Form_Load() StatusBar1.SimpleText = "SimpleMode" StatusBar1.Panels(1).Text = "Normal Mode" End Sub
Private Sub Command1_Click() If StatusBar1.Style = sbrSimple Then StatusBar1.Style = sbrNormal Else StatusBar1.Style = sbrSimple End If End Sub Private Sub Form_Load() StatusBar1.SimpleText = "SimpleMode" StatusBar1.Panels(1).Text = "Normal Mode" End Sub
JPnyc rocks!! (Just ask him!) If u have your answer please go to the thread tools and click "Mark Thread Resolved"
I know how to use a status bar, which is why I know it's not possible to have an icon when in simple mode...but you can do it using API... WOka
Forum Rules