|
again this is for a windows app not a console app. I need to start a console app but not display the console window????
|
|
|
|
|
Yes idd, But I don't see the difference as long as you don't see anything anyway??
|
|
|
|
|
A form is a class so you can deal with it by not having application.run and then just using showdialog or something. A console window appears regardless.
Tim
|
|
|
|
|
How about a NotifyIcon project?
|
|
|
|
|
Hi all,
We are developing two applications using C#.Net 2005. I want to pass a string from one application to another.
For example if the user click a button in the application 1, I want to pass an string from this application(application1) to the another application(application2), also the application2 has to run simultaneously.
Plz any one suggest me, How to do this?
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
Use the windows messaging queue. You can pass messages between apps and even create your own queue. There is a chapter on it in the Wrox C# 2005 Professional Edition.
File Not Found
|
|
|
|
|
Exelioindia wrote: I want to pass a string from one application to another
I don't think that you can do so. IF you were in one application you can pass between a form and another.
i advice you to save the data you want to use in the other application in a file or a database and then recover it using the second application
|
|
|
|
|
There are all sorts of ways of passing data between applications. MSMQ is one example already discussed in this thread. Named pipes, network connections (you can connect through the loopback adapter) and so on.
|
|
|
|
|
I shall be reading about those topic shortly.
thanks
|
|
|
|
|
quiteSmart wrote: I don't think that you can do so
off course you can do it. You can use the windows messages for that.
I even have a demo that does exactly that.
V.
I found a living worth working for, but haven't found work worth living for.
|
|
|
|
|
hi,
thank you very much for your suggestion. If you dnt mistake, plz share tht demo with me.
Know is Drop, Unknown is Ocean
|
|
|
|
|
Why do people always downvote some questions? (Nothing else todo?)
Actualy it's an interesting one.
|
|
|
|
|
hi i have a small question / is it posible that i have an own webserver in my c# application?
windows xp home pcs dont have iis on board / this is the reason why want to implement an own server on an specified tcp port. how is that posible.
greeting gigo
|
|
|
|
|
You could use something free like Apache. I don't know how easy it is to host ASP.NET applications on it, however, I've heard that it can be done.
|
|
|
|
|
but i want to embedd the webserver inside my application.
so if i use apache / i can use php this is not the problem.
greetings gigo
|
|
|
|
|
gigo2k6 wrote: but i want to embedd the webserver inside my application.
Why? Your original request was to find a replacement for IIS as it isn't included in Windows Home edition. There are very few applications where you would want to embed a webserver - mostly those revolve around things like router and other network configuration tools. The main use of a web server is to run on a server box. If your intention is to run the application on the same machine as that running the server then you would be better off building a WinForms application.
|
|
|
|
|
Hi .
Need to Convert base64 string representing header of the binary field with image data.
//ds.Tables[6].Rows[1].ItemArray[2].ToString() contains base64string
{
Byte[] byt = Convert.FromBase64String(ds.Tables[6].Rows[1].ItemArray[2].ToString());
SaveToOut("image/jpeg", byt, true);
PerformScaleImage(contentType, content, Response, 150, 50);
MemoryStream stream = new MemoryStream();
stream.Write(buff, 0, buff.Length);
using (Bitmap img = new Bitmap(stream))/*---Giving invalid parameter exception-------*/
{
--------------------------}
}
Can you give details.
Srinivas
|
|
|
|
|
hi
try this
stream.Position = 0; // Rewind the stream
Bitmap img = (Bitmap)Image.FromStream(stream);
regards
|
|
|
|
|
Hello,
I think it's only the System.IO.Stream as a parameter valid!
All the best,
Martin
P.S.: please don't repost same question
|
|
|
|
|
Stop spamming.
I have already answered this in your previous thread.
---
Year happy = new Year(2007);
|
|
|
|
|
hello
i'm trying to develop some logic that depends on the response i get from different system messages meaning that when a message box is displayed i want to apply some conditions if the user clicks on the Ok button, or some code takes effect if the user clicks Cancel button on the MessageBox.
the message box is the one that is usually displayed by
MessageBox.Show(""); method
can u please tell me if what i'm trying to do is possible?
if yes then please guide me how to do it
Regards
Saira
|
|
|
|
|
MessageBox.Show() returns one of the DialogResult values:
DialogResult.OK, DialogResult.Cancel, ... and so on ...
SkyWalker
|
|
|
|
|
thankyou
Regards
Saira
|
|
|
|
|
welcome
SkyWalker
|
|
|
|
|
The Show method returns a value of the type DialogResult .
DialogResult result = MessageBox.Show("Hello world!");
The value of the return value reflects what the user did with the message box.
---
Year happy = new Year(2007);
|
|
|
|