473,569 Members | 2,729 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1101
"S Shulman" <sm*******@hotm ail.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*******@hotm ail.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.Selecte dTab.Name

Case TabActions.Name

TBBActionGenera lNew.Visible = True

TBBActionAddFol lowUp.Visible = True

TBBActionDelete .Visible = True

TBBActionDone.V isible = True

TBBActionSnooze .Visible = True

TBBActionViewEd it.Visible = True

Case TabClients.Name

TBBClientAddCli ent.Visible = True

TBBClientAddSit e.Visible = True

TBBClientGoToSi tes.Visible = True

TBBClientViewEd it.Visible = True

Case TabSites.Name

TBBSiteAddSite. Visible = True

TBBSiteAddVisit .Visible = True

TBBSiteGoToVisi ts.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.Selecte dTab.Name

Case TabActions.Name

TBBActionGenera lNew.Visible = True

TBBActionAddFol lowUp.Visible = True

TBBActionDelete .Visible = True

TBBActionDone.V isible = True

TBBActionSnooze .Visible = True

TBBActionViewEd it.Visible = True

Case TabClients.Name

TBBClientAddCli ent.Visible = True

TBBClientAddSit e.Visible = True

TBBClientGoToSi tes.Visible = True

TBBClientViewEd it.Visible = True

Case TabSites.Name

TBBSiteAddSite. Visible = True

TBBSiteAddVisit .Visible = True

TBBSiteGoToVisi ts.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*******@hotm ail.com> wrote in message
news:Op******** ******@TK2MSFTN GP15.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*******@hotm ail.com> wrote in message
news:Op******** ******@TK2MSFTN GP15.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******** ******@TK2MSFTN GP14.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*******@hotm ail.com> wrote in message
news:Op******** ******@TK2MSFTN GP15.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******** ******@TK2MSFTN GP14.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*******@hotm ail.com> wrote in message
news:Op******** ******@TK2MSFTN GP15.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
1967
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 his browser like a google or yahoo toolbar or a links toolbar it pushes the content down and slightly out of view. I don't want to use a pop up...
1
3376
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. .......................................................... Private Sub Form_Load() CurrentDb.Properties("StartupShowDBWindow") = False '==== Hide the...
7
2345
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 tab control (very similar to outlook express). I then started coding and realised that I needed to add a ToolBar. When I added this, it didn't...
1
1678
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 the text of the label randomly? the problem i have: i didn't write the toolbar and i'm not an expert on this topic ;-)
6
3109
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 ToolbarButtons... Does anyone know how this could be done? Looking forward to hear from you,
6
8761
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 launches. I've wired up my event handler to each Menu item and toolbar button. (I use the same Event handler and I use the Tag property which is...
4
3642
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 to be able to control the toolbar from another form. Forms!frmClipping!Toolbar1.Buttons(2).Clicked = True does not work. Does anybody have any...
3
5240
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 toolbar is in the same ToolStripPanel as specified in the settings. For example, create a toolbar in ToolStripContainer.TopToolStripPanel and save...
6
3887
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 we have a standard toolbar that is at the top of the form window. It contains about 8 buttons that use images from an imagelist. Sometimes we hide...
10
2075
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 the javascript window.open method. Removing the Google Toolbar fixes the problem.
0
7694
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7609
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2107
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.