|
How to control html page containing frame object by AxWebBrowser?
I wrote the code as following.
-----
HTMLDocument doc = (HTMLDocument)this.WebBrowser.Document;
object index = 1;
IHTMLWindow2 window = (IHTMLWindow2)doc.frames.item(ref index);
doc = (HTMLDocument)window.document;
-----
The error message was like this (I'm sorry for Japanese):
-----
'System.InvalidCastException' のハンドルされていない例外が mscorlib.dll で発生しました。
追加情報: インターフェイスがサポートされていません
-----
I tried translate above message.
-----
non-handled exception 'System.InvalidCastException' was occurred in mscorlib.dll.
additional information: interface is not supported
-----
the same problem occurred when I tried this code
-----
HTMLDocument doc = (HTMLDocument);
MessageBox.Show(doc.frames.length.ToString());
-----
So, what is the problem?
Please help me ...
|
|
|
|
|
Perhaps doc.frames.item(ref index) isn't returning an IHTMLWindow2 interface? I'd check that in the debugger, see the actual type that is being returned before assuming it is an IHTMLWindow2.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Homosexuality in Christianity
Judah Himango
|
|
|
|
|
No, that misses the mark.
Because this error occurs even if the code doesn't use the cast.
|
|
|
|
|
|
Error that I wrote in the first message occurs.
I.e, the situation is same when go
IHTMLWindow2 window = (IHTMLWindow2)doc.frames.item(ref index);
|
|
|
|
|
Here's what I want.
1. I have remote ftp server(with ip, user, pwd).
I want to make virtual ftp folder using shell extension which directs me to ftp server after asking about the user, pwd.
Can anyone tell me about the detailed descriptive article on this issue.
Any hint will also be welcome.
|
|
|
|
|
Hi
how can I prepare a crystal report in .net using C# & sqlserver.
Thanks in Advance
Alok
Alok
|
|
|
|
|
can you be more specific?
What would you like to do?
No hurries, no worries.
|
|
|
|
|
Crystal reports for .net has its own wizard where you can build the report, you have to link the project to view it, search for the examples in the code project
Carlos Sánchez Pérez
Mathesis Consultores
Cd. Obregon Sonora
carlos@mathesis.com.mx
|
|
|
|
|
Hi all
Can anyone help me.
I do have Table Employee in SQL Server 2000
Fields in Employee Table - Empno,Ename,Esal
I want to display these details in DataGridView.
and my column headings in DataGridView like Employee No, Name,Salary.
How to bind values to DATAGRIDVIEW using DATASET.
Thanks in advance
with thanks
Rema
|
|
|
|
|
just search with the keyword DataGridView in codeproject or google.
hope you'll find dozens of articles.
|
|
|
|
|
Hello All,
I have simple client application and i have to refresh this client side form only when some event occurs.I have to store this event in database and check in database to see if any event occured and if any event ocuured then the client side is to be refreshed.
I dont know how to do this?
Thanks
Amruta
|
|
|
|
|
Is this a high transactional database. What is the rate of such events. I had encountered similar scenario and I did the following
(1) If any event occur in the database, write the data to a Database Table inside a trigger( specifically for this).
(2) A windows service in Client keeps polling this table after say every 30 sec.
(3) If records are found do the refresh.
Hope this helps.
Thanks,
Alomgir Miah
Live Life King Size
|
|
|
|
|
hi.. i am planning to build an application that involves sms. the concept is mobile phone1 sends a messsage that contains keywords (example BALANCE) to another mobilephone2 that is connected to a computer. Once received, it accesses the computer's database. The information is retrieved and then is sent to the mobile phoneA.
The problem is i don't know where to start. can u guys give me a clue? i also need resources of existing application for my documentations.. please help.. tnx
|
|
|
|
|
Hi all!
I write a C# class and compile to DLL file, then I register it thus DCOM. How can I use it in C# remote application?
Thanks!
|
|
|
|
|
Hi all!
I write a C# class and compile to DLL file, then I register it thus DCOM. How can I use it in C# application?
Thanks!
|
|
|
|
|
Well if it is C# class then you can reference your dll in another C# project... COM registration is unnecessary in this case.
Just right click on References in Project EXplorer (assuming you use Visual Studio) and add your dll... you can then simply use all public classes in that dll.
David
|
|
|
|
|
Thanks! But i want to call some methods of class on another machine!
System.Type type = Type.GetTypeFromProgID("ProgID","ServerAddress");
object obj = System.Activator.CreateInstance(type);
How do I use obj to call some method of it!
Thanks for your help!
hoale
|
|
|
|
|
Hi
I am completely new to c# .so i am just into basics.
just now i am beginning to work with windows forms
now i have to add a text box and a insert button
now when iam entering the text it should be inserted when the button is clicked.
now wht i need is that when the text box is empty and when i clicked the button , it should show a message saying that textbox is empty
I Think this is very smalll problem. But as iam new, pls guide me to do it .
j o h n
|
|
|
|
|
Subscribe to the button's click event (Double click on the button in Forms Designer, if you're using VS) and then inside the event handler, check if the textbox's Text property is equal to String.Empty
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
void myButton_Click(object sender, EventArgs e)
{
if(myTextBox.TextLength > 0)
{
}
else
{
MessageBox.Show(this, "Textbox is empty!", "Error!", MessageBoxButtons.OK,
MessageBoxIcon.Warning);
}
} I hope this helps!
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
Hi.
Any idea how do i...
i) arrange/sort people's names displayed in a listbox in alphabetical order AND by their surnames?
ii) search for people by name? (my code now can only search by their ID no.)
Thz a lot!
|
|
|
|
|
Hi!
Im new to c# but I'l try my best to be of help.
i) the answer is posted just about 5 topic post below yours
ii) I think its either you create 2 search buttons one for the ID no and the other for the name or create a dropdownlist that triggers the search function when you select one of the items inside it. Name or ID.
of course its only logic I still have to figure out how to do it by code. hehe
hope that helps...even for bit
|
|
|
|
|
hi
how can i use Amazon Inventory Management Service ?
i write application with useing Amazaon ECS 4 but it alow me only to search in amazon and i don't know how can i creat and manipulate Inventory in amazon .
please help me.
my email: mtaghiloo@yahoo.com
majid taghiloo
|
|
|
|
|
hi to all,
i made a web service to communicate with an sql server database.
how can i, raise an event from my web service and catch it in my c# win application. i want to do that because in my c# win application i need to get the sql server informationnal messages (user messages)
i tried to use the delegate, but i think i missed something, does any one have an example.
best regards and thanks in advance
fady
|
|
|
|