toolStripButton Has no Definition for 'Show' & 'Hide'? (c#)

So before I go to my problem I have some things to point out. -They are in the same Form -Regular Buttons work -This is being activated on the press of a button So my error is 'ToolStripButton' does not contain a definition for 'Show' and no extension method 'Show' accepting a first arguement of type 'ToolStripButton' could be found (are you missing a using directive or assembly reference) Then again I am really nooby at C# and I am probably missing a c# using system thing but I have no idea what. here are all my usings

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Text.RegularExpressions;
using System.IO;

ok and finally here is a gyazo of my error https://gyazo.com/bc25c1c9430c46a24bbf4066ad5d1c62 Thanks all appreciated don't hate I am starting off with c# training !!! PS. I tried to make my tags as specific as possible, don't hate on that either please :P

Answers


It seems based on your description you are trying to click a regular button in order to either make a toolstrip button visible, or make a toolstrip menu open.

Can you clarify that? If you are using show to have the toolstrip button visible, have you tried looking up the toolstrip button class for its different commands? It seems you need to use .visible = true to "show it" if I am understanding your question.

.enabled could be another option if you want it shown but clickable/not clickable.

Hope this helps or allows you to clarify.


Need Your Help

Sharepoint performance under heavy load and capacity limitations

sharepoint wss-3.0 document-library capacity

I'm working on a new storage system for a business solution package that consists of around 40 applications. Some of those applications generate documents (mostly docx, some pdf) that are currently...

How to prevent timestamp from being reorder out?

c++ visual-studio-2012 c++11 profiler chrono

My understanding is that C++ lets anything that isn't IO or external function calls can be optimized reorder. This is starting to frustrate my efforts at writing a RAII style function timestamp.