473,543 Members | 2,466 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

usercontrol - how to hide properties and events in VB .NET

Hello,

I've done a user control named for example myUC with 1 fonction "Beep".
When I use it on a project, I put myUC on a form (it is called myUC1). When
I type "myUC1.", intellisense give me lot of thing like visible....
I just want to have 1 choice : Beep.
What have I to do to hide other properties, fonctions and events ?

Thanks

Benoist
Nov 20 '05 #1
1 1821
* Benoist LUGNIER <do****@acuisof t.com> scripsit:
I've done a user control named for example myUC with 1 fonction "Beep".
When I use it on a project, I put myUC on a form (it is called myUC1). When
I type "myUC1.", intellisense give me lot of thing like visible....
I just want to have 1 choice : Beep.
What have I to do to hide other properties, fonctions and events ?


You can't. Why do you want to do that?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

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

Similar topics

1
1396
by: Ryan Taylor | last post by:
Hopefully a quick question. I remember seeing a guideline on Microsofts site that stated the recommended order for declaring members, properties, events and orders. As I am really trying to follow these guidelines I would like to find this site again however, it seems forever lost. Does anyone know where I might find this site? Thanks.
4
1694
by: Michael Maes | last post by:
Hi, I have a UserControl with some "Children" (e.g. one ComboBox & one Label). I add the UserControl on a Form. If I perform a recursive scan through that Form's Control-Collection the ..HasChildren-Method scans the Controls within the UserControl. This is a behavior I want to ommit. * Is there a way to hide the Controls contained...
2
1666
by: Daniel Friend | last post by:
Hello, I have added a custom usercontrol programically and all works fine... I would like to change some custom properties that I have set in that usercontrol. Any help would be greatly appreciated!!!! Thanks,
0
1363
by: Daniel Friend | last post by:
Hello, I have added a custom usercontrol programically and all works fine... I would like to change some custom properties that I have set in that usercontrol. Any help would be greatly appreciated!!!! Here is a sample of What I am doing:
1
1508
by: Dave Wurtz | last post by:
All, I have a custom control that has a textbox on it. I want to be able to set properties of the textbox in the IDE. I have exposed the textbox with a property and it now shows up in my properties window in the IDE. I can set attributes (i.e. character casing, etc.) but it will not 'save' those settings by writing it back to the source...
0
833
by: elziko | last post by:
I have a UserControl inside my project. When I click on the UserControl in the design view I get to also view all its properties in the property grid. I the change the AllowDrop property to True. However, when I then use this compiled UserControl in any other project AllowDrop defaults back to False. I assume this is by design but why?...
2
2786
by: badger | last post by:
Hi, I have created a usercontrol with a public property as follows: // default display type to single form. private DisplayType selectedDisplayType = LoginForm.DisplayType.SingleForm; public enum DisplayType {
3
1619
by: dowlingm815 | last post by:
I am trying to execute an event procedure after the user selects a drop-down off of an Access form. I have tried: - on exit - after update Looking for some suggestions...
3
1584
by: kjward | last post by:
i am creating a usercontrol having a number of somewhat inter-related custom properties such that when a certain value is selected for one, one of the other properties should not then be settable. how to do that? thanks
0
7408
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
7349
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
7590
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. ...
0
7688
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
5885
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...
0
3391
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
3391
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1817
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
968
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.