|
I need to develop an application that manipulate browser actions. as in it could open a browser and through interaction to the application the application interacts with the browser (preferably IE) and functions. where can i look for info on how to do this? thanks.
|
|
|
|
|
Wait for the 2005 vs and the new webbrowser control.
|
|
|
|
|
so until then there is no way for me to create an app in C# that will control and automate tasks in the browser for me?
|
|
|
|
|
What do you mean by "automate tasks"? You can add a web browser control to your app in 2003. You need to add a control to the Toolbox, a COM component called Microsoft Web Controls (C:\windows\system32\shdocvw.dll). You can then drop one on your form. This will give you an instance of IE on your form that you can use.
But, like a said before, everything else depends on what you mean by "automate tasks"...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Basically i want the app to interact with a web page. to have it fill out entry forms on the web page using predetermined data in the app. it will have to do it automatically. such that when the app is started it would open that webpage, fill out a textbox and then have the webpage submit it. all without the user doing anything. is that possible?
|
|
|
|
|
You can do this without actually "showing" the webpage on the screen, if that can help. I don't remember the exact class names, but search MSDN for "HTML POSTING", you should find something.
With those classes, you can also maintain a session and cookies.
HTH
|
|
|
|
|
I dont know if i was just looking in the wrong place on MSD for that or if it isnt what i need. I am at the point where i can open the browser from my app, but then i want it to find an html form field such as
<br />
<input name=user type=text><br />
and put some data in it
then find the
<br />
<input type=submit value=find user><br />
and "click" it.
is that something the HTML post can do? i mean i know it should be able to be done, i just can't find where to look to find out how. i hope i've cleared this up, does anyone know what i'm looking for????
|
|
|
|
|
Hi everyone, I would like to make a small program which add a key to a specified path in the regiser if it doesn't exist, and deletes it if it exists. How do I write or search the register? Win XP
|
|
|
|
|
|
Add to your code :
using Microsoft.Win32;
at the top.
And inside it you will find all what you need.
|
|
|
|
|
I have the following code:
<br />
private void button1_Click(object sender, System.EventArgs e)<br />
{<br />
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run");<br />
key.SetValue("MyApp", @"C:\MyApp\run.exe");<br />
}
and it couses an Exception - I can't write to the key. How do I avoid this?? Pls help!
|
|
|
|
|
And in which parent would you add in the HKCU or HKLM ???;)
|
|
|
|
|
It would help if you supplied what the exception was!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am creating a project in C# 2.0 with beta 2 of Visual Studio. One of my "features" is keword color, such as visual studio turning keywords (such as if, for, etc) a different color. I see the RichEditControl already has DetectUrl which is pretty much the same thing but i need to define my own criteria for coloring and which words get which colors. I couldn't find anything on CP so far... I was wondering if someone could point me in the correct direction.
Matt Newman
Even the very best tools in the hands of an idiot will produce something of little or no value. - Chris Meech on Idiots
|
|
|
|
|
The RichTextBox is a terrible control to use for this. Coloring operations get slower and slower the larger your text gets. You'd be better off using a control specifically written for such. There are people around here who just wrote their own controls for this. I'm not one them...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have to admit I've never tried myself, but I remember following this discussion several times before.
One solution was to just colorize the visible range of text, so that the size of text didn't matter anymore.
Another suggestion was to disable updates so that the RTB doesn't repaint during the process of colorization.
You can't do this with a regular RTB, though. But the WM_SETREDRAW windows message can be used for this.
Here's a link[^] to a blog describing the process.
Regards,
mav
|
|
|
|
|
Hi
How i can :
run an *.exe file and then stop it ?
|
|
|
|
|
|
As of right now, I'm using the FileInfo and DirectoryInfo classes to get all the files in a directory and then checking their file exentions to see if they match an image type (i.e ".jpg," ".bmp," etc). Is there a better way?
|
|
|
|
|
|
Thanks, I was doing something similar to this. I was wondering if there was a more generic way. For example, is there some way to match any image type without actually having to specify the extention for each one? Someone told me doing "*/images" would work. Has anyone tried this?
|
|
|
|
|
Haven't tried that, but AFAIK it won't work. There is a way to search for different extensions, something like Directory.GetFiles("c:\test", "*.jpg;*.png") or something. Search google or codeproject, I'm sure it's listed somewhere.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Horrific Minnesota Radio
Judah Himango
|
|
|
|
|
I don't think there is any way of identifying whether a file is an image file or not unless we know the datastructures used to save each type of the file. Images are just binary files. Graphic applications which support multiple image types know this. But such a component may not be available in the public domain. You may check GIMP project. But it will be a touch job.
|
|
|
|
|
Is there a way to alter the grid in a ListView to display multiline data. If I have something that is too large to display in the cell of the ListView grid is there a method of expanding the verticle size of the row displaying the data in a multilined format?
Frag
Try, Fail..Fail, Succeed
Tool Developer
Michigan, USA
|
|
|
|
|
You're not limited to just a single line. You'll have to create a custom class or derivative of an existing class to do what you want. You'll then need to override the OnPaint, OnPaintBackground, and OnSizeChanged methods. Use your own code to draw your custom item however you see fit.
|
|
|
|