473,406 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Toolbar Problem

Hi All

Using the TabSelected event of the Tab control the program hides and shows
buttons on the toolbar
But for some reason if I change tab A to B it works fine but if I change A
to C then all toolbar buttons are only very partially uncovered

Any suggestions?
Thank you,
Shmuel

Nov 21 '05 #1
8 1088
"S Shulman" <sm*******@hotmail.com> schrieb:
Using the TabSelected event of the Tab control the program hides and shows
buttons on the toolbar
But for some reason if I change tab A to B it works fine but if I change A
to C then all toolbar buttons are only very partially uncovered


"Post your code!"

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2
"S Shulman" <sm*******@hotmail.com> schrieb:
Using the TabSelected event of the Tab control the program hides and shows
buttons on the toolbar
But for some reason if I change tab A to B it works fine but if I change A
to C then all toolbar buttons are only very partially uncovered


"Post your code!"

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3
Initially all buttons are not visible

Shmuel

Private Sub ShowHideTB()

'hide all buttons

Dim TBB As ToolBarButton

For Each TBB In TB.Buttons

TBB.Visible = False

Next

Select Case TabMain.SelectedTab.Name

Case TabActions.Name

TBBActionGeneralNew.Visible = True

TBBActionAddFollowUp.Visible = True

TBBActionDelete.Visible = True

TBBActionDone.Visible = True

TBBActionSnooze.Visible = True

TBBActionViewEdit.Visible = True

Case TabClients.Name

TBBClientAddClient.Visible = True

TBBClientAddSite.Visible = True

TBBClientGoToSites.Visible = True

TBBClientViewEdit.Visible = True

Case TabSites.Name

TBBSiteAddSite.Visible = True

TBBSiteAddVisit.Visible = True

TBBSiteGoToVisits.Visible = True

TBBSiteViewEdit.Visible = True

End Select

End Sub
Nov 21 '05 #4
Initially all buttons are not visible

Shmuel

Private Sub ShowHideTB()

'hide all buttons

Dim TBB As ToolBarButton

For Each TBB In TB.Buttons

TBB.Visible = False

Next

Select Case TabMain.SelectedTab.Name

Case TabActions.Name

TBBActionGeneralNew.Visible = True

TBBActionAddFollowUp.Visible = True

TBBActionDelete.Visible = True

TBBActionDone.Visible = True

TBBActionSnooze.Visible = True

TBBActionViewEdit.Visible = True

Case TabClients.Name

TBBClientAddClient.Visible = True

TBBClientAddSite.Visible = True

TBBClientGoToSites.Visible = True

TBBClientViewEdit.Visible = True

Case TabSites.Name

TBBSiteAddSite.Visible = True

TBBSiteAddVisit.Visible = True

TBBSiteGoToVisits.Visible = True

TBBSiteViewEdit.Visible = True

End Select

End Sub
Nov 21 '05 #5
Shmuel,

Hmm, that's interesting. If I set this up with the form initializing to all
buttons hidden and then change the visibility to true I get just the top
portion of the buttons showing. If I run the same program with any toolbar
buttons visible when the form initializes, then everything works fine. I was
able to get it to work, even with the initial hidden states, by adding a
tb.height = 50, for example, to the ShowHideTB sub.

Dave
"S Shulman" <sm*******@hotmail.com> wrote in message
news:Op**************@TK2MSFTNGP15.phx.gbl...
Hi All

Using the TabSelected event of the Tab control the program hides and shows
buttons on the toolbar
But for some reason if I change tab A to B it works fine but if I change A
to C then all toolbar buttons are only very partially uncovered

Any suggestions?
Thank you,
Shmuel

Nov 21 '05 #6
Shmuel,

Hmm, that's interesting. If I set this up with the form initializing to all
buttons hidden and then change the visibility to true I get just the top
portion of the buttons showing. If I run the same program with any toolbar
buttons visible when the form initializes, then everything works fine. I was
able to get it to work, even with the initial hidden states, by adding a
tb.height = 50, for example, to the ShowHideTB sub.

Dave
"S Shulman" <sm*******@hotmail.com> wrote in message
news:Op**************@TK2MSFTNGP15.phx.gbl...
Hi All

Using the TabSelected event of the Tab control the program hides and shows
buttons on the toolbar
But for some reason if I change tab A to B it works fine but if I change A
to C then all toolbar buttons are only very partially uncovered

Any suggestions?
Thank you,
Shmuel

Nov 21 '05 #7
Thanks Dave

It works now when I set the height
I wonder why only in that case I need to set the height

Thanks again
Shmuel

"Dave" <dave@4_rem_ove_scotts.com> wrote in message
news:OQ**************@TK2MSFTNGP14.phx.gbl...
Shmuel,

Hmm, that's interesting. If I set this up with the form initializing to
all buttons hidden and then change the visibility to true I get just the
top portion of the buttons showing. If I run the same program with any
toolbar buttons visible when the form initializes, then everything works
fine. I was able to get it to work, even with the initial hidden states,
by adding a tb.height = 50, for example, to the ShowHideTB sub.

Dave
"S Shulman" <sm*******@hotmail.com> wrote in message
news:Op**************@TK2MSFTNGP15.phx.gbl...
Hi All

Using the TabSelected event of the Tab control the program hides and
shows
buttons on the toolbar
But for some reason if I change tab A to B it works fine but if I change
A
to C then all toolbar buttons are only very partially uncovered

Any suggestions?
Thank you,
Shmuel


Nov 21 '05 #8
Thanks Dave

It works now when I set the height
I wonder why only in that case I need to set the height

Thanks again
Shmuel

"Dave" <dave@4_rem_ove_scotts.com> wrote in message
news:OQ**************@TK2MSFTNGP14.phx.gbl...
Shmuel,

Hmm, that's interesting. If I set this up with the form initializing to
all buttons hidden and then change the visibility to true I get just the
top portion of the buttons showing. If I run the same program with any
toolbar buttons visible when the form initializes, then everything works
fine. I was able to get it to work, even with the initial hidden states,
by adding a tb.height = 50, for example, to the ShowHideTB sub.

Dave
"S Shulman" <sm*******@hotmail.com> wrote in message
news:Op**************@TK2MSFTNGP15.phx.gbl...
Hi All

Using the TabSelected event of the Tab control the program hides and
shows
buttons on the toolbar
But for some reason if I change tab A to B it works fine but if I change
A
to C then all toolbar buttons are only very partially uncovered

Any suggestions?
Thank you,
Shmuel


Nov 21 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Chris | last post by:
Hi I have designed my website to fit my standard windows. I use a javascript scroller that nescitates the removal of the browser scroll bars. However if a user has an extra toolbar open in...
1
by: Prakash Wadhwani | last post by:
When I start my Application I put the following code in the Main form Load Event which switches off all the ToolBars so that nothing except my form & it's controls are visible to the user. ...
7
by: Andy Bates | last post by:
I have hopefully a simple problem in C#. I designed a form with a listview on left, vert splitter against that, then the remainder of the form from top to bottom: a listview, horiz splitter and...
1
by: none | last post by:
hiho@ll i want to make a IE Toolbar which has a newsticker built in the problem i have is i don't really know how to use static text in a toolbar? the second question will be, how can i change...
6
by: Juan Pedro Gonzalez | last post by:
I wanted to add a Combobox to a toolbar... Kind of the look you get on VisualStudio's toolbar. I've been able to find some VB 6 samples, but the placeholder option is no longer available for...
6
by: Joseph Geretz | last post by:
I'm porting a C# Outlook Addin originally engineered as a COM Addin over to use VSTO. I've gotten this to the point where my VSTO Addin installs its Menu items and Toolbar buttons when Outlook...
4
by: Gerhard | last post by:
I have an MS Access app with multiple forms. One of the forms has a Toolbar (MsComctlLib.Toolbar) and it works as advertised. I handle the buttons in the Toolbar1_ButtonClick event. I would like...
3
by: Undergrid | last post by:
Hi All, I've got a few toolbars in my application hosted in a ToolStripContainer. I have found a problem whereby the location of a toolbar is not restored when doing a LoadSettings if the...
6
by: =?Utf-8?B?L2Rldi9udWxs?= | last post by:
Hello, i am using visual studio 2003 enterprise architect version. I am making apps for the .Net framework 1.1. While testing an interface, i discovered something strange. In this application...
10
by: Steve | last post by:
Just a warning to the group. The Google Toolbar causes Firebug to issue lots of "Too much recursion" errors in the toolbar.js and eventual causes my Firefox browser to stop responding when using...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.