|
Hello,
Can you please tell me how can I disable the ability to selecting text from my WebBrowser control and drop it in another application? I don't want to disable the control!
Thanks.
|
|
|
|
|
The web browser calls the GetHostInfo method from the IDocHostUIHandler interface to get settings which control this. Specifically the DOCHOSTUIFLAG_DIALOG flag. I'm a C++ programmer so I'm not sure how you go about this in C#; perhaps it wraps the details with some fancy new gizmo I'm not aware of.
Googling for "DOCHOSTUIFLAG_DIALOG C#" got me some hits.
Steve
|
|
|
|
|
i want to request a web page with some parameter from a c#.net win app. plz help me.
|
|
|
|
|
hi
System.Diagnostics.Process.Start("iexplore.exe", "http://www.yahoo.com")
Tamimi - Code
|
|
|
|
|
but i only want to pass some param get a response.
thanks for replay.
|
|
|
|
|
what is the web site that you want to request !!
it is your own ?? if yes do the changes(actions that you want to do)
on the web page that you are requesting according to the parameters
Tamimi - Code
|
|
|
|
|
i only request a page with like this url :-
"www.mysite.com?id=mdn&name=kala"
thanks.
|
|
|
|
|
Use the HttpWebRequest class to get the page.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,everybody.I just want to make a project must exchange the dataSet object.was it possible to progrmmer it without know the url(can use ip?) or
can i input the url when i use the programmer,but not make it sure in my programmer.Any advance,thanks~
|
|
|
|
|
|
I means if i use the remote class or webservice,i must specilize the url it before my programmer compiler,what should i do if i do not know the url bfore i use the programmer
|
|
|
|
|
Not sure if I understand you, but if you have problems with hardcoding the URL in your program, then you can easily build the URL at runtime:
string myUrl = "http://" + server + ":" + port + "/My/Web/Service/Object.soap"; with the opportunity to enter the server and port at runtime or you can use a config file to set up your remoting environment. Look up RemotingConfiguration.Configure() .
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
oh,thanks,i will hava a try
|
|
|
|
|
The constructor of ObjectDisposedException take a mandatory string argument.
I never know what string to use and I tend to use the following:
"this"
GetType().Name
"Handle"
What is it supposed to be?
|
|
|
|
|
Please don't cross post.
It's supposed to be the name of the disposed object. The name is used in the error message that is created.
---
b { font-weight: normal; }
-- modified at 6:39 Sunday 25th June, 2006
|
|
|
|
|
I didn't know object have a name!
According to my documentation:
public class Object
{
public Object();
public virtual bool Equals(object obj);
public static bool Equals(object objA, object objB);
public virtual int GetHashCode();
public Type GetType();
protected object MemberwiseClone();
public static bool ReferenceEquals(object objA, object objB);
public virtual string ToString();
}
There is no 'name' property in object....
|
|
|
|
|
No, the object itself doesn't have a name. It's what ever you call the object.
---
b { font-weight: normal; }
|
|
|
|
|
doesn't work either.
because, usually it's the disposed object itself which throw the exception, so it calls itself "this".
never mind, I will use GetType().Name
(or perhaps I directly type the classname)
|
|
|
|
|
i have a win app. i want to send some info to a web app but the web app has no web service. plz help me.
|
|
|
|
|
I'm fairly new to Managed DirectX, but I'm having a lighting issue. For my app, I'm using a single light to reflect off of a cylinder that has multiple colors around it. Whenever I run the application on my machine the colors are shown fine. However, any other machine I install the simple app on (created using Visual Studios' Setup and Deployment wizard), the cylinder appears completely black.
In the code I check the machines video card for lights, and it returns positive. Even when I set the devices.RenderState.Ambient for the machine, it still comes out black. I've tried installing the app on several machines with no luck.
Any advice??
|
|
|
|
|
When I override the == operator in class A. How do I know if an A object is null?
if (A == null)
Will call my overriden method and throw a null reference exception.
|
|
|
|
|
|
Well then test it in your overloaded operator if
a) both arguments are null -> return true
b) only one of both arguments is true -> return false
c) do your normal comparison
|
|
|
|
|
I am posting this question in both the C# and C++ boards as I think the solution may be the same in both the cases.
I have an IE toolbar which gets hold of the IWebBrowser. I then imlplement the event DocumentComplete. In the event I get hold of the Document as a IHTMLDocument.
now here is my question. For an image in the Document, how do I get to know the exact path of that image in my temporary Internet files? If I get the images list, then for each element in the collection I can get the src property but that gives me the url not the location in the temp internet files. I know the file may not exist in the temp folder, but if it did, is there a way to get the path?
Thanks
|
|
|
|
|