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

Red "X" displayed instead of controls

i have a form on which we have a bunch of controls when the form is
loaded the panels & radio buttons are not displayed but red rectangles
with "X" accross them are put in its place. this behavior is not
consistent except for on one customer site accross the entire citrix
farm & stand alone PCs

any help would be appricated

thanks

Jun 8 '06 #1
4 7536
AddAdd wrote:
i have a form on which we have a bunch of controls when the form is
loaded the panels & radio buttons are not displayed but red rectangles
with "X" accross them are put in its place. this behavior is not
consistent except for on one customer site accross the entire citrix
farm & stand alone PCs


red crosses in controls mean one thing: an exception occured while the
control was interacting with the bound objects. As in general the .NET
vanilla controls swallow exceptions or don't give much info what
happened, it can be a pain to track down what happened, but as it
happens in one occasion, it might be easily trackable now you know an
exception occured during databinding (thus when the control read the
data from the bound controls)

FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Jun 9 '06 #2
none of the controls on the form are databound....

Frans Bouma [C# MVP] wrote:
AddAdd wrote:
i have a form on which we have a bunch of controls when the form is
loaded the panels & radio buttons are not displayed but red rectangles
with "X" accross them are put in its place. this behavior is not
consistent except for on one customer site accross the entire citrix
farm & stand alone PCs


red crosses in controls mean one thing: an exception occured while the
control was interacting with the bound objects. As in general the .NET
vanilla controls swallow exceptions or don't give much info what
happened, it can be a pain to track down what happened, but as it
happens in one occasion, it might be easily trackable now you know an
exception occured during databinding (thus when the control read the
data from the bound controls)

FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------


Jun 9 '06 #3
Like Frans said this happens when an exception occurs while the control
is processing one of the windows messages. It's probably WM_PAINT. At
least that's where I've seen it before. In that particular case I
determined the problem was caused by another thread accessing the
control. Controls can only be accessed from the thread that created
them. I don't know if that's causing the problem in your case, but
it's something to consider.

Brian

AddAdd wrote:
i have a form on which we have a bunch of controls when the form is
loaded the panels & radio buttons are not displayed but red rectangles
with "X" accross them are put in its place. this behavior is not
consistent except for on one customer site accross the entire citrix
farm & stand alone PCs

any help would be appricated

thanks


Jun 9 '06 #4
thatks, that pointed me in the right direction, it seems that one of
teh 3rd party control (farpoint spread) we are using was changing the
threading model. this was working fine untill we upgraded to VS2005
which caused all sorts of hell with COM interop....
Brian Gideon wrote:
Like Frans said this happens when an exception occurs while the control
is processing one of the windows messages. It's probably WM_PAINT. At
least that's where I've seen it before. In that particular case I
determined the problem was caused by another thread accessing the
control. Controls can only be accessed from the thread that created
them. I don't know if that's causing the problem in your case, but
it's something to consider.

Brian

AddAdd wrote:
i have a form on which we have a bunch of controls when the form is
loaded the panels & radio buttons are not displayed but red rectangles
with "X" accross them are put in its place. this behavior is not
consistent except for on one customer site accross the entire citrix
farm & stand alone PCs

any help would be appricated

thanks


Jun 13 '06 #5

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

Similar topics

5
by: Dani | last post by:
Hello everybody, I have some code that disables form elements on body load, but I notice when I hit the "back" button, I need to re-enable the form elements (that is done by clicking on a radial...
15
by: Sander Tekelenburg | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The HTML specs speak of "replaced" and "non-replaced" elements, yet for the life of me I can't find an explanation of what "replaced" is supposed...
2
by: news.bellatlantic.net | last post by:
I created a for with file inputs (<input type=file.../>) I named them file1, file2, file3 etc. How do I access them in the code behind without actually calling each one by name (there are 21 of...
2
by: crjunk | last post by:
I'm trying to write a piece of code that will programatically save a record automatically without me having to add a new ' Row.Item("ADD1") = txtAdd1.Text.Trim.ToUpper ' type command each time I...
4
by: bennett | last post by:
How can I do a loop from 1 to 5, where on line 1 I print 1 space followed by a button, on line 2 I print 2 spaces followed by a button, on line 3 I print 3 spaces followed by a button, etc.? I...
8
by: Ravi Ambros Wallau | last post by:
Hey guys: What can I do when an "Error Creating Control" is displayed on the form (instead of the control), and a tooltip indicating the error never is displayed? Is there some log, some hidden...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
7
kcdoell
by: kcdoell | last post by:
Good morning everyone: I created a form and set the default view as a continuous form. Basically the form is displaying records in which the user can add or edit new ones. The record source for...
7
by: j4richard | last post by:
Help please, I am getting this "Unhandled Exception has occurred in your application" " A Generic error occurred in GDI+" See the end of this message for details on...
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: 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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.