|
why "MyEventHandler" does not have "EventArgs" parameter?
|
|
|
|
|
Call the event hanlder inside the body of the set{ } statement.
|
|
|
|
|
the declared sentence: "public event StatusHandler statusChanged",
where should i write it?
thanks.
|
|
|
|
|
I have a very basic upload/download application. The app uses a select statement to download and a insert statement to upload. The reason I include those is because I am not sure how to get a progress report from them, ie completion percentage. I may be uploading upward of 100megs and don't want the user to just sit there waiting. I have tested a 5meg file and it takes about 3 minutes to upload and does so correctly, but the user has no idea what is going on.
How do I get progress of the SQL read/write so I can update my progress bar?
Thanks in advance!
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
I am not aware of a way to do this, but it has been my experience that as long as users see the progress bar moving they know the application is not hanging and feel some better. So estimating the % complete based on seconds elapse divided by (average megs per second * megs) should be a reasonable solution (I swear microsoft often does things like this). Just make sure that the last 5% of the progress bar moves much more slowly and stops at 99% so that you don't reach 100% before it's done.
topcoderjax
|
|
|
|
|
:(hi all,
in my window form i m bindng one datagrid with check boxes now i wnat to dele those record which are checked how i can do this in window C#
i m also bind the image of the member into datagirdview(images are in the DB)
how i can perform this
regard
|
|
|
|
|
Hi,
Deleting records:
You can follow the following steps to get the "checked" records deleted.
1) First get the records marked "checked"
2) Use the dataGridView1.Rows.Remove to remove the data from the Grid.
3) Use the SqlCommand to get the records deleted from the database.
Binding Images:
I have bound a image column from the access database with the "datagrid" automatically from wizard. Please note that the type of the column in data table is Ole Object.
Manoj
Never Give up
|
|
|
|
|
hi,
i'm trying to parse C# file and want to change the code..
i have a class with following lines of code, assume
class Test
{
public void method()
{
Foo.Bar = "Demo";
}
}
i want to extract only the property name and its value..
i have a pattern like this.. which extract the value only, but i need the property name too..
<code>
"\\Foo.[^;]*(=\\s*\")(?<val>([^\"]*))";
</code>
plz give me a pattern which extract the both.
regards,
nas
|
|
|
|
|
We are using SQLDbAccess.dll provided by Microsoft. There are two methods are filling the Dataset. Fill method and also ExecuteDataSet. Which one will be better? Thanks
|
|
|
|
|
K.P.Kannan wrote: Fill method and also ExecuteDataSet
If your taking about DataAdapter.Fill then it is better to use the ExecuteDataset method as the SQLDBAccess.dll would look after opening/closing connections
|
|
|
|
|
I've been coding for quite sometime but never with web. I just need someone to help me get started.
I'm trying to automatically push a button on a web page without a manual mouse click(its written in html). Where do I start? Can I even do it with C# or should I use another language. I was trying to use the standard webcontrol but it seems limited. Can anyone help? Thank you very much.
|
|
|
|
|
Hi.
It can be done quite easily with the webbrowser control. If this is what you would like to use I could guide you. Please reply if interested.
|
|
|
|
|
I am very interested. Very very interested. Maybe a small code snippet. Thanks again.
|
|
|
|
|
Ok, here it is.
I hope it's not too late. I was quite busy yesterday afternoon and I didn't have time to check the codeproject forum.
So, a simple example of how to do an automatic search on google:
Place a WebBrowser control on your form.
Use it's navigate method to load the google page:
MyWebBrowser.Navigate("http://www.google.com");
In order to access the controls on the webpage and use them, you need to know what their names are from the html source of the page. If you take a look at google's source you'll see all the controls, and among them these two:
and
The first one is the text box where you type the text to search and the second is the search button.
So, all you need to do is fill the text box and after that simulate clicking the "Google Search" button. Like this:
HtmlElement searchBox = MyWebBrowser.Document.All["q"];
searchBox.InnerText = "code project";
HtmlElement btnSearch = MyWebBrowser.Document.All["btnG"];
btnSearch.InvokeMember("click");
Hope this helps.
Have a nice day!
PS: There's a very quick and easy way to find the name of the controls you need from a web page. It's called Firebug. It's a plug-in for Firefox. Just use it. I'm sure you'll find it great, too.
|
|
|
|
|
Everything you said worked to perfection. Thanks for the help. Now that I have the basics down I am able to understand how the control works. You the man!
|
|
|
|
|
I'm glad I could help.
Good luck and happy coding!
|
|
|
|
|
So how would you go about selecting certain boxes. Like username and password, and then click a button.
Login | Username: | | Password: | |
|
|
|
|
|
Well, I guess the same way I filled the search box on google's page.
Have you tried setting the InnerText property?
Maybe you could give me the link to the page you want to interact with and I'll try myself.
|
|
|
|
|
Alright I finnally got everything working except the button. To my knowledge i don't see the button in the source code. It just says
Did you get my email?
-- modified at 2:20 Tuesday 29th May, 2007
|
|
|
|
|
I didn't check my email yesterday. I'll read it in the afternoon(about 4-5 hours from now), as I'm not allowed to use my private email at work.
Did you use Firebug to identify the web controls? If not, please do so. You'll see why.
|
|
|
|
|
Well I actually took a look at another guys source and it pulls up the web page in the program itself. So I just had to modify it. The only problem is there is no button (in the web site) after you input the username and password. The site uses the php post method. Like www.site.net/login.php?user=Myusername&password=mypassword. But they have mypassword encrypted. So right now i'm trying to find away to either have the web browser click the button (but not seeing one in the source code) I think I will have to go with a way to manually click it.
|
|
|
|
|
Hi,
Is there a way to programatically determine if Office11 or which version of it is installed in the local machine? TIA.
I am a SysAdmin, I battle my own daemons.
|
|
|
|
|
Project: I'm tring to use iTextSharp assembly to create and print a pdf file in a web application.
Input: pre created template pdf file; dynamic data entry from web page.
Output: print out pdf file with data entry; save pdf with data entry as image to database.
Step 1.Generate pdf file based on pre-created pdf template file and data entered through web page.
Step 2.Print out the pdf file generated from step1.
Problem:
I'm able to persute step 1 using fdf.
What is the best way and how to print out the pdf file created from step1 in web application?
What is the best way to store the pdf file into SQL server database?
Your input is well appreciated.
|
|
|
|
|
I had to do a similar thing, but in a desktop application. In order to print the file I start Adobe Reader with command line parameters, which tell it to print the file.
With you web application, a problem may arise when trying to launch Acrobat Reader using the Process.Start() method. I'm not sure if you're allowed to do that.
|
|
|
|
|
First, thank you for the reply, I did use Process.Start, it works ok, but I try to not using COM, but using .net technic. Any other way?
Thanks,
|
|
|
|