|
HI
i write two application with C#. at now i want to create an interaction between them.
what is best way to do this (create interaction between 2 application) ?
can we do this with interfaces ?
|
|
|
|
|
Saeed.394,
What do you mean by "interaction"? Do you want to just call methods in the other app? or send data to it?
Regards,
Gareth.
|
|
|
|
|
i m having a lot of forms(with mdi parent)...on main form which is called on load of mdi form which displays a list of users.. and in another form we can add/modify th user...so i want to refresh the main form..i did main mn=new main();..and then call the function mn.load()...but because its creating a new instance...so the function is not working....so i want to pass the same object to another form ....how can i do that please help me..
|
|
|
|
|
|
Is There A C# Code That Will Allow Me To Restart The PC Into Safemode With Network Access?
|
|
|
|
|
Import ExitWindowsEx() from user32.dll and use it to restart windows. I am not sure if this API would let you restart in safe mode with network access. But probably you could edit the boo.ini file from your program and get that too done.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Thanks For The Fast Reply! Will Give It A Try!!!
|
|
|
|
|
when i try to open a report in my application on a test machine it gives me this error
-------------------------------------------------------------------
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.WinForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.ReportViewer.WinForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
--------------------------------------------------------------------
is there any runtime requirement for crystal report?
does merge modules require to have a deployment project?
|
|
|
|
|
can anyoner plz. help me out in writing a code in c# for
Sending SMSs from your Microsoft .NET Compact Framework-based Applications
regards
|
|
|
|
|
Dear Friends
I am developing application for a browsing center,
I want to restrict users to access some websites and some File formats to Download.
Now I say
http://www.java2s.com/Code/CSharp/Network/ImplementsamultithreadedWebproxyserver.htm
Multithreaded Web proxy server code
And this code is gives me an error as "The operation has timed out" error at System.Net.HttpWebRequest.GetResponse()
1. What is the problem?
2. I get URL name in this code, and I can filter the web sites here. Now how can I filter the creation formats to download?
Please help me.
By
Joe
|
|
|
|
|
Dear Frieds
i have done a sample application for WMI Scheduling, and i could schedule jobs using it.
my problem is i schedule the task to work on every day but that task is assigned for saturday
Hear is my Sample Code.
ManagementClass classInstance = new ManagementClass("root\\CIMV2","Win32_ScheduledJob", null);
ManagementBaseObject inParams = classInstance.GetMethodParameters("Create");
inParams["StartTime"] = "********113000.000000+330";
//YYYYMMDDHHMMSS.MMMMMM(+–)OOO
ManagementBaseObject outParams = classInstance.InvokeMethod("Create", inParams, null);
ManagementClass classInstance = new ManagementClass("root\\CIMV2","Win32_ScheduledJob", null);
ManagementBaseObject inParams = classInstance.GetMethodParameters("Create");
inParams["StartTime"] = "********113000.000000+330";
//YYYYMMDDHHMMSS.MMMMMM(+–)OOO
ManagementBaseObject outParams = classInstance.InvokeMethod("Create", inParams, null);
Any Problem in my Code.
Please help me.
With Love
joe
|
|
|
|
|
is there any way to hide those button???
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
maybe there is a way, but hiding up and down buttons of a control which mainly differs from a textbox by additional up and down buttons doesnt sound like a very good idea.
you can use a textbox and add a validator.
|
|
|
|
|
I am using Visual Studio 2005 to write a C# program. And I am wondering if anyone tell me if there is a programattic way to differentiate when a form is being closed via the Close() method as opposed to being closed via a user clicking on the control box 'x'? The CloseReason seems to be the same for either one, and I would like to know which 'Close' is occurring if possible.
Thank You...
|
|
|
|
|
paas,
I dont think there is a difference. However, when calling the form.Close(); method, you could set a flag and then in the OnClosing event, handle that flag and do whatever you want.
Regards,
Gareth.
|
|
|
|
|
Look up the OnClosing event handler, you can handle the close from there.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Thanks everyone for the replies. Unfortunately my initial message was not as detailed as it should have been. I know about the FormClosing event and how I could trap a flag I set before programtically executing a Form.Close(). However, what I really need to know is the difference between the closes that can be executed on the title bar. Either the 'x' close in the right corner, or the 'Close' that can be executed from the dropdown appears when you click in the left corner (on the icon). Can those be differentiated in the Closing event?
|
|
|
|
|
Not as far as I can tell. Even if overriding WndProc the same data is sent for both.
m.Msg is WM_SYSCOMMAND (0x0112)
m.WParam is SC_CLOSE (0xf060)
Dave
|
|
|
|
|
how can i have a transparent form with image that have shadow?
i want to have a startup form just show image with shadow
|
|
|
|
|
Maybe play around with the Opacity property?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
It dose not work.
Opacity hide all object. but i want to hide form and show an image with shadow
|
|
|
|
|
It was just a quick thought...
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
If you set the TransparencyKey to the SystemColors.Control, and you make your form borderless, you have a nice splash window.
But... the shadow is something you can't do easily. If you tried to embed the shadow in the image, you will see the background behind it.
Perhaps you can use WPF for that.
Quick search: http://www.codeproject.com/KB/WPF/WPFImageEffects.aspx[^]
|
|
|
|
|
i knew it.
but i can't use wpf for this project
|
|
|
|
|
shadow u can do with css property.
box-shadow It may help u in better way
|
|
|
|