TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
elnaz z
NA
14
83.5k
problem in vb to C# converter
Apr 18 2011 5:21 AM
hi all
i hava a piece vb code
i convert it to c# but when it convert to C# i have error in my program
can anybody help me?
vb code(this code is true)
Do Until vreadyState = 4
Application.DoEvents()
vreadyState = Me.WebBrowser1.ReadyState
Loop
Dim eleminput As HtmlElementCollection
Dim DocCol As HtmlDocument
DocCol = WebBrowser1.Document
eleminput = DocCol.GetElementsByTagName("input")
c# code
f
or (; (vreadystate == 4); )
{
Application.DoEvents();
vreadystate = Convert.ToInt32(this.webBrowser1.ReadyState);
}
HtmlElementCollection eleminput = default(HtmlElementCollection);
HtmlDocument DocCol = default(HtmlDocument);
DocCol = webBrowser1.Document;
eleminput =DocCol.GetElementsByTagName("input");
run this code
but my program has error in last line
"Object reference not set to an instance of an object."
how to change this code that solve this error?
Reply
Answers (
6
)
Checking if a sentence is a pangram or not
Displaying data in gridview in c#