WebBrowser control - CF 2, C#. Full screen?

S

Steve Howard

I added a web browser control into my project yesterday. I want to use it to
present Flash content, full-screen.

It seems that no matter what settings I choose, the WebBrowser will not ever
let the Flash movie fill the PDA screen.

The movie was published at 240x320 resolution. The HTML says it is that
size. I've tried publishing it larger, and manually editing the HTML to make
the Flash file appear larger.


In the HTML I added this css to make the html file margin free

<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>



The WebBrowser is set to full screen, but I have also tested it larger than
full screen. I have experimented with the various publishing options
available in Flash. I've tried numerous other things (scale settings for
instance) without success.


Nothing I have tried will get the Flash movie to fill the screen.


Is this a known bug? Or am I doing something wrong? Anyone know of a
workaround?


TIA


Steve
 
M

Mark Arteaga

This may be a problem with the flash player for PPC. I have run into the
same problem when playing with flash, PPC and OpenNETCF SDF WebBrowser.
Have not tried it with the CF2.0 WebBrowser. I overcame this by setting
the background color of the HTML page to the same as the flash object so
it somewhat blends.

HTH
________________________________________
Mark Arteaga
..NET Compact Framework MVP
http://www.opennetcf.com | http://blog.markarteaga.com
 
S

Steve Howard

This may be a problem with the flash player for PPC. I have run into the
same problem when playing with flash, PPC and OpenNETCF SDF WebBrowser.
Have not tried it with the CF2.0 WebBrowser. I overcame this by setting
the background color of the HTML page to the same as the flash object so
it somewhat blends.


Thanks I burned up about 3 hours yesterday trying to figure out what I was
doing wrong. Nice to know it's not just my ignorance.


For this particular file, changing the background is not enough, because it
has been built to be viewed full-screen (like it has a Close button
top-right for e.g.). I can easily use that workaround for future projects
though.


Thanks


Steve



--
Team Macromedia Volunteer - Authorware
My blog - http://stevehoward.blogspot.com/
Blog RSS - http://stevehoward.blogspot.com/atom.xml
Authorware tips - http://www.tomorrows-key.com

http://www.eurotaac.com
 
G

Guest

If you set the widh and height on the object tag and embed src to 240x320 the
WeBrowser will show it full screen. The only problem is that it shows a
scrollbar, but you can make the control bigger then the screen and hide it.

Thx... Alex
 
S

Steve Howard

If you set the widh and height on the object tag and embed src to 240x320
the
WeBrowser will show it full screen. The only problem is that it shows a
scrollbar, but you can make the control bigger then the screen and hide
it.

That was the first thing I had.

The control is full screen, but the content within the control has a border
of about 10 pixels all around the screen which shows the web page
background. I spent hours messing about with different settings in the
browser, settings in Flash and settings in C# and *nothing* I tried would
completely remove the gap around the Flash movie.


Steve
 
S

Sergey Bogdanov

Try to reset margins in this way instead:

<html>
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
....
</body>
</html>
 
S

Steve Howard

Try to reset margins in this way instead:

<html>
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
...
</body>

Thanks for the suggestion.

Ahhh - I thought that might have been it, but no :-(





Steve
 
S

Sergey Bogdanov

Hm. Did you compare the behaviour with <body> and with <body ...> from
my previous post? If it decrease spaces but not completely I have one
more solution for you.

Try to make wrapper for WebBrowser control - put browser into Panel
control, set the .Location to (-5, -5) and the .Size (PanelWidth + 10,
PanelHeight + 10). The panel should cover the gap around. Probably you
have to set a bit different values; I think you've got the idea.
 
S

Steve Howard

Hm. Did you compare the behaviour with <body> and with <body ...> from
my previous post? If it decrease spaces but not completely I have one more
solution for you.

Try to make wrapper for WebBrowser control - put browser into Panel
control, set the .Location to (-5, -5) and the .Size (PanelWidth + 10,
PanelHeight + 10). The panel should cover the gap around. Probably you
have to set a bit different values; I think you've got the idea.

Nice idea. Still, nothing I try (and I have tried for hours, even though I
promised to leave it alone!) will get the browser control to show the Flash
file at the full 240x330 size. It's as if somewhere it is hard-coded to not
show anything more than 215x305 (or similar).

I don't see that it is the Flash ActiveX at fault -- it plays full screen
via other methods, and as we all know will scale to any size ordinarily.


<sigh> I really have to move on to something else. Sometimes being obsessive
doesn't do us any good :)


Steve
 

Rui

Joined
Apr 16, 2007
Messages
2
Reaction score
0
how you add the cdd to the html?

hy, i read your question and i verify that you told that you add css to the html, did you do that using the web browser control?

I need modify the page that i want navigate because, i develop a web browser in VS2005 c# using the webbrowser control, and one of my options is "dont load the images", the solution that i find is access to the page that i want navigate and if the option is enable, remove the image tag (img) of the html page.

thanks, and i hope that you have the solution of my provblem :D
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top