473,406 Members | 2,745 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,406 software developers and data experts.

Re 2 : About GridTableStylesCollection problem

Thanks for your advice.

However, I have copy your script into test my project

The code is that :
Imports System.Windows.Forms
Public Class MilesBox
Inherits System.Windows.Forms.UserControl
Private _GridStyleCollection As GridTableStylesCollection
Public Property StylesCollector() As GridTableStylesCollection
Get
Return _GridStyleCollection
End Get
Set(ByVal Value As GridTableStylesCollection)
_GridStyleCollection = Value
End Set
End Property
end class

Then I create a new project and new vb form. I drag-drop the usercontrol
(milesbox) into the form. I click the milesbox and right click the property.
Find the StylesCollector
The value is still show nothing or empty (I know the normal case should show
"collection" on bold fonts). It show a small button caption as "..." I
click this button and try to add value in this collection. After edit and
click ok. The collection properties windows then close. But The value is
still show nothing or empty.
Anythings I miss to do ?
Thanks for your experts help
Michael Yip
VB.Net Beginner Developer.
"Ken Tucker [MVP]" <vb***@bellsouth.net> ¼¶¼g©ó¶l¥ó·s»D:ea**************@TK2MSFTNGP11.phx.g bl...
Hi,

Usually the get comes before the set in the property. You also we
returning the stylecollection wrong. Here is a real simple user control
with a stylecollection.

Public Class Class1
Inherits UserControl

Private _GridStyleCollection As GridColumnStylesCollection
Public Property StylesCollector() As GridColumnStylesCollection
Get
Return _GridStyleCollection
End Get
Set(ByVal Value As GridColumnStylesCollection)
_GridStyleCollection = Value
End Set
End Property

End Class

Ken
--------------------
"Michael" <la********@gmail.com> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
Dear All :

I have a problem about define property GridTableStylesCollection in
usercontrol.

The code show as follow :
Public Property StylesCollector() As GridTableStylesCollection
Set(ByVal Value As GridTableStylesCollection)
_GridStyleCollection= Value
End Set

Get

StylesCollector = _GridStyleCollection
End Get
End Property
where _GridStyleCollection is a friend type of GridTableStylesCollection
however, when I use windows form to out this control onto the form the
property of control StylesCollector show empty also the member in
property
windows always show empty even I have add object in it.
The problem shown as attachment

any idea to fix this problem ?

Thanks




Nov 21 '05 #1
0 1178

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

Similar topics

0
by: Bruce Davis | last post by:
I'm having a problem on windows (both 2000 and XP) with a multi-threaded tkinter gui application. The problem appears to be a deadlock condition when a child thread pops up a Pmw dialog window in...
11
by: Kostatus | last post by:
I have a virtual function in a base class, which is then overwritten by a function of the same name in a publically derived class. When I call the function using a pointer to the derived class...
117
by: Peter Olcott | last post by:
www.halting-problem.com
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
2
by: Michael | last post by:
Dear All : I have a problem about define property GridTableStylesCollection in usercontrol. The code show as follow : Public Property StylesCollector() As GridTableStylesCollection Set(ByVal...
4
by: Michael | last post by:
Dear all .. If I want to use develop a user control and declare a public property which the type is System.Windows.Forms.GridTableStylesCollection For example : Public Class LookAndView...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...
0
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,...
0
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...

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.