|
Hi,
I have a winForm that hosts a webcontrol. Is there any way I can save the page displayed by the control to jpg?
thanx
|
|
|
|
|
|
I tried the following in the webBrowser1_Navigated handler, but the image is blank:
Bitmap bitmap = new Bitmap(webBrowser1.Width, webBrowser1.Height);
webBrowser1.DrawToBitmap(bitmap, new Rectangle(new Point(), webBrowser1.Size));
bitmap.Save("C:\\test.jpg", ImageFormat.Jpeg);
bitmap.Dispose();
any ideas?
thanx
|
|
|
|
|
last time I did that with a WebBrowser, the image was black, not blank!?
And no, I haven't found a solution yet (I haven't been looking very hard either).
|
|
|
|
|
Hi,
Apparently using DrawToBitmap on WebBrowser control works only for some sites. [^]
I also found this[^], which might help you. But i haven't tried it yet.
Regards,
|
|
|
|
|
can someone tell what third party components are and how can one integrate them in once programs?thanks in advance........
|
|
|
|
|
djsproject wrote: can someone tell what third party components are
Components written by a third party; that is to say not by the provider of your development environment (e.g. Microsoft) and not by you. How you integrate them into your program depends entirely on what sort of components they are and what they are designed to do.
MVP 2010 - are they mad?
|
|
|
|
|
can u give me an example to illustrate more
|
|
|
|
|
djsproject wrote: can u give me an example to illustrate more
Example of what? I just explained that third party products are made by other people, I have no idea which ones you are interested in. There are thousands on the internet for everything associated with computing.
MVP 2010 - are they mad?
|
|
|
|
|
You have been given the facts, now go and do your own homework.
Bob
Ashfield Consultants Ltd
Proud to be a Code Project MVP
|
|
|
|
|
|
Project 1
I have four classes
class1
this contains the variables, properties and constructors
suppose
private string abc;
Interface2
This contains interfaces
void a1();
class3
this will have function definitions. basically this will contains functions to do the
database interactions
public void a1()
{
}
class4
this will inherit Interface 2 and will override the definition.
public void a1()
{
class3 a = new class3();
a.a1();
}
Project 2
class5
this will have function
public static Interface2 Getclass4_Details()
{
return new class4();
}
Project 3
In the form button click
i am doing
Interface2 Obj = null;
Obj = project2.class5.Getclass4_Details();
obj.a1();
I am approaching in the above way to do database interaction. Am I approaching i the right direction ?
|
|
|
|
|
abcurl wrote: Am I approaching i the right direction ?
I suspect not, but it is difficult to understand what you are trying to achieve. The only thing I would say is that this looks extremely complicated; are you sure you need so many classes and interfaces?
MVP 2010 - are they mad?
|
|
|
|
|
I am trying to do database interaction using the factory pattern.
Please help
|
|
|
|
|
I would suggest looking at some of the links here[^]. It is not a simple matter of a few lines of code, you will need to study the subject in some depth to get a workable solution.
MVP 2010 - are they mad?
|
|
|
|
|
It's not immediately clear to me why you need class4 as well as class3. What value do you gain by having class4 in there instead of having class3 implement interface 2? Class 4 seems to do nothing but bucket-pass calls straight on to class 3.
By the way, better names might make the example a bit easier to understand.
|
|
|
|
|
Reason - I am implementing the multiple inheritence concept in class4
by overriding the function
|
|
|
|
|
Both classes are in the same assembly, I too see no point in having class4 there, btw i think you should subclass Class3 instead of creating a new instance in the function in class4.
|
|
|
|
|
Good morning.
I have an app which uses the Windows Media Player control, but I am using customized buttons instead of the player controls.
I wan to increase and decrease the volume with a TrackBar control, but I am not sure how to access the volumn properties of the axWindowsMediaPlayer1.currentMedia.
Any suggestions? Thnak you, WHEELS
|
|
|
|
|
You can read and write the volume by accessing the volume property of the media player settings.
axWindowsMediaPlayer1.settings.volume = (range 0 - 100)
Hope that helps (not tested)!
Greetings
Covean
|
|
|
|
|
Exactly what I needed. Thank you, WHEELS
|
|
|
|
|
I need a program in PHP which can extract the hidden biders from ebay.I will have to insert the item number and the program must show me all bidders of the auction and their emails.
Also the same program must extract the registered contact information for any specified bidder specially the email address
I will pay for this
If someone can help please contact me at totos_back@yahoo.com
Thanks
|
|
|
|
|
totolcm wrote: a program in PHP
and that is why you post in the C# forum?
|
|
|
|
|
I post it here because is a very hard program , all told me that is imposible to create
|
|
|
|
|
You're a special kind of stupid, aren't you...
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|