15,896,154 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Neetesh Agarwal (Top 152 by date)
Neetesh Agarwal
26-Aug-15 11:07am
View
In .CS Page
public void binddata()
{
string sql = "Select test from testt";
SqlDataAdapter sdr = new SqlDataAdapter(sql, con);
DataTable dt = new DataTable();
sdr.Fill(dt);
if (dt.Rows.Count > 0)
{
dlEmployee.DataSource = dt;
dlEmployee.DataBind();
}
}
Neetesh Agarwal
26-Aug-15 11:05am
View
In .aspx Page
<asp:DataList ID="dlEmployee" runat="server">
<itemtemplate>
<%#DataBinder.Eval(Container.DataItem, "test")%>
Neetesh Agarwal
26-Aug-15 10:51am
View
Not Only Images. He can edit Text content , Hyper link etc.
You are right CMS seems to be better option. Thanks
Neetesh Agarwal
26-Aug-15 10:50am
View
Thanks Sergey.
Neetesh Agarwal
30-Jun-14 6:40am
View
Deleted
Thanks but its not working. Its show Unable to connect any specified Mysql host..
Neetesh Agarwal
24-Apr-13 11:36am
View
Thanks Sir, Now I am upgrading sql server ..........
Neetesh Agarwal
24-Apr-13 11:35am
View
OK thanks, I am now upgrading
Neetesh Agarwal
24-Apr-13 11:28am
View
OK. Thanks
Neetesh Agarwal
24-Apr-13 11:22am
View
I know that but my mean was without upgrading
Neetesh Agarwal
24-Apr-13 11:22am
View
I know that but my mean was without upgrading
Neetesh Agarwal
16-Apr-13 1:02am
View
Is Dll provide by Dock Panel Suite is free?????????
Neetesh Agarwal
15-Apr-13 8:04am
View
Thanks..... Now done
Neetesh Agarwal
15-Apr-13 7:22am
View
ALl thing are working . My need is to create set up with text file and When I Install so there should be that txt file also available.
Neetesh Agarwal
15-Apr-13 7:13am
View
hello Zoltán Zörgő ,
If u know solution please reply
Thanks
Neetesh Agarwal
15-Apr-13 6:42am
View
My Problem is When client Install my publish Application then There should also be text file.
Neetesh Agarwal
15-Apr-13 3:48am
View
No, I not seen that yet but will do. I just make database,table charset utf8 and use Encoding.
Neetesh Agarwal
15-Apr-13 3:30am
View
I am just started programming one year ago so I am not good programmer yet.
Neetesh Agarwal
15-Apr-13 3:26am
View
I already did that before this.
Neetesh Agarwal
13-Apr-13 4:03am
View
I solved this by using
message = Convert.ToBase64String(Encoding.UTF8.GetBytes(message));
string Normal_message = Encoding.UTF8.GetString(Convert.FromBase64String(message));
Neetesh Agarwal
12-Apr-13 10:16am
View
Even its not work.
Tel me should I need to install Hindi fonts on my system.
Neetesh Agarwal
12-Apr-13 6:55am
View
Sorry I searched this after the qns posting by your link u give two days ago.
Thanks
Neetesh Agarwal
11-Apr-13 9:15am
View
I add the code above. Please have a look there. There are two fields "subject" and "message"
In which Data should be in Hindi , while debugging these two fields show in correct form. BUt while query executed Its not store in that form.
Neetesh Agarwal
11-Apr-13 9:10am
View
No in Database its now showing correctly when I am inserting using code. But when I use Insert query in MY SQL Editor Its working well.
Its a Window Application . How to set content type ?
Neetesh Agarwal
11-Apr-13 8:51am
View
Hello SRSHINDE ,
Sorry to disturb u again but When I Insert Value using code in database the Hindi Font are showing as ??????. While I debug the data_field show value in Hindi. Also when I use same query in MY SQl editor Its stores value in Hindi. Thats a very weird Problem.
I search all things but not get right solution. Can you help me on this.
Thanks
Neetesh
Neetesh Agarwal
11-Apr-13 7:16am
View
Thanks... I got the solution.
Neetesh Agarwal
11-Apr-13 7:07am
View
Yeah , Thanks
Neetesh Agarwal
11-Apr-13 6:16am
View
Thanks , Its working Now.
The problem was while creating Table its by default character set was Latin.
Neetesh Agarwal
11-Apr-13 5:31am
View
INSERT INTO `ghm`.`incident3`
(`item_id`,
`subject`,
`team_member`,
`types_of_graphics`,
`department`,
`graphics_type`,
`item_mode`,
`in_time`,
`out_time`,
`status`,
`priority`,
`description`,
`flag`)
VALUES
(
'GHM0000000001',
'Checking Hindi',
'Aman Dua',
'Online',
'News',
'End Plate',
'Phone',
'09/04/2013 10:04:31 PM',
'09/04/2013 10:04:31 PM',
'New',
'Low',
'नकद अतंरण योजना
-----------------------
-अगले मार्च तक पूरे देश में लागू किया जाएगा
-योजना का दूसरा चरण एक जुलाई से शुरू होना है। इस चरण में 19 राज्यों तथा दो केंद्र शासित प्रदेश शामिल
--दूसरे चरण में 78 जिलों में डीबीटी योजना के लिये बुनियादी ढांचा 31 मई तक पूरा करने का लक्ष्य
-पहला चरण एक जनवरी से 43 जिलों में शुरू किया गया था ,
-देशभर के 20 जिलों में रसोई गैस सब्सिडी को 15 मई से डीबीटी योजना में शामिल किया जाएगा।
,
0
);
Neetesh Agarwal
11-Apr-13 5:30am
View
I have two tables. In one Its working but in another one its not working showing this error.
Neetesh Agarwal
11-Apr-13 5:20am
View
When I am using this this errors shown.
Error Code: 1366. Incorrect string value: '\xE0\xA4\x97\xE0\xA5\x8D...' for column 'description' at row 1
Neetesh Agarwal
11-Apr-13 4:29am
View
Thanks......
Neetesh Agarwal
11-Apr-13 4:26am
View
It Means It can read mail in just Reverse order.
Neetesh Agarwal
11-Apr-13 4:19am
View
ENGINE=InnoDB AUTO_INCREMENT=90 DEFAULT CHARSET=utf8$$
Neetesh Agarwal
11-Apr-13 4:17am
View
Ok, But Will It also include English message ? Bcz Mail can be Either in Hindi or in English
Neetesh Agarwal
11-Apr-13 4:16am
View
Hello Prasad Sir, Thanks for Reply but My Problem is something else. I want while message from gmail Its only scan current date email not whole mail of Inbox(bcz there should be more than 10000) mail . So My need if there is any way that Its read only current date mail
Neetesh Agarwal
11-Apr-13 4:12am
View
Yeah , bcz after read mail from IMap I need to store in database. AND I want that Its fetch Only Current That mail , I used IF condition in starting of code as u can see but I know its not good. Please suggest me something.
Neetesh Agarwal
11-Apr-13 4:06am
View
Hello SRSHINDE, I am fetchimg Gmail Inbox and need to store data in my-Sql but soe times mail is hindi , some times in English then how to manage this. Please Reply
Thanks
Neetesh Agarwal
10-Apr-13 8:29am
View
Just Use Radiobutton_CheckedChanged Event and write your query there.
Neetesh Agarwal
10-Apr-13 8:25am
View
Use this.BringToFront()
Neetesh Agarwal
10-Apr-13 7:07am
View
Which function I can use here Instead of Update ?
Neetesh Agarwal
10-Apr-13 7:07am
View
Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPDATE(work_flow)
THEN @audit_action = 'Updated work_flow -- After Update' at line 30
Neetesh Agarwal
10-Apr-13 7:05am
View
I am using IP Address. But Also there is one problem, Connection is DHCP , IP can changed.
Neetesh Agarwal
10-Apr-13 7:05am
View
Yes Jose.
Neetesh Agarwal
8-Apr-13 5:51am
View
I just Updated code
Neetesh Agarwal
6-Apr-13 10:13am
View
Thanks Sir..........
Neetesh Agarwal
6-Apr-13 10:13am
View
Thanks a lot Sir.
Neetesh Agarwal
6-Apr-13 5:55am
View
But How in Window Application?
Neetesh Agarwal
6-Apr-13 5:16am
View
Use Timer.......................
Neetesh Agarwal
6-Apr-13 4:49am
View
Yes in Different System.
Neetesh Agarwal
4-Apr-13 7:28am
View
Just Update in database................
Neetesh Agarwal
4-Apr-13 4:23am
View
Timer is working well but the problem is that in that time when gridview is updating its hang.
Neetesh Agarwal
4-Apr-13 3:59am
View
I also found that using Timer. I am trying it
Neetesh Agarwal
4-Apr-13 3:52am
View
Yeah and after googling , I search about Observer Pattern.
Neetesh Agarwal
4-Apr-13 0:00am
View
If you have knowledge then share??????laugh:
Neetesh Agarwal
3-Apr-13 13:13pm
View
Yeah that I know but when one person update value in database then Its instant reflect to other user
Neetesh Agarwal
3-Apr-13 10:05am
View
Also Add WeifenLuo.WinFormsUI.Docking.dll from http://sourceforge.net/projects/dockpanelsuite/files/latest/download
Neetesh Agarwal
3-Apr-13 5:54am
View
I am checking that. That is too lenghty code
Neetesh Agarwal
3-Apr-13 5:41am
View
I added it from Toolbox directly
Neetesh Agarwal
3-Apr-13 5:33am
View
I add it in my tool box but I don't know how to use it that become like my requirement.. If you use it before please help me.
Neetesh Agarwal
3-Apr-13 5:31am
View
No its not work for me bcz its in WPF.......
Any way thanks for ur help.
Neetesh Agarwal
3-Apr-13 5:31am
View
But There is only only Dll. No code to solve the problem. I already used that.
Basically I exact want like that sample.
Thanks
Neetesh Agarwal
3-Apr-13 5:17am
View
Thanks ........
Neetesh Agarwal
3-Apr-13 5:16am
View
I add it. Thanks.
Neetesh Agarwal
3-Apr-13 5:04am
View
How to add because I not find it In Tool bar ? I also searched it using Choose Item but not found. Please tell me how It can add
Thanks in Advance
Neetesh Agarwal
3-Apr-13 4:35am
View
Problem is I want its shows Autohide Dock like Properties windows and SOlution Explorer in Viual Studio. But Its not working
Neetesh Agarwal
2-Apr-13 12:26pm
View
Thanks I am trying it.
Neetesh Agarwal
2-Apr-13 11:49am
View
Thanks.... Please help me to solve my problem.
Neetesh Agarwal
2-Apr-13 11:42am
View
YES..........
Neetesh Agarwal
2-Apr-13 11:26am
View
Simply my need is to make panel auto hide like Properties windows in visual Studio........
Neetesh Agarwal
2-Apr-13 11:23am
View
???????
Neetesh Agarwal
2-Apr-13 11:17am
View
just like "Properties Windows" or "Solution Explorer" in Visual Studio, As we can dock them and auto hide. when we click Its visible. Like that
Neetesh Agarwal
2-Apr-13 11:10am
View
Thats not work as my need, I have used it already. I want like Property window , Solution Explorer in Visual Studio
Neetesh Agarwal
1-Apr-13 2:31am
View
You can use Itextsharp ............
Neetesh Agarwal
30-Mar-13 5:36am
View
If you want to download video from website use this code.
public void Downlaod()
{
string serverfilepath = "Path of video";
string filename = "downloadvideo.avi";
// MessageBox.Show(serverfilepath);
Response.AddHeader("Content-Disposition", "attachment; filename=" + filename);
Response.ContentType = "video/x-ms-wmv";
Response.Charset = "utf-8";
Response.HeaderEncoding = UnicodeEncoding.UTF8;
Response.ContentEncoding = UnicodeEncoding.UTF8;
FileInfo fi = new FileInfo(serverfilepath);
if (fi.Exists)
{
using (FileStream fs = fi.OpenRead())
{
// you should really buffer this...
Byte[] bytes = new Byte[fs.Length];
fs.Read(bytes, 0, (int)fs.Length);
Response.BinaryWrite(bytes);
}
}
Response.End();
}
Neetesh Agarwal
30-Mar-13 5:27am
View
To run Video in asp.net .......
\\code in .aspx page
<embed type="application/x-ms-wmp" width="270" height="480" src="C:\Users\Public\Videos\Sample Videos\Wildlife.avi"
showstatusbar="1">
<param name="AutoStart" value="1" />
</embed>
Neetesh Agarwal
30-Mar-13 5:24am
View
dataReader(0).Substring(0,10)
Neetesh Agarwal
30-Mar-13 5:20am
View
In Asp.net or in Windows Form?
Neetesh Agarwal
30-Mar-13 5:12am
View
dataReader(0).Substring(0,10)
Neetesh Agarwal
30-Mar-13 5:10am
View
You can try Substring()
Neetesh Agarwal
30-Mar-13 5:07am
View
I got Problem in Update Block......... IF UPDATE(work_flow)
Neetesh Agarwal
29-Mar-13 8:23am
View
DELIMITER $$
CREATE PROCEDURE sp_inc(Emp_ID INT)
BEGIN
Select Emp_ID,Emp_name,Emp_sal AS Salary from Employee_test where Emp_ID = Emp_ID;
END
Neetesh Agarwal
29-Mar-13 7:57am
View
http://dev.mysql.com/doc/refman/5.1/en/create-procedure.html
Neetesh Agarwal
29-Mar-13 7:57am
View
Thanks bro,
But Its change in differenet version that's why I got error.
Neetesh Agarwal
28-Mar-13 3:02am
View
There are some button also in form which I dont want to print. I have to generate Report from the Form.
Neetesh Agarwal
26-Mar-13 4:50am
View
I have a Panel in form , My need is show print that Panel and control inside that in PDF
Neetesh Agarwal
26-Mar-13 4:50am
View
I have a Panel in form , My need is show print that Panel and control inside that in PDF
Neetesh Agarwal
26-Mar-13 4:50am
View
Deleted
I have a Panel in form , My need is show print that Panel and control inside that in PDF
Neetesh Agarwal
26-Mar-13 3:29am
View
Hello Sir,
I just want print as a Report so I need only Data. Not whole form
Neetesh Agarwal
25-Mar-13 11:16am
View
Yes, I dont want full form print. Only the labels not the Button. I am trying that
Neetesh Agarwal
21-Mar-13 3:11am
View
Thanks Sir,
I will sure go through that......
Neetesh Agarwal
20-Mar-13 10:52am
View
May be but my answer is here.
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.currentcelldirtystatechanged.aspx
By the way thanks for ur time .
Neetesh Agarwal
20-Mar-13 10:52am
View
Its working fine,,,,,,
Neetesh Agarwal
20-Mar-13 10:28am
View
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.currentcelldirtystatechanged.aspx
Neetesh Agarwal
20-Mar-13 10:28am
View
Thanks Prasad ji. I am finding this.
Neetesh Agarwal
20-Mar-13 10:27am
View
Deleted
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.currentcelldirtystatechanged.aspx
Neetesh Agarwal
20-Mar-13 10:27am
View
Hello Sir,
Thanks for reply But thats not the answer of my question. I am asking about checkbox in Gridview.
Neetesh Agarwal
20-Mar-13 10:23am
View
If you dont know answer then why you downvote.........
Neetesh Agarwal
20-Mar-13 7:19am
View
Yeah I will. Thanks
Neetesh Agarwal
20-Mar-13 7:01am
View
Thanks Vinod .......
Neetesh Agarwal
20-Mar-13 4:22am
View
Hi gvprabhu . Thanks for replying .
I solved this by using Ignore Keyword, after Insert
Neetesh Agarwal
15-Mar-13 9:09am
View
Ok Thanks,
Can you just tell me how to access database of It from my site.
What its server name.
Thanks and sorry to disturb u again
Neetesh Agarwal
15-Mar-13 7:28am
View
Because I have to use It. also need to save data in database thats why. I want to get some knowledge from you If you like. My company has one client who sent work in daily basis. I need that when client send mail It automatically assign to developer/designer , (department Wise).
Also what it ts timing and out timing. Need to connect with gmail. I dont know how to integrate it. Please help me to do this.
Thanks In Advance
Neetesh Agarwal
Neetesh Agarwal
15-Mar-13 6:17am
View
Hi Mickt,
Thanks for ur reply. But I have some other question regarding this. If you ever use this before.
Neetesh Agarwal
13-Mar-13 7:48am
View
Hi Navi, Did u get the exact answer If yes then post here. I also need to do this
Thanks
Neetesh Agarwal
13-Mar-13 7:00am
View
I also given same link above thats showing only few emails
Neetesh Agarwal
26-Feb-13 4:14am
View
Thanks Vinay.........
Neetesh Agarwal
26-Feb-13 4:13am
View
var Contact_No = document.getElementById('<%=txtContactNo.ClientID %>').value; That is correct SOlution thanks NIck,, Thats my fault
Neetesh Agarwal
26-Feb-13 4:03am
View
Deleted
@vinay,
I also tried that but same result. Its working for only Server side
Neetesh Agarwal
29-Oct-12 6:35am
View
Thanks Sir...............
Neetesh Agarwal
15-Oct-12 2:57am
View
Thanks a lot
Neetesh Agarwal
15-Oct-12 2:22am
View
Thanks for Your Reply. But If I add in correct format like
DECLARE @TodaysDate VARCHAR(10)
SET @TodaysDate = '12/25/2005'
SET @TodaysDate = @TodaysDate + '00/03/2012'
Then its will compile successfully But i want to know how will i check the value of the variable TodaysDate
Neetesh Agarwal
15-Oct-12 2:22am
View
Thanks for Your Reply. But If I add in correct format like
DECLARE @TodaysDate VARCHAR(10)
SET @TodaysDate = '12/25/2005'
SET @TodaysDate = @TodaysDate + '00/03/2012'
Then its will compile successfully But i want to know how will i check the value of the variable TodaysDate
Neetesh Agarwal
15-Oct-12 2:22am
View
Thanks for Your Reply. But If I add in correct format like
DECLARE @TodaysDate VARCHAR(10)
SET @TodaysDate = '12/25/2005'
SET @TodaysDate = @TodaysDate + '00/03/2012'
Then its will compile successfully But i want to know how will i check the value of the variable TodaysDate
Neetesh Agarwal
11-Oct-12 6:11am
View
Oh may be...........Thanks
Neetesh Agarwal
10-Oct-12 0:01am
View
Hello Santosh, I also need name of the employee..........
Neetesh Agarwal
9-Oct-12 23:37pm
View
its working nicely
Neetesh Agarwal
9-Oct-12 23:36pm
View
its the sortest method I found..........
Neetesh Agarwal
9-Oct-12 23:30pm
View
But its also including 3............
Neetesh Agarwal
8-Oct-12 8:59am
View
Thanks
Neetesh Agarwal
8-Oct-12 8:59am
View
Thanks vivek.
Neetesh Agarwal
8-Oct-12 8:59am
View
Thanks a lot
Neetesh Agarwal
8-Oct-12 8:59am
View
Thanks for Your answer
Neetesh Agarwal
20-May-12 14:49pm
View
but its not in java script..............
Neetesh Agarwal
20-May-12 14:49pm
View
If user select items from drop down list , but if he does not find desire item in list there will be another item "Other" will select by him and there will be a text box visible there user put desire value.
Neetesh Agarwal
11-May-12 5:44am
View
Thanks, Its very easy.......
Neetesh Agarwal
10-May-12 8:20am
View
Thanks a lot.....
Neetesh Agarwal
10-May-12 8:09am
View
Thanks , Can u give me any link. I am new in WPF need to study hard in it.
Neetesh Agarwal
3-May-12 1:56am
View
Yes i got that........
Neetesh Agarwal
2-May-12 6:57am
View
Thanks
Neetesh Agarwal
2-May-12 6:41am
View
@abhinav thanks but i had another problem now solved.
Neetesh Agarwal
2-May-12 6:40am
View
@Pete O'Hanlon Thanks i get this. My target framework was set to 3.5 now its okay. Thanks for your help.
Neetesh Agarwal
26-Apr-12 4:28am
View
Thanks Tanmay
Neetesh Agarwal
26-Apr-12 2:49am
View
Reason for my vote of 5
same question is mine
Neetesh Agarwal
23-Apr-12 7:56am
View
@Sandeep Mewara. Thanks I got the point
Neetesh Agarwal
23-Apr-12 6:37am
View
Thanks Amit.
Neetesh Agarwal
23-Apr-12 6:26am
View
@Sandeep Mewara Thanks Sir , But i want to use rectangle box. same size as textbox.
Neetesh Agarwal
20-Apr-12 6:40am
View
Thanks
Neetesh Agarwal
18-Apr-12 1:56am
View
Thanks Reza....
Neetesh Agarwal
18-Apr-12 1:50am
View
Do u have any idea of Quickbook?
Neetesh Agarwal
18-Apr-12 1:46am
View
but I dint get any answer regarding this.
Neetesh Agarwal
13-Mar-12 4:31am
View
In my project there is no problem. The pro works fine but some times it create problem so when i restart VPs THEN IT WORKS FINE.......
Neetesh Agarwal
13-Mar-12 3:15am
View
In my project there is no problem. The pro works fine but some times it create problem so when i restart VPs THEN IT WORKS FINE.......
Neetesh Agarwal
13-Mar-12 3:15am
View
In my project there is no problem. The pro works fine but some times it create problem so when i restart VPs THEN IT WORKS FINE.......
Neetesh Agarwal
22-Feb-12 3:30am
View
I check no file is missing. I also search on net many people got this exception and din't get gud solutions. Its working fine in local.
May be you have another way with using speechlib.dll then please reply me.
Thanks in Advance
Neetesh Agarwal
15-Feb-12 1:18am
View
Thanks abhinav
Neetesh Agarwal
14-Nov-11 5:23am
View
Thanks
Neetesh Agarwal
14-Nov-11 5:23am
View
Thanks
Neetesh Agarwal
9-Nov-11 5:09am
View
A Simple C# Wrapper for the AviFile Library[^] is not working
Neetesh Agarwal
8-Nov-11 0:46am
View
Thanks
Neetesh Agarwal
6-Jul-11 2:48am
View
private void btnSubmitCaptcha_Click(object sender, EventArgs e)
{
Thread m_thread = new Thread(new ThreadStart(Thread1));
m_thread.SetApartmentState(ApartmentState.STA);
m_thread.Start();
}
public void Thread1()
{
abcd();
bcd();
}
public void abcd()
{
webBrowser1.Navigate("www.google.com");
TimeDelay(1000);
webBrowser1.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser1_DocumentCompleted);
TimeDelay(8000);
while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
System.Windows.Forms.Application.DoEvents();
while (!DocComplete)
System.Windows.Forms.Application.DoEvents();
DocComplete = false;
webBrowser1.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser1_DocumentCompleted);
webBrowser1.Document.Forms[0].GetElementsByTagName("input")["q"].SetAttribute("value", "gmail.com");
}
public void bcd()
{
webBrowser2.Navigate("www.google.com");
TimeDelay(1000);
webBrowser2.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser2_DocumentCompleted);
TimeDelay(8000);
while (webBrowser2.ReadyState != WebBrowserReadyState.Complete)
System.Windows.Forms.Application.DoEvents();
while (!DocComplete1)
System.Windows.Forms.Application.DoEvents();
DocComplete1 = false;
webBrowser2.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser2_DocumentCompleted);
webBrowser2.Document.Forms[0].GetElementsByTagName("input")["q"].SetAttribute("value", "gmail.com");
}
Neetesh Agarwal
5-Jul-11 7:35am
View
Deleted
private void btnSubmit_Click(object sender, EventArgs e)
{
Thread m_thread = new Thread(new ThreadStart(hotfrogs));
m_thread.SetApartmentState(ApartmentState.STA);
m_thread.Start();
Thread m_thread1 = new Thread(new ThreadStart(abc))
m_thread1.Start();
}
public void hotfrogs()
{
try
{
webBrowser1.Navigate("http://www.google.com");
webBrowser1.Document.Forms[0].GetElementsByTagName("input")["q"].SetAttribute("value", "C#.net");
webBrowser1.Document.Forms[0].GetElementsByTagName("input")["btnG"].InvokeMember("click");
}
catch(Exception)
{}
}
public void abc()
{
try
{
webBrowser2.Navigate("http://www.google.com");
webBrowser2.Document.Forms[0].GetElementsByTagName("input")["q"].SetAttribute("value", "Asp.net");
webBrowser2.Document.Forms[0].GetElementsByTagName("input")["btnG"].InvokeMember("click");
}
catch(Exception)
{}
}
Neetesh Agarwal
5-Jul-11 7:34am
View
Deleted
private void btnSubmit_Click(object sender, EventArgs e)
{
Thread m_thread = new Thread(new ThreadStart(hotfrogs));
m_thread.SetApartmentState(ApartmentState.STA);
m_thread.Start();
Thread m_thread1 = new Thread(new ThreadStart(abc))
m_thread1.Start();
}
public void hotfrogs()
{
try
{
webBrowser1.Navigate("http://www.google.com");
webBrowser1.Document.Forms[0].GetElementsByTagName("input")["q"].SetAttribute("value", "C#.net");
webBrowser1.Document.Forms[0].GetElementsByTagName("input")["btnG"].InvokeMember("click");
}
catch(Exception)
{}
}
public void abc()
{
try
{
webBrowser2.Navigate("http://www.google.com");
webBrowser2.Document.Forms[0].GetElementsByTagName("input")["q"].SetAttribute("value", "Asp.net");
webBrowser2.Document.Forms[0].GetElementsByTagName("input")["btnG"].InvokeMember("click");
}
catch(Exception)
{}
}
Show More