473,387 Members | 1,790 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,387 software developers and data experts.

ToolStrip keeps changing its visible property to False

Hello,

I have no idea how this is happening.

I have a TabControl on the form, and in one of the tabs I have a ToolStrip
with a few buttons and Grid.

Every now and then I look and the ToolStrip has disappeared, when I bring it
up in the Properties Editor the Visible value is False.

If i look into the Form.Designer.cs sure enough there is Visible = false

I have and never will set this myself.

This is driving me mad, any help?

Thanks,

Daniel

Sep 25 '07 #1
5 5516
What version of Visual Studio are you using?

--
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Daniel Jeffrey" <da**************@hotmail.comwrote in message
news:Ou**************@TK2MSFTNGP05.phx.gbl...
Hello,

I have no idea how this is happening.

I have a TabControl on the form, and in one of the tabs I have a ToolStrip
with a few buttons and Grid.

Every now and then I look and the ToolStrip has disappeared, when I bring
it up in the Properties Editor the Visible value is False.

If i look into the Form.Designer.cs sure enough there is Visible = false

I have and never will set this myself.

This is driving me mad, any help?

Thanks,

Daniel
Sep 25 '07 #2
hey its working fine . u may missed some thing .

"Bob Powell [MVP]" wrote:
What version of Visual Studio are you using?

--
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Daniel Jeffrey" <da**************@hotmail.comwrote in message
news:Ou**************@TK2MSFTNGP05.phx.gbl...
Hello,

I have no idea how this is happening.

I have a TabControl on the form, and in one of the tabs I have a ToolStrip
with a few buttons and Grid.

Every now and then I look and the ToolStrip has disappeared, when I bring
it up in the Properties Editor the Visible value is False.

If i look into the Form.Designer.cs sure enough there is Visible = false

I have and never will set this myself.

This is driving me mad, any help?

Thanks,

Daniel

Sep 25 '07 #3
sorry
2005 Sp1
Dan

"Bob Powell [MVP]" <bo*@spamkillerbobpowell.netwrote in message
news:F9**********************************@microsof t.com...
What version of Visual Studio are you using?

--
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Daniel Jeffrey" <da**************@hotmail.comwrote in message
news:Ou**************@TK2MSFTNGP05.phx.gbl...
>Hello,

I have no idea how this is happening.

I have a TabControl on the form, and in one of the tabs I have a
ToolStrip with a few buttons and Grid.

Every now and then I look and the ToolStrip has disappeared, when I bring
it up in the Properties Editor the Visible value is False.

If i look into the Form.Designer.cs sure enough there is Visible = false

I have and never will set this myself.

This is driving me mad, any help?

Thanks,

Daniel
Sep 26 '07 #4
Code from Designer.cs
this.DatabaseTab.Controls.Add(this.DatabasesGrid);
this.DatabaseTab.Controls.Add(this.DatabaseStrip);
//
// DatabaseStrip
//
this.DatabaseStrip.AllowMerge = false;
this.DatabaseStrip.Items.AddRange(new
System.Windows.Forms.ToolStripItem[] {
this.DBSaveButton,
this.DBCancelButton,
this.toolStripSeparator1,
this.TestConnButton});
this.DatabaseStrip.Location = new System.Drawing.Point(0, 0);
this.DatabaseStrip.Name = "DatabaseStrip";
this.DatabaseStrip.Size = new System.Drawing.Size(787, 25);
this.DatabaseStrip.TabIndex = 8;
this.DatabaseStrip.Text = "toolStrip1";

This is change changes to
this.Visible = false;

I am not really sure what I could have missed.

Dan

"Som Nath Shukla" <So***********@discussions.microsoft.comwrote in message
news:5E**********************************@microsof t.com...
hey its working fine . u may missed some thing .

"Bob Powell [MVP]" wrote:
>What version of Visual Studio are you using?

--
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Daniel Jeffrey" <da**************@hotmail.comwrote in message
news:Ou**************@TK2MSFTNGP05.phx.gbl...
Hello,

I have no idea how this is happening.

I have a TabControl on the form, and in one of the tabs I have a
ToolStrip
with a few buttons and Grid.

Every now and then I look and the ToolStrip has disappeared, when I
bring
it up in the Properties Editor the Visible value is False.

If i look into the Form.Designer.cs sure enough there is Visible =
false

I have and never will set this myself.

This is driving me mad, any help?

Thanks,

Daniel

Sep 26 '07 #5
Does anyone have any idea on this.

It seems to happen when the designer moves to a different tab.

The toolstrip on the tab that just lost focus seems to then set itself to
visible = false.

I have had to put code in to ensure they are all visible when the form is
created, and this should not be needed.

Daniel

"Daniel Jeffrey" <da**************@hotmail.comwrote in message
news:On*************@TK2MSFTNGP04.phx.gbl...
sorry
2005 Sp1
Dan

"Bob Powell [MVP]" <bo*@spamkillerbobpowell.netwrote in message
news:F9**********************************@microsof t.com...
>What version of Visual Studio are you using?

--
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Daniel Jeffrey" <da**************@hotmail.comwrote in message
news:Ou**************@TK2MSFTNGP05.phx.gbl...
>>Hello,

I have no idea how this is happening.

I have a TabControl on the form, and in one of the tabs I have a
ToolStrip with a few buttons and Grid.

Every now and then I look and the ToolStrip has disappeared, when I
bring it up in the Properties Editor the Visible value is False.

If i look into the Form.Designer.cs sure enough there is Visible = false

I have and never will set this myself.

This is driving me mad, any help?

Thanks,

Daniel
Oct 3 '07 #6

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

Similar topics

8
by: horos | last post by:
hey all, Ok, a related question to my previous one on data dumpers for postscript. In the process of putting a form together, I'm using a lot of placeholder variables that I really don't care...
2
by: ColinWard | last post by:
Hi. I have a form which has as its recordsource an SQL string. The SQL String is as follows: SELECT * from CONTACTS where false. this ensures that there is no data loaded in the form when the...
1
by: mike | last post by:
Hi, I'd like advice from a .NETer. I have a loadcombo routine which sets the selectedindex to -1 if it's an "add record", but then it goes to a security routine which, based on permissions...
4
by: Teemu | last post by:
I'm wondering if there is a easy way to change for example toolstrips appearance. I'd like to have the same theme as in VB2005. Brown backgroung instead of the light blue. Can this be done without...
4
by: gene kelley | last post by:
The default ToolStrip apparently renders an MS Office Style ToolStrip when the RenderMode is other than "System". When using a BackgroundImage in the ToolStrip, this Office Style border has rounded...
2
by: halex2000 | last post by:
Hi, I've used a toolstrip up until now for my program, but I've just discovered that it doesn't support checkboxes. Is there a way to put one in a toolstrip? I could also use a state button...
8
by: Doc John | last post by:
I have an MDI container with a child Form which will be visible according to certain events. The problem is that when I set the property Visible to False and then back to True, the Form will be in...
1
by: priyamtheone | last post by:
In C# 2005 (.Net 2.0), while working with a toolstrip, if its TabStop property is set to TRUE and there are two comboboxes and a button in the toolstrip, why doesn't the button get any focus when the...
3
by: LukasMalik | last post by:
Hi, I have widely used ToolStrip in my application. I created a UserControl which contains this ToolStrip. I would rather like to use inheritance: MyCustomControl : ToolStrip Everything...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.