Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 15th, 2006, 09:11 AM
Authorized User
 
Join Date: May 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ColdFusion
Default Error creating window handle.

I've an windows form application in c# vs 2005.

When I click on a link that opens up a tabControl I get the "Error creating window handle.". Now there are 4 tabPages all with ~10 lables and ~10 textBoxes and ~2 comboBoxes, the comboBoxes all has their comboBox.DataSource = an arry of objects, the objects has about 12 strings/int's. Now these ArrayLists should for the future be able to contain maybe thousands of these objects.

I need help on how to solve this one. I do not want to reuse the same textBoxes or something like that for frankly it aint that many of those.

All help would be appreciated.

 
Old May 15th, 2006, 09:57 AM
Authorized User
 
Join Date: May 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ColdFusion
Default

My problem was this:

            comboBox_FindCustomerByName.SelectedIndex = -1;
            comboBox_FindCustomerByName.Text = "Sök kund";

and

            comboBox_FindCustomerByNumber.SelectedIndex = -1;
            comboBox_FindCustomerByNumber.Text = "Sök kund";

Are in the same class but in different methods. I hade FindCustomerByNumber changes in the FindCustomerByName method instead of FindCustomerByNumber method and vice versa. Silly mistake. However, how that could generate the error I got is beyond me and would be interresting to know.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help to indicate Window Handle Error ponn_arun C# 1 May 27th, 2007 11:34 PM
obtaining handle of the window C# nirmal_thapa C# 0 January 30th, 2007 09:10 AM
Error creating window handle sarahmapg ADO.NET 1 January 18th, 2006 06:30 AM
Error creating window handle Bob Bedell Pro VB.NET 2002/2003 2 July 30th, 2004 09:27 AM
How to handle this error Maxood Classic ASP Databases 2 June 27th, 2004 02:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.