-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: Prasad Naik
Message 1 in Discussion

Hi All,
This query is in continuation with my previous query.
(http://groups.msn.com/MumbaiUserGroup/general.msnw?action=get_message

In my code I am trying to add a new node to the tree control but getting the following 
error. 

************** Exception Text **************
System.Runtime.InteropServices.COMException (0x800A017F): Property is read-only
 at MSComctlLib.NodesClass.set_ControlDefault(Object& Index, Node ppNode)
 at PropasalWizard.frmMaster.DisplayHeaders() in 
E:\ProposalWizard\VBCode\PropasalWizard.NET\Master.vb:line 3198
   at PropasalWizard.frmMaster.cboModelID_SelectedIndexChanged(Object eventSender, 
EventArgs eventArgs) in E:\ProposalWizard\VBCode\PropasalWizard.NET\Master.vb:line 1219
   at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
   at System.Windows.Forms.ComboBox.WndProc(Message& m)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr 
wparam, IntPtr lparam)

The exact point where I get this exception is ,

Dim CurNode As MSComctlLib.Node
�

CurNode = treHdrLevel.Nodes.Add(ParentNode.Index, 
MSComctlLib.TreeRelationshipConstants.tvwChild, NodeKey, �SomeText�) 

Is set_ControlDefault() method deprecated/not supported? 
What can be the solution to this problem?
(PS: Please find the attached file for reference)
Thanks And Regards,
Prasad.
View Attachment(s):
http://groups.msn.com/MumbaiUserGroup/_notifications.msnw?type=msg&mview=1&parent=1&item=4650
-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to