Harri
Joined: 21 Nov 2005 Posts: 13
|
Posted: Tue Mar 25, 2008 2:51 pm Post subject: Showing tooltip throws an exception |
|
|
Hi all,
In the GetCelldata, we specifiy a tooltip that contains a string. This string looks like “Init {0}, {1} – command”. It is just a string, the {0}, {1} do not specify any arguments, they are part of the string. However, when virtual tree wants to show this string in the tooltip, it tries to fill in the {0}, causing an exception (see below). How can this be solved?
Thanks in advance.
Harri
Exception - stacktrace:
at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at System.String.Format(String format, Object arg0)
at Infralution.Controls.VirtualTree.CellData.GetToolTipText()
at Infralution.Controls.VirtualTree.CellWidget.GetToolTipText()
at Infralution.Controls.VirtualTree.CellWidget.OnMouseEnter(MouseEventArgs e)
at Infralution.Controls.WidgetControl.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Infralution.Controls.BorderedControl.WndProc(Message& m)
at Infralution.Controls.VirtualTree.VirtualTree.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Nova.Program.Main(String[] args) in C:\Products\Nova\NovaCV\Nova\Program.cs:line 93
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart() |
|