Bug in Tab Control?

Bug in Tab Control?

Post by Ian Posne » Wed, 18 Feb 2004 19:09:00


oes anyone know why I'm getting this error? It occurs when I flip from tab
page to tab page.



Message: Error creating window handle.

HashCode: 256

Source: System.Windows.Forms

TargetSite: Void SetVisibleCore(Boolean)

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

Base Exception Message: Object reference not set to an instance of an
object.

Base Exception HashCode: 256

Base Exception Source: System.Windows.Forms

Base Exception TargetSite: Void SetVisibleCore(Boolean)

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

StackTrace: at System.Windows.Forms.Control.SetVisibleCore(Boolean value)

at System.Windows.Forms.Control.set_Visible(Boolean value)

at System.Windows.Forms.TabPage.set_Visible(Boolean value)

at System.Windows.Forms.TabControl.UpdateTabSelection(Boolean uiselected)

at System.Windows.Forms.TabControl.OnSelectedIndexChanged(EventArgs e)

at System.Windows.Forms.TabControl.WmSelChange(Message& m)

at System.Windows.Forms.TabControl.WndProc(Message& m)

at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)

at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd,
Int32 msg, IntPtr wParam, IntPtr lParam)

at System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, IntPtr
lparam)

at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, Message&
m)

at System.Windows.Forms.Control.WmNotify(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

at System.Windows.Forms.ContainerControl.WndProc(Message& m)

at System.Windows.Forms.Form.WndProc(Message& m)

at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)

at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc,
IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)

at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)

at System.Windows.Forms.Control.DefWndProc(Message& m)

at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button,
Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.TabControl.WndProc(Message& m)

at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.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.ComponentManager.System.Windows.Forms.UnsafeNativeMetho
ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason,
Int32 pvLoopData)

at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason,
ApplicationContext context)

at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)

at System.Windows.Forms.Application.Run(Form mainForm)

at awesome.forms.Startup.Main() in c:\documents and settings\posnei2\my
documents\visual studio projects\awesome\awesome
 
 
 

1. A2000 tab control tab order bug

2. tab-text-paint bug in Tab Control in WIN32

Hi everybody:

I am working under WIN32, VC6. I create a tab control by CreateWindow()
with class
WC_TABCONTROL and style WS_CHILD | TCS_OWNERDRAWFIXED.
My problem is: when I have several tabs that do not fit on the control
for example, tab labeled "tab1" "tab2" ... "tab8", and only tab1 to tab5 is
shown, tab6 is shown partly, right after tab6 is 2 scroll buttons: < and
buttons!!! and if i click scroll button < or >, the paint is well.

can anyone tell me why? 3x.

ps: when I add a new tab, i use:
TCITEM tie;
tie.mask = TCIF_TEXT | TCIF_IMAGE | TCIF_PARAM;
tie.iImage = -1;
tie.pszText = a-string;
tie.lParam = (LPARAM)TabFormWidget; ////my private data
...
does this effect?

3. Microsoft!!!!! A2000 tab control tab order bug

4. tabbed control within tab of tabbed control , how ???

5. Tab control in one of the tabs of another tab control

6. XP SP2 active x control,add-ins,plug-ins nightmare

7. WIN XP SP2 active X controls, plug ins, add ins, downloading software

8. WIN XP SP2 active X controls, plug ins, add ins, downloading s

9. Tab control on tab control

10. Insert a tab control on a page of another tab control

11. Tab control within another tab control

12. Control + Tab between subforms on tab control pages ACC 2002

13. why MFC tab control looks different from .net compact framework tab control ?

14. tab control hosting another tab control

15. Tab control within a tab control