private void tvwACH_NodeMouseHover(object sender, TreeNodeMouseHoverEventArgs e)
{
string strFile = string.Empty;
if (e.Node.Parent.Text == "FileHeader")
{
strFile = e.Node.ToString();
string str = strFile.Substring(10);
StringComparison compareType = StringComparison.InvariantCultureIgnoreCase;
string fileName = Path.GetFileNameWithoutExtension(str);
string extension = Path.GetExtension(str);
if (extension.Equals(".txt", compareType))
{
StringBuilder osb = new StringBuilder();
objFileHeader.getFileHeader(str, out osb);
e.Node.ToolTipText = Convert.ToString(osb);
}
}
But if i had my mouse on the root node i am getting an error as null exceptio handled. If i had my mouse hover the root node nothing should be happened. Can any one help me please.
Dorababu MekaPosted Jun 17, 2011, 4:01 AM
ChaitanyaPosted Jun 17, 2011, 4:53 AM
ChaitanyaPosted Jun 17, 2011, 4:00 AM
Ish BandhuPosted Jun 17, 2011, 2:19 AM