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

Inherited control problem Compact Framework

Hi.
I have a problem inheriting PictureBox for Compact Framework.
I use my class that inherits PictureBox and then when I use my class
as control,
set all needed properties like Image, Size, Location the picture did
not appears when I run the application. I get white screen.
When I debug , I see that the Image property initializes corectly, and
contains the wright image. I cannot see where is the problem.
I didnt use any of the functionality I coded in my class.
It is same if I inherit PictureBox with a empty class and then use
that class.

Can someone tell me what is the problem.
Thanks.
Nov 16 '05 #1
2 1374
Can you please provide a sample of the code? It's hard to guess what the
problem could be without a sample.

Pete

"RawSteel" <ra******@abv.bg> wrote in message
news:fb**************************@posting.google.c om...
Hi.
I have a problem inheriting PictureBox for Compact Framework.
I use my class that inherits PictureBox and then when I use my class
as control,
set all needed properties like Image, Size, Location the picture did
not appears when I run the application. I get white screen.
When I debug , I see that the Image property initializes corectly, and
contains the wright image. I cannot see where is the problem.
I didnt use any of the functionality I coded in my class.
It is same if I inherit PictureBox with a empty class and then use
that class.

Can someone tell me what is the problem.
Thanks.

Nov 16 '05 #2

I found the problem :)
I didn't initialize the Parent property with the form.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3

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

Similar topics

13
by: Will Pittenger | last post by:
I have a Control derived class. When the parent of the control changes the control's Location property, the stack overflows. I have not found a way to find out what was on the stack when it does...
7
by: Greg | last post by:
I have a base class for a label. I want to set a property at the base class level, say AutoSize = true. Then at the form level I want to be able to overide the base class setting so that I can...
13
by: Will Pittenger | last post by:
I have a Control derived class. When the parent of the control changes the control's Location property, the stack overflows. I have not found a way to find out what was on the stack when it does...
3
by: Wayne Brantley | last post by:
VS2005 RTM Create a web user control to use as a base class for other web user controls. Now, create a new web user control, change the class it inherits from to your base class and compile....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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...

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.