473,382 Members | 1,329 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,382 software developers and data experts.

buttons disappeared

Hi,
I'm not sure what happened here, but I had a whole set of tabpages with
home-made buttons on them. A shortened version of the class I wrote them in
is here:

using System;
using System.Windows.Forms;
using System.Drawing;

namespace ToleranceUnits
{
public class Button3x : CheckBox
{
public Button3x()
{
this.Appearance = Appearance.Button;
this.gmcm = "gm-cm";
this.gmin = "gm-in";
}

private string gmcm;
private string gmin;

public string Gmcm
{
get
{
return this.gmcm;
}
set
{
this.gmcm = value;
}
}
}
}

Suddenly, when I tried to run the debug, it complained that it couldn't find
ToleranceUnits.Button3x. So I removed the home-made tool from the toolbox
and re-added it. Now it can find Button3x, but it still won't run (and the
buttons don't appear on the design tabs). The error message is:

An unhandled exception of type 'System.NullReferenceException' occurred in
HCAUT.exe
Additional information: Object reference not set to an instance of an object.

This has happened once before and I just re-created all the buttons, but I'm
wondering if there's an easier (and quicker) way to fix this. Also, what did
I do to make it angry in the first place?

Thanks,
Melanie

Nov 17 '05 #1
1 1158
It sounds as though you might be dealing with a known race condition in
visual studio.
Here's a blog post describing it:
http://spaces.msn.com/members/mwadams/Blog/cns!1pAMOzaH98ZfHK1uhQS5Bd5g!111.entry

Here's a followup.
http://spaces.msn.com/members/mwadams/Blog/cns!1pAMOzaH98ZfHK1uhQS5Bd5g!141.entry

There is a hotfix for VS 2003 that is supposed to fix the problem. You will
have to open a support incident to receive the hotfix, but the incident
should be free of charge.

"melanieab" <me*******@discussions.microsoft.com> wrote in message
news:C5**********************************@microsof t.com...
Hi,
I'm not sure what happened here, but I had a whole set of tabpages with
home-made buttons on them. A shortened version of the class I wrote them
in
is here:

using System;
using System.Windows.Forms;
using System.Drawing;

namespace ToleranceUnits
{
public class Button3x : CheckBox
{
public Button3x()
{
this.Appearance = Appearance.Button;
this.gmcm = "gm-cm";
this.gmin = "gm-in";
}

private string gmcm;
private string gmin;

public string Gmcm
{
get
{
return this.gmcm;
}
set
{
this.gmcm = value;
}
}
}
}

Suddenly, when I tried to run the debug, it complained that it couldn't
find
ToleranceUnits.Button3x. So I removed the home-made tool from the toolbox
and re-added it. Now it can find Button3x, but it still won't run (and
the
buttons don't appear on the design tabs). The error message is:

An unhandled exception of type 'System.NullReferenceException' occurred in
HCAUT.exe
Additional information: Object reference not set to an instance of an
object.

This has happened once before and I just re-created all the buttons, but
I'm
wondering if there's an easier (and quicker) way to fix this. Also, what
did
I do to make it angry in the first place?

Thanks,
Melanie

Nov 17 '05 #2

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

Similar topics

2
by: Stéphane Ninin | last post by:
Hello, I have just installed python 2.3 with many other libs, including PIL, (from http://www.pythonware.com/products/pil/), version 1.1.4 for Python 2.3b1. Am I dreaming or has the script...
2
by: Mike Thomas | last post by:
In Access 2000 on Citrix, we have an app which uses an MDE with a customized and limited menu bar, "AppMenu" across the top of the Access screen. This menu bar is specified in the "Startup" option...
2
by: j.mandala | last post by:
This had got to be something obvious that I am too blind to see! Funny problem: one of my users has my application linked to a SQL Server Backend. Front end it Access XP (SP3). The first form...
8
by: Ray Greene | last post by:
I was working in Access and everything disappeared from the screen. When I closed and reopened the file there was no switchboard. I can open tables and forms etc if I select a category from the...
2
by: djc | last post by:
On the page_load event I am querying a database and binding data to some text boxes, list boxes, and a repeater control. When the page loads it uses the value of one of the database fields (status)...
5
by: benoit | last post by:
I heve this webform with a checkboxlist and a button. Based on which checkboxes are checked, several textboxes and Buttons are generated. When I click one of these buttons, the page goes in...
12
by: Rob Nicholson | last post by:
We've implemented functionality to allow a user to download a document (any document type) from the IIS server using the following code: Response.Clear() Response.ContentType =...
25
by: PhilBowen | last post by:
I am using Access 2003. I want to synchronise sub forms via buttons shown on the main form. The main form provides information for each application that is received. The sub forms accessed via...
2
by: Wayne | last post by:
I've been having a click around Access 2007 this afternoon and have discovered some things that range from annoying to alarming. My Access 2003 menu bars, which I, like many others, use...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.