i am working on MSHTML and AxWebBrowser in c#.net(Desktop Application). i have
to scan lot of HTML pages.After Navigate the page "WebBrowser Document is
converted into IHTMLDocument2".so that i can scan pages through MSHTML. i am
using the following code.
4. mshtml.IHTMLElementCollection AllElements=doc.all;
Problem here is on 3 step. this step is excuting before the page is rendered. it gives me the error
that "Object reference is not set". what i want is this 3 step will not excute unless and until the page is
rendered or download properly. Please tell me what condition I will use before 3 step so that it can not
the page rendered.
i would like to know in details about MSHTML and AxWebBrowser. Please tell me from where can i
get the articals and sample code for this topics.
In principle i have a small list of commands which i can send so it can gather the info i need, like a list of all available files on it and the possibility to retrieve a file.
It can also send data 'realtime' but if have not been able to collect that.
Something to do is to know if it 'preparing-data' or 'in-rest-mode'.
Could use threads,...let one wait if data is available,...not failsafe, some threads could never be triggered.
The problem is that stuff like 'end-of-transfer' is not available.
I was using something like:
if port.BytesToRead > 0 then add it to a string and later parse that string<br />
The problem with that logic is that it's not the way for this device. It works only when:
for i = 0 to 999999<br />
read byte and add it to cumulative string<br />
// timeout occured or ehm,...somthing like that.<br />// Assuming no more data is available<br />// Could implement a [another] wait of 1000ms to be sure buffer is 100% empty...<br />
...otherwise BytesToRead will be 0 at one time eventhough there should [and 1ms later] be more data available.
There is a commercial tool which can do the same as i do, however the tool is very user-unfriendly.
-- modified at 21:27 Saturday 10th September, 2005
is there a way to update datagrid from dataset, with out loosing current datagrid view (scroll position) and cell position. im only updating row data, not insering new row. and im not doing it directly to datagrid.
i have given columnstyles for datagrid, texbox columnstyle, datetimepicker and combobox..
my problem is that, when at runtime, i press the TAB key, the cursor moves two places...can any one tell me why this happens and how to get it to move just one place.
kindly do reply..
thanx in advance
i have a small problem in regex. I have string that contains the following text:
The oStarthereptional para
tributions" is a list of dis
tributiongroups, enclosed in
angle brackets. If specified,
portion of a new newsgroup (e.g,
’net’ in ’net.wombat’) will be
examined for a match with the
s listed, and
only those new newsgroups wh
Now, suppose i wanted to extract all the text between Starthere and end - how would I do that? Many lines are terminated byt a carriage return/ line feed pair etc.