473,804 Members | 3,043 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is the attribute to hide a property from the designer

Hi. I am using VS2005 and C# for a Windows Form app.
I have made a user control and added a public field.
Is there a way so it does not appear in the designer property tab ?
I cannot find the correct attribute to apply on my field.
Apr 19 '06 #1
1 6055
You can use the BrowsableAttrib ute.
http://msdn2.microsoft.com/en-us/lib...attribute.aspx

--
Tim Wilson
..NET Compact Framework MVP

"zolof" <zo***@discussi ons.microsoft.c om> wrote in message
news:5A******** *************** ***********@mic rosoft.com...
Hi. I am using VS2005 and C# for a Windows Form app.
I have made a user control and added a public field.
Is there a way so it does not appear in the designer property tab ?
I cannot find the correct attribute to apply on my field.

Apr 19 '06 #2

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

Similar topics

2
1827
by: Ali Eghtebas | last post by:
Hi, I wanted to insert linebreaks in the tooltip property of some of my controls. I simply altered the designer generated code in InitializeComponent: Me.MyTooltip.SetToolTip(Me.TextBox1, "Text line 1" & vbCr & "Text line 2.") But whenever I change back to desinger I get this error in the Task List: "The variable 'vbCr' is either undeclared or was never assigned."
6
8705
by: Rich | last post by:
Hello, I was just wondering if there is/are an event(s) for the select tag, specifically like an onclick event <p><select name="test" size="8"> <option value="zero">test1</option> <option>test2</option> <option>test3</option> <option>test4</option>
4
3947
by: KVV | last post by:
Hello, All! can i hide property1 in designer depending on property2 value With best regards, KVV. E-mail: kvv_vlad@ua.fm
3
14186
by: greg.bacchus | last post by:
Hi, If I make a control, I want to be able to make it so that various properties are not initialised by the designer. I realise that if you put that it won't show up in the properties window... but for some reason the auto-generated code insists on initialising it anyway. This is really irritating. Does anyone know how to stop this? Cheers
13
1814
by: Peter Kirk | last post by:
Hi there, can someone tell me what exactly a "property" is in a C# class? As far as I can see it is "two methods" - ie a getter and a setter for an instance variable. What is the difference between these: public string InstanceStringVariable() {
1
1740
by: Jay | last post by:
I'm installing one of my dlls to the GAC but no matter what attribute I try, the name that shows up in explorer under global assembly name is always just the name of my assembly file. Is there a way to use a short filename but have the fully-qualified assembly name show up in the gac? -- Regards, Jay A. Ritchie
0
1117
by: Simon | last post by:
Hi I have developed a custom webcontrol like a Table (A) with a rows collection property (collection derived from CollectionBase) where I put one or more custom webcontrol (B). I need to hide some public property on controls (A) & (B) when in Design Mode. For the control (A) I have create class derived from ControlDesigner, I have override the PostFilterProperties method typing inside some code for removing the properties from...
3
2836
by: Lance | last post by:
I have a situation where I want to show a property when one object is selected in a PropertyGrid, but I want to hide that property when more than one object is selected. For example, lets say I have an object with a Name property that must be unique. If one of these objects is selected by a PropertyGrid, then I want to show the Name property in the PropertyGrid so the user can change the object's name. But, if more than one of these objects...
1
1546
by: OpticTygre | last post by:
Hi, If I generate a class which inherits from component, is there an attribute I can use on certain properties to keep them from being displayed in the Visual Studio designer? Mind that I still want the properties to be fully accessible through code, just not shown in the designer. Thanks, -Jason
2
2697
by: Ray Cassick | last post by:
I am looking for a way to hide a property I created on a user control from a property grid at runtime but allow it to be seen at design time. Any ideas? I tried setting the category of the property to 'Design' and that does not do it. I tried adding the 'DesignOnly' attribute and that does not do it.
0
9706
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10571
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10326
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9143
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7615
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6851
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5520
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.