Suriyan Suresh
Suriyan Suresh

Reputation: 3024

light weight browser control for c# application

is any light weight browser control available for c# application other than builtin web browser control, when i am using IE or Webkit control for embedding it will consumes 80 MB Memory to render a flash website of(800*600 resolution). how can i reduce the memory
EDIT1:
webkit for .net available webkitdotnet.sourceforge.net which is similar to web browser control i am tested it

Upvotes: 5

Views: 3514

Answers (6)

alimbada
alimbada

Reputation: 1401

You could try Awesomium (yes, the name is slightly /facepalm worthy ;)). It's based on Chrome (which uses Webkit) and is free for non-commercial use (commercial licensing is also available) and there is a CodePlex project called AwesomiumDotNet that provides a .NET wrapper for it.

I haven't used it yet myself, but came across it doing some research into embedding a Webkit-based browser into an .NET/WPF app.

Upvotes: 0

Keltex
Keltex

Reputation: 26436

If you're just trying to embed Flash, This tutorial describes how to do it:

Embedding a flash player control in a.NET winforms application

The key here is to add the "Shockwave Flash Object" COM object to your project. You'll then have a Shockwave Flash Object control in the toolbox which you can drag onto the form. Set the Movie property to the .swf object.

Then you can skip the whole browser.

Upvotes: 5

Patrick Klug
Patrick Klug

Reputation: 14411

Does the website when you open it in IE consume less memory? I doubt that you can improve the memory consumption. It probably is just how much the website needs.

If you simply look for an alternative to the WebBrowser control, you can try the already mentioned techniques but I doubt that you will get better results.

Upvotes: 1

Sasha Chedygov
Sasha Chedygov

Reputation: 130947

Flash as in Adobe Flash? In that case, it's most likely the Flash content that is taking up most of the memory, which means switching rendering engines will do very little to improve memory usage. You're stuck with what you have.

Honestly though, 80MB isn't much at all. Why are you worried about memory usage? Is it a confirmed bottleneck in your application?

Upvotes: 1

Pierreten
Pierreten

Reputation: 10147

You could try embedding WebKit into a .net app.

Upvotes: 0

AngryHacker
AngryHacker

Reputation: 61646

There is Mozilla embedding available.

Upvotes: 3

Related Questions