|
I am a novice user and would like to know if is it poosible to set the "Address" field of the Internet Explorer through C#(only C#, no other language). I want to open Internet Explorer on the press of a button, such that the address field is set to a url that I want ie which is sent through the application.
|
|
|
|
|
Hi, u can use this code to launch the internet explorer at a click of a button. Make sure u use namespace System.Diagnostics
private void button3_Click(object sender, EventArgs e)
{
Process proc=new Process();
proc.StartInfo.FileName = "iexplore.exe";
proc.Start();
}
Cheers
|
|
|
|
|
Better than that you can actually do the following
<br />
Process pr = new Process();<br />
pr.StartInfo = new ProcessStartInfo("http://www.google.com");<br />
pr.Start();<br />
If IE is set up to handle HTTP items then it will actually open and automatically direct you to google....
|
|
|
|
|
you can try to using SHDocVw.InternetExplorer.
EX:
object obj = null;
SHDocVw.InternetExplorer ie = new SHDocVw.InternetExplorer();
ie.Visible = true;
ie.Navigate("http://pzs8417.spaces.live.com/default.aspx", ref obj, ref obj, ref obj, ref obj);
|
|
|
|
|
I think the Question was "to set the "Address" field of the Internet Explorer" and it is not "how to start IE"
so here is my answer,
You can call the static method of process class
eg:
Process.Start("iexplore","www.msn.com")
the second parameter is actually passed a a command line argument to the executing file
you can also use "StartInfo.Arguments" property but for that you need to create an object of process . so the first one is the easiest way in which we dont have to create any object
and dont forget to add a reference to "System.Diagnostics" namespace
hope this helps
|
|
|
|
|
thanks people..appreciate ur help..
|
|
|
|
|
thanks people...really appreciate ur help.
|
|
|
|
|
Hello everybody !
My question is quite stupid in Crystal Report but I need your help
Carton | Goods name | Cube of Carton
T1 | A | 0.15 //not suppressed
T1 | B | 0.15 //suppressed
T1 | C | 0.15 //suppressed
T1 | D | 0.15 //suppressed
T2 | E | 0.74 //not suppressed
T2 | F | 0.74 //suppressed
T3 | G | 0.86 //not suppressed
---Total (???)1.75 //not suppress
I need to make a total of Cube of Carton (???). I only calculate the unsuppressed to ???. ??? will be exactly 1.75. When I make Running Total Fields, the ??? is 2.94 instead of 1.75 I need. Help me the exact formula
Thanks in advance !
It seem to be a solution or an answer.
|
|
|
|
|
I test it. I write a cycle that add a image into imageList 1000 times.
But report "virtual memory shortage".
|
|
|
|
|
Hello,
jason_mf wrote: I test it. I write a cycle that add a image into imageList 1000 times.
But report "virtual memory shortage".
So it looks like it's only a question of memory, don't you think!
All the best,
Martin
|
|
|
|
|
How big are these images?
You need a lot of memory to store 1000 images. Either write them to disk instead of holding them in memory, or shove in more RAM.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
is there any way of setting the priority of a BackgroundWorker(b/w) object?
In all other respects the b/w class matches my needs perfectly, I just like to run it a lower than normal priority.
|
|
|
|
|
There isn't a property in the BackgroundWorker class to do it, but inside the worker function the priority can be set directly:
System.Threading.Thread.CurrentThread.Priority = ThreadPriority.BelowNormal;
|
|
|
|
|
the answer's always .... obvious, thanks muchly
rgds phild
|
|
|
|
|
My Windows app has a help file in PDF format.
How do I display this file when user clicks on Help command?
Thanks.
|
|
|
|
|
The System.Process() method can take a path to the file you want to open. As long as a program is registered with the PDF file type, it will work. Alternatively, if you know where a specific PDF reader resides, you will have to invoke the EXE and pass the PDF path as a parameter.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
If you know for sure that the user has Adobe Reader installed on his/her PC you can start that process with a parameter representing the path to your help file. This is the easiest solution, but not the most elegant.
|
|
|
|
|
You can display pdf file on your form too.
|
|
|
|
|
How can I do that?
Do you have an example code?
Thanks
|
|
|
|
|
You can add the necessary com object from the refernces
|
|
|
|
|
Hello developers,
This is James. I have been following this site from last few weeks now thought of joining it.
I am planning to write Image processing application.
Ok ill tell you all my basic requirement...
I have to basically develop an ip application with operations like contrast stretch, filters, emboss zoom etc. but with the ability to PLUG IN new filters and other image processing features. A standard "plug-in" interface would need to be developed and the choice of interface method would need to be clearly justified and designed. Only a sub-set of image processing "plug-ins" need be developed in order to demonstrate the functionality of the interface. The usability of the application, efficiency of the algorithms and ease of plug-in development are essential requirements.
Now i am new to this field. I am going through few image processing articles in this site. Its quite interesting but i am confused about the above mentioned requirement.
How to achieve this ? I mean how to make a standard "plug-in" interface to "ease of plug in development". And any suggestion how should i proceed and what all functionality should i be looking for? I am new i dont know much of the functionality i could include in it. Well i am going through this article by christian and trying to figure out different filters he mentioned.
Please help this new comer.
Regards
James
|
|
|
|
|
Hi James,
you are raising two issues.
One is image processing, which is a broad and interesting field; there are lots of articles
on that, and you have found at loeast some of them, so thats OK.
the other is plug-in technology. There are CP articles on that too, such as this one[^].
The good thing is both issues are "orthogonal", i.e. there is no real interaction
between them; plug-ins offer comfort at the expense of some performance reduction
(the method calls towards the external functionality is somewhat more expensive),
but if the external methods are sufficiently heavy (as in processing an entire image)
they happen only so often and their cost becomes completely irrelevant.
So, I wish you welcome, and success.
|
|
|
|
|
Luc Thanks for your informative reply.
To be very honest i really dont know anything about plug in technology at the moment. Thanks for pointing me that article. Ill go through it.
The only point coming in my mind was like how could i include new features and new filters through UI. I mean i might sound bit stupid here but please forgive as i am new to this area. I think to add any features i need to write code for the application and adding new filters or any more features means write more code..isn't it.
So i have not read anything about plug in technolgy yet..ill be doing this now...but i am curious to know how does this plug in system work..How can i add new feautures without writing code for it...hmmmmmm sorry if it was too basic...
Ill go through googles aswell in search of plug in technology.
Regards
James
|
|
|
|
|
An application can build it's menu and other UI dynamically. It can do this by looking into a dll and finding methods it is able to call.
On the image processing, I have a series of articles and there's at least one other that covers some stuff I do not.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Yeh i am going through your articles only at the moment. Thanks for the great articles.
hmmm okay, but lets say for instance my application has got invert filter and greyscale filter.
Now after some time i want to add say brightnes filter. But i dont have any methods already written for this filter. So i wont be able to add this filter in UI. M i right ?
Or do you mean that while creating application i should keep all the possible filters in mind and create suitable methods and keep it in a dll file so that if later i want to include that i could do it dynamically....Is this what the requirement expect me to do.
Thanks for giving me your precious time.
Regards
James
|
|
|
|