Hi Robert, This is a good tool. (for the source code view) I will try it. Thanks. Zor
zorifila
Posts
-
Inheriting CommonDialog / implementing CommonDialog::RunDialog() -
Implementing CommonDialog::RunDialog()Hi, Have anybody tried inheriting from CommonDialog class I want to know, how to implement the RunDialog() function in my derived class? Thanks
-
Implementing CommonDialog::RunDialog()Hi, Have anybody tried inheriting from CommonDialog class I want to know, how to implement the RunDialog() function in my derived class? Thanks
-
Inheriting CommonDialog / implementing CommonDialog::RunDialog()Hi, Have anybody tried inheriting from CommonDialog class I want to know, how to implement the RunDialog() function in my derived class? Thanks
-
GetInvocationList() equivalent in vbHi, "MyDelegate" is Just a Type. Not an instance. GetInvocationList() cannot be called on MyDelegate. Thanks, Zor
-
GetInvocationList() equivalent in vbThanks Graus... well, i did'nt explain it properly. I need to be able to access individual delegates attached to an Event. Lets look at a simple scenario...
Class MyClass
Public Delegate Sub MyDelegate(...)
Public Event MyEvent As MyDelegateprotected Sub OnMyEvent(...)
'RaiseEvent MyEvent(...) ' I do not want to do it this way. ' I want to be able to loop through each delegate attached to the event. . . **MyEvent.GetInvocationList()** ' VB Compiler does not allow this. . .
end Sub
end class
Thanks, Zor
-
GetInvocationList() equivalent in vbHi, How can i access the individual delegates attached to an Event? In C#, I can use the GetInvocationList() Method on a Delegate. How can i do this in vb.Net? Thanks, Zor
-
Persisting Property of userdefined Collection type.Hi, I have exposed a property in a UserControl. The Property is of Collection type. ( Collection of my Userdefined type). When I use this Control in a Form, the Forms Designer allows me to Edit the property (MyValues) using the Default Collection Editor UI. But the Changes made to the Collection are not persisted in the Form code by the Forms Designer.
//------------------------------------
class MyControl : UserControl
{MyTypeCollection m_values = new MyTypeCollection();
public MyTypeCollection MyValues
{
get
{
return m_values ;
}
set
{
m_values = value;
}
}}
//------------------------------------
class MyTypeCollection : CollectionBase
{
Add(){...}
Remove(){...}
}//------------------------------------
class MyType
{
int i;
bool b;public int XXX
{
get
{
return i;
}
set
{
i= value;
}
}public bool YYY
{
get
{
return b;
}
set
{
b= value;
}
}}
How can I make the Forms Designer generate code for the Collection Modified at Design time. Please someone Help me... Zor
-
VS.Net Collection EditorHi, I wrote a Collection Class(viz: MYCollection) (Derived from Collection Base). And have added methods for Add() and Remove(). I have used this Class in a Custom Control, and exposed a Property of type MyCollection. Now, the VS.Net IDE does show the Collection Editor Dialog Box for the Property,but when I add items to the collection using the Collection Editor, the changes are not persisted. (ie: The IDE does not Generate code for the Items added to the collection). What is to be done to persist the Items Added using the Collection Editor (ie: to make the VS.Net generate code for the Added Items, just like it does for ListView Items Collection, for Example) Someone please help me.... Thanks
-
VS.Net Collection EditorHi, I wrote a Collection Class(viz: MYCollection) (Derived from Collection Base). And have added methods for Add() and Remove(). I have used this Class in a Custom Control, and exposed a Property of type MyCollection. Now, the VS.Net IDE does show the Collection Editor Dialog Box for the Property,but when I add items to the collection using the Collection Editor, the changes are not persisted. (ie: The IDE does not Generate code for the Items added to the collection). What is to be done to persist the Items Added using the Collection Editor (ie: to make the VS.Net generate code for the Added Items, just like it does for ListView Items Collection, for Example) Someone please help me.... Thanks