473,698 Members | 2,305 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with custom property.

I have added a ProgressBar control to StatusBar control and created a custom
property as below, to show the properties of the ProgressBar in Property
Window of StatusBar.

<Browsable(True )> _
Public Property ProgressBar() As ProgressBar
Get
Return ProgressBar1
End Get
Set(ByVal Value As ProgressBar)
ProgressBar1 = Value
End Set
End Property

This does shows the ProgressBar property in the Property Window of StatusBar
control with a expander node a + sign. When I click the node it drills down
the properties of ProgressBar. But there is a problem, this gives a drop down
box as well next to the ProgressBar property where user can assign another
ProgressBar control to it.

I don’t want this. All I want it to show just the properties of ProgressBar
control which is already added to the StatusBar control with a Heading
“ProgressBar properties.

Jul 21 '05 #1
3 1569
Job Lot,
Have you tried making the ProgressBar property ReadOnly?

<Browsable(True )> _
Public ReadOnly Property ProgressBar() As ProgressBar
Get
Return ProgressBar1
End Get
End Property

Hope this helps
Jay
"Job Lot" <Jo****@discuss ions.microsoft. com> wrote in message
news:AF******** *************** ***********@mic rosoft.com...
I have added a ProgressBar control to StatusBar control and created a
custom
property as below, to show the properties of the ProgressBar in Property
Window of StatusBar.

<Browsable(True )> _
Public Property ProgressBar() As ProgressBar
Get
Return ProgressBar1
End Get
Set(ByVal Value As ProgressBar)
ProgressBar1 = Value
End Set
End Property

This does shows the ProgressBar property in the Property Window of
StatusBar
control with a expander node a + sign. When I click the node it drills
down
the properties of ProgressBar. But there is a problem, this gives a drop
down
box as well next to the ProgressBar property where user can assign another
ProgressBar control to it.

I don't want this. All I want it to show just the properties of
ProgressBar
control which is already added to the StatusBar control with a Heading
"ProgressBa r" properties.

Jul 21 '05 #2
that did work. thanks

Is there any way to make the ProgressBar property work similar to Panels
property of StatusBar control. When user clicks on the ProgressBar property
it open a new editor window with ProgressBar property on the editor window
rather than having the drill down node right beside the Property. Just
curious to know how it works. Or is that only possible with collections.

"Jay B. Harlow [MVP - Outlook]" wrote:
Job Lot,
Have you tried making the ProgressBar property ReadOnly?

<Browsable(True )> _
Public ReadOnly Property ProgressBar() As ProgressBar
Get
Return ProgressBar1
End Get
End Property

Hope this helps
Jay
"Job Lot" <Jo****@discuss ions.microsoft. com> wrote in message
news:AF******** *************** ***********@mic rosoft.com...
I have added a ProgressBar control to StatusBar control and created a
custom
property as below, to show the properties of the ProgressBar in Property
Window of StatusBar.

<Browsable(True )> _
Public Property ProgressBar() As ProgressBar
Get
Return ProgressBar1
End Get
Set(ByVal Value As ProgressBar)
ProgressBar1 = Value
End Set
End Property

This does shows the ProgressBar property in the Property Window of
StatusBar
control with a expander node a + sign. When I click the node it drills
down
the properties of ProgressBar. But there is a problem, this gives a drop
down
box as well next to the ProgressBar property where user can assign another
ProgressBar control to it.

I don't want this. All I want it to show just the properties of
ProgressBar
control which is already added to the StatusBar control with a Heading
"ProgressBa r" properties.


Jul 21 '05 #3
that did work thanks.

Is there any way to make the ProgressBar property work similar to Panels
property of StatusBar control. When user clicks on the ProgressBar property
it open a new editor window with ProgressBar property on the editor window
rather than having the drill down node right beside the Property. Just
curious to know how it works. Or is that only possible with collections.

"Jay B. Harlow [MVP - Outlook]" wrote:
Job Lot,
Have you tried making the ProgressBar property ReadOnly?

<Browsable(True )> _
Public ReadOnly Property ProgressBar() As ProgressBar
Get
Return ProgressBar1
End Get
End Property

Hope this helps
Jay
"Job Lot" <Jo****@discuss ions.microsoft. com> wrote in message
news:AF******** *************** ***********@mic rosoft.com...
I have added a ProgressBar control to StatusBar control and created a
custom
property as below, to show the properties of the ProgressBar in Property
Window of StatusBar.

<Browsable(True )> _
Public Property ProgressBar() As ProgressBar
Get
Return ProgressBar1
End Get
Set(ByVal Value As ProgressBar)
ProgressBar1 = Value
End Set
End Property

This does shows the ProgressBar property in the Property Window of
StatusBar
control with a expander node a + sign. When I click the node it drills
down
the properties of ProgressBar. But there is a problem, this gives a drop
down
box as well next to the ProgressBar property where user can assign another
ProgressBar control to it.

I don't want this. All I want it to show just the properties of
ProgressBar
control which is already added to the StatusBar control with a Heading
"ProgressBa r" properties.


Jul 21 '05 #4

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

Similar topics

0
2839
by: CGuy | last post by:
URGENT HELP REQUIRED FROM GURUS Hi, I have a custom object that implements ICollection and IListSource. This object has also an enumerator defined for it which implements IEnumerator and IList. Now, I'm trying to bind object to a combo box. The bidning happens correctly, but I'm unable to set the DisplayMember property of the combo box (the count of items in the combo box gives me the correct value, but no items are displayed in the...
1
281
by: Michael Albanese | last post by:
I am building an ASP.Net web application that records employee incident data over several screens. I have built custom classes to hold this information as the user enters data. In order to persist the data, i am trying to use session memory. The problem is that when i try to cast the class that is in session memory into a class on my page and i get NOTHING! Actually, my watch window tells me that the class equals nothing...... Where am...
4
1915
by: Rudy | last post by:
Hello all, I'm sure there is, just can't figure it out. I have the RGB code and the color number. But the color doesn't exsist in Visual studio.net. Can I add this color to the system pallet it self, so I can add the custom color to fonts? I need to match as close as possible to the color I was given. Thanks Rudy
11
1916
by: milkyway | last post by:
Hello, I have an HTML page that I am trying to import 2 .js file (I created) into. These files are: row_functions.js and data_check_functions.js. Whenever I bring the contents of the files into this HTML file, all is OK but whenever the functions are separated (as it is now), when I run the page, I get the following error: Line 73, object expected.
6
1583
by: Steve Amey | last post by:
Hi all I want to be able to throw a custom error up the call stack. I have looked around and it seems as though it's possible, but I can't get it to work :o( Below is some sample code. ------------------------------------------------------------ Public Class MainForm Public Sub Show Form Try
0
1906
by: Brian Henry | last post by:
Ok I've never implemented a snap location before so I dont really know what im doing wrong here... anyways, I am making a custom slider control that takes dates as its values instead of integers... then taking that date range and finding dates specifiec between them (in a list of dates) and putting snap marks, so if you slide it near one of them it should snap to that tick, but that part i cant figure out. the rest seems ok so far... here...
0
5569
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
13
9707
by: Matt F | last post by:
I have a deployment project that I'm setting up. I need to perform a different custom action based on whether this is a first time install or an update. Does anyone have any idea if it's possible to set the Condition property of a custom action to determine if the currently running install is upgrading a previous installation and if so how? I'm also open to other methods of acheiving this functionality.
4
3896
by: Linda Liu[MSFT] | last post by:
Hi Moondaddy, I downloaded your sample project and run it and did see the problem on my side. There're three problems in the source code of your project. 1. You should move the following lines of code from the GetGeometry method within the CustomPolyLine class: _points.Add(new Point(10, 10));
0
1457
by: =?Utf-8?B?Sm9obkJhdGVz?= | last post by:
This is my first custom installer and essentially I needed to create one that installed windows installer 3.1 then installed .Net 2.0 Service Pack 1. I could not find a pre-packaged .Net 2.o SP 1 installer package anywhere so this is my attempt. The problem seems to be that when I first created it if .NET 2.0 was installed it would not install .NET 2.0 SP1 so I commented out the line where it checks but that leads the installer to try...
0
9157
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
9028
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...
1
8895
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6518
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
5860
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
4369
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
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
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

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.