PC Review


Reply
Thread Tools Rate Thread

Controls do not seem to render correctly

 
 
Volker Lehmann
Guest
Posts: n/a
 
      27th Jun 2006
Hello,

I am encountering strange problems in my current CF forms application.


Sometimes controls will be rendered incorrectly, e.g. a label being
rendered like a button - with a black border and a white background that
changes to black when clicked with the pen and changes back to white
afterwards. Once or twice the form itself showed the same behaviour.

At other times events simply won't be handled. For example, clicking on
the second tab of a tab control will highlight the selected tab as it
should, but the first tab will still be shown. Or buttons and menu
entries can be clicked (the controls do display the click event), but
the handlers won't be called...

Those problems do not occur on every form nor do they show on a given
form every time the form is displayed. So one form may work correctly
one time, but after restarting the application the very same form could
cause one of the mentioned problems.


The system does not show any error messages. Either the controls will no
longer handle any events, or the application exits without an error. In
that case Visual Studio shows the following message (even during tests
on an emulator):

"The remote connection to the device has been lost. Please verify the
device connection and restart debugging."

I am using Visual Studio 2005 Professional Edition and the .NET Compact
Framework 2.0. The target OS is Windows Mobile 5.0. I have been testing
on different (Mobile 5) devices and emulators.


Has anybody experienced something like that before? What could be the
source of such erroneous application behaviour? Right now I don't have
the slightest idea where to start searching for answers...

Any help is much appreciated.


Thanks,

Volker Lehmann
 
Reply With Quote
 
 
 
 
=?Utf-8?B?YWJjZGVm?=
Guest
Posts: n/a
 
      28th Jun 2006
Hi lehman,

I experienced the similar kind with .net 2003 CF1.1 application ,but with
tab control with tabstops were not properly ordered (like if we design as
abcd, at runtime they will be adcb etc..) at runtime.The only solution I
know with this is int the Forms initialize component method, you have to
manually modify the values to the controls.

I too experienced the following error condition. But don;t know how to deal
with it.
"The remote connection to the device has been lost. Please verify the
device connection and restart debugging."



"Volker Lehmann" wrote:

> Hello,
>
> I am encountering strange problems in my current CF forms application.
>
>
> Sometimes controls will be rendered incorrectly, e.g. a label being
> rendered like a button - with a black border and a white background that
> changes to black when clicked with the pen and changes back to white
> afterwards. Once or twice the form itself showed the same behaviour.
>
> At other times events simply won't be handled. For example, clicking on
> the second tab of a tab control will highlight the selected tab as it
> should, but the first tab will still be shown. Or buttons and menu
> entries can be clicked (the controls do display the click event), but
> the handlers won't be called...
>
> Those problems do not occur on every form nor do they show on a given
> form every time the form is displayed. So one form may work correctly
> one time, but after restarting the application the very same form could
> cause one of the mentioned problems.
>
>
> The system does not show any error messages. Either the controls will no
> longer handle any events, or the application exits without an error. In
> that case Visual Studio shows the following message (even during tests
> on an emulator):
>
> "The remote connection to the device has been lost. Please verify the
> device connection and restart debugging."
>
> I am using Visual Studio 2005 Professional Edition and the .NET Compact
> Framework 2.0. The target OS is Windows Mobile 5.0. I have been testing
> on different (Mobile 5) devices and emulators.
>
>
> Has anybody experienced something like that before? What could be the
> source of such erroneous application behaviour? Right now I don't have
> the slightest idea where to start searching for answers...
>
> Any help is much appreciated.
>
>
> Thanks,
>
> Volker Lehmann
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to render pixels of a bitmap correctly? Seventh Son Microsoft Dot NET Framework 0 18th Mar 2009 03:45 PM
IE AND Mozilla do not render correctly joe nedumgottil Windows XP Internet Explorer 1 2nd May 2006 11:09 PM
UTF-8 in ASCX will not render correctly Peter Styk Microsoft ASP .NET 0 12th Jan 2005 02:40 AM
why won't mhtml document render correctly. Peter Rilling Windows XP Internet Explorer 0 8th Jan 2004 01:04 AM
Controls don't render correctly in VS.NET with CSS Boris Zakharin Microsoft ASP .NET 0 6th Aug 2003 02:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:33 AM.