473,403 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Toolbox problems


I have encountered the following problems when creating new controls that I have added to the toolbox :

1. When I click on the design panel containing a number of widgets I get a build error of "Object reference not set to
an instace of an object". It does not appear if I do a regular build. How can I identify where this problem is
happening? When I double click on the error it just takes me to the top of the source code for the panel but doesn't
indicate where it is having the problem.
2. Can I debug the toolbox drag and drop creation? I.e. when I drag a new widget onto a form or panel.
3. I have tried to capture resizing of a widget by implementing public override void OnResize so I can repaint the
widget properly. It doesn't seem to get captured when the widget gets resized - at least while resizing on the design
tab for the panel on which it was dropped. If I knew how to debug these then I might be able to figure out why.
Any information on how this process works and can be debugged would be welcome.

Thanks,

Steve
Nov 17 '05 #1
1 1284
Take a look in Windows Forms Tips and Tricks. The article on debugging
controls will help you out. If you've created a designer for your control
you'll be able to put breakpoints in there as well as in the control to see
what's happening when the control is created durnng design time.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"steve bull" <bu****@comcast.net> wrote in message
news:49********************************@4ax.com...

I have encountered the following problems when creating new controls that
I have added to the toolbox :

1. When I click on the design panel containing a number of widgets I get a
build error of "Object reference not set to
an instace of an object". It does not appear if I do a regular build. How
can I identify where this problem is
happening? When I double click on the error it just takes me to the top of
the source code for the panel but doesn't
indicate where it is having the problem.
2. Can I debug the toolbox drag and drop creation? I.e. when I drag a new
widget onto a form or panel.
3. I have tried to capture resizing of a widget by implementing public
override void OnResize so I can repaint the
widget properly. It doesn't seem to get captured when the widget gets
resized - at least while resizing on the design
tab for the panel on which it was dropped. If I knew how to debug these
then I might be able to figure out why.
Any information on how this process works and can be debugged would be
welcome.

Thanks,

Steve

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Slawomir Piotrowski | last post by:
Hello, I'm writing C# code and executing it using InstallUtilLib.dll from custom action during an installation process. It works fine. I've written some code to add an item (component) to...
3
by: Kevin Mellor | last post by:
Hello all, I hope someone can help me. I am not new to developing but am new to C# (assemblies etc) and V Studio 2003, although familiar with terminology from VS6. I am in the nightmare...
10
by: Nak | last post by:
Hi there, I'm having problems with the Toolbox in VB.NET 2002 Standard. I have 2 class libraries, 1 contains licensing classes and references nothing but standard namespaces and the other...
0
by: Fabio Cannizzo | last post by:
I have solution (mySolution) with 2 projects (myDLL and myEXE). The DLL contains a control (myControl) inheriting from Windows.Forms.UserControl. The output DLL is created in the dircetory...
4
by: Nadav Popplewell | last post by:
Hi everybody, I've install Visual studio Team Edition for Testers on my computers, And I can't seem to find how to show the toolbox. The documenation says there should be a 'Toolbox' menuitem...
0
by: ampeloso | last post by:
Hello, I am having some major problems with the toolbox in 2005. On one computer , when I add sqldatasource or accessdatasource from the toolbox,I get a control. On another it doesnt work(I get...
4
by: Suhaib | last post by:
Hi All, I'm using VS 2005 8.0.50727.42 (RTM.050727-4200), with .NET framework 2.0. Everything was working fine, but now suddenly I don't see my ToolBox icons, whether you are in design mode or...
4
by: Jules Winfield | last post by:
I'm using VS2005. I have a solution consisting of twelve projects. All projects are console/service apps except for one which is a WinForms app. There are no web projects. I'd say that I'm at...
3
by: eliben | last post by:
Biggest issue I have with Python is screen input and output. I am trying This is hardly an issue with Python. You'll run into it with all languages. You think wxPython is hard to master ? You...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.