|
Thanks Senthil!
I can get the IE window handle using hwnd property of InternetExplorerClass.But my problem is that I am getting the syntex error on my C# Script due to this statement:
[DllImport("user32.dll")]
static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
I'v already imported the namespace System.Runtime.InteropServices;
regards.
Kuldeep.
-- modified at 5:32 Friday 19th May, 2006
|
|
|
|
|
What exactly is the compiler error you're getting? And does C# script mean something other than normal .cs files compiled using the csc compiler?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Yes, This is a C# script executed by some Scripting Engine other than the csc compiler.
This is the error:
{Error} 32 Errors: Line: 4 - } expected Line: 45 - Syntax error, ']' expected Line: 45 - Invalid token ')' in class, struct, or interface member declaration Line: ...
....
.....
|
|
|
|
|
Hmm, looks like your scripting engine doesn't like attributes. How about moving the DllImport code to a separate dll and then referencing the DLL from within your script?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Yes,That is what we are thinking now.
build the c# assembly that uses User#2.dll's Showwindow() function.
then use this assembly in our script through reflection.
Thanks.
BTW, Can you suggest some forum where I can get more help on this topic(C# script).
Thanks and Regards.
KT.
|
|
|
|
|
Hi,
I want to print a file/document from my PC where printer is connected in netwrok. There may be any number of printers in n/w i need to send my files to specific printers. How to do it in C# please help me out.
Thanks.
|
|
|
|
|
If you are using PrintDocument, you can use :
this.printDocument1.PrinterSettings.PrinterName = "\\MYROUTER\PRINTER1";
|
|
|
|
|
Hi , I Need to create Form how Display on desktop and all program that will be with him . like ICQ.
(When I open My Form All Item In desktop will remove left)
thank you!!
and have a nice day
kobi
|
|
|
|
|
|
|
Hi,
What's really the difference between an EXE and a dll?
Please let me know the answer!
Thank you!
Deepa!
Be the Change you want to see!
|
|
|
|
|
Hi,
Basically an EXE is an out process server application and DLL is an in process server application. now out process server means an application which does not need help of other application to execute. That means you can directly run an exe but you will nedd an exe to run a dll. These dll's are loaded inside some worker process and thats why they are called in process servers.
Also you can call dll's as components and exe's as applications.
Anant Y. Kulkarni
|
|
|
|
|
Hi Anant,
Thank you very much!It was really helpful!
Deepa!
Be the Change you want to see!
|
|
|
|
|
Deepasubramanian wrote: Please let me know the answer!
That secret is exposed here[^]
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
fullname of .exe is Extensible Execute File
fullname of .dll is Dynamic Link Liberary
.exe use by End User like-Client
.Dll can not use by End User.
We can Run the .exe
but we can not Run the .Dll
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
How to add a row into data grid in WINDOW FORM Application
|
|
|
|
|
If you have only table in that grid, it is easy, use this:
DataTable dataTable = this.dataGrid1.DataSource as DataTable;
if(dataTable != null)
{
DataRow dataRow = dataTable.NewRow();
dataTable.Rows.Add(dataRow);
}
this.dataGrid1.DataSource = dataTable;
|
|
|
|
|
Hi,
I apologize if this is not the correct forum to post my question. However, I'm using C# to find a solution to this problem.
Here it goes.. The following informations are known: PointA(3,4) and Radius=0.5.
If we plot a circle given the above mentioned information, how can I check whether PointB(3.7,2.4) is within the area of the circle?
Please help..
tia,
lupin
|
|
|
|
|
just check if the distance from your point B to your point A is smaller than or equal to the Radius.
distance between 2 points can be calculated with formula:
pt1 = (x1,y1) pt2 = (x2,y2)
D = sqrt( pow((x2-x1),2) + pow((y2-y1),2) )
It`s been over 10 years since I used these formulas, but I`m quite sure that this is the correct one...
|
|
|
|
|
|
Thanks guys! I'll check it out..
Cheers!
|
|
|
|
|
Hi all,
my problem is that i am sending mail to perticular id . now i want to do know the status that mail it is read by user and how many times using c#.
please help me
Thanks & Regards
Nikesh Sahu;);)
nikesh
|
|
|
|
|
Hi,
Do you want a read receipt from the user.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi Apurva,
yes dear. whenever user reads mail i want acknowledgement that user
user read mail.
Thanks & Regards
Nikesh Sahu
nikesh
|
|
|
|
|
Hi Nikesh,
Go through this article, probably this will help you.
http://www.systemnetmail.com/faq/3.3.3.aspx
Best Regards,
Apurva Kaushal
|
|
|
|