all groups > vj# > january 2004 >
You're in the

vj#

group:

SeveralQuestions



SeveralQuestions MS Public
1/20/2004 3:56:22 PM
vj#: 1.) I want to refer to the BackgroundImage on the form I am using. However,
it tells me that it is not defined in this context. Whats wrong with this
code ?

InitializeComponent();
SkinForm(this,new Bitmap(BackgroundImage),Color.Cyan);

2.) If I do this

Bitmap image;

int a;

a=image.get_Height(); then it tells me that there is no method of that name,
but it appears when you do the image.

3.) How do I refer to the forms handle from within the form class.



Sorry for so many questions but I've been having a real bad time with J#



Regards.





and try to compile this





Re: SeveralQuestions Lars-Inge Tønnessen
1/20/2004 7:29:32 PM

I'm not sure I understand what you want to do.

[quoted text, click to view]

What is SkinForm() ?


[quoted text, click to view]

Bitmap image;
int a = 0;
a = image.get_Height();

Works fine here...

[quoted text, click to view]

System.IntPtr point = this.get_Handle();

--
Regards,
Lars-Inge Tonnessen
http://emailme.larsinge.com
http://www.larsinge.com

Re: SeveralQuestions MS Public
1/21/2004 1:16:00 PM
I discovered that J# does not support properties, so BackgroundImage had to
be replaced with get_BackgroundImage() or set_BackgroundImage( Bitmap )

Thanx


[quoted text, click to view]

AddThis Social Bookmark Button