|
Yes, it is possible. Use System.Runtime.Remoting
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
But How. Is there any codding sample for this type of Idea???
Naresh Patel
|
|
|
|
|
Yeah, there is more code samples than you can shake a stick at. Google it, C# remoting.
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
|
I have ListView and i need to know the item that seleceted in event - how to do it ?
|
|
|
|
|
lv.SelectedItems();
or
lv.SelectedIndices();
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
Have a look at SelectedItems property.
|
|
|
|
|
hi all
i creeat solution by type setup and deployment
but my application connect to database in sql server2005 and i wount to put the database in my instolation solution
how i can do that
thanks to all
Thaer
|
|
|
|
|
Execute the create script for your db when the installation runs.
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
Thanks Mr Justin Perez
I do it but the instolation feilds and give me this message
DataBase creation fault
Aconnection was Successfully established with the Server ,but then an error occured during the login Process (provider :Shared Memory Provider , error -N Process is on the other end of the pipe.)
what is the problem and how i can solve it
thanks for you Mr Justin Perez
Thaer
|
|
|
|
|
The problem is that the user account you were using on your development machine doesn't exist on your target machine. Set up that same account for that DB on the machine you are installing to and that should take care of the issue.
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
hi guys,
how can I user rexec in c#
I want to access my linux machine ?
if you have any free dll that do this job for me
my code
<br />
Process p = new Process();<br />
<br />
p.StartInfo.UseShellExecute = false;<br />
p.StartInfo.RedirectStandardInput = true;<br />
p.StartInfo.RedirectStandardOutput = true;<br />
<br />
<br />
p.StartInfo.FileName = "rexec lnx5e048 -l subaaa0p \"setenv DISPLAY :0 ;ls -al\"";<br />
<br />
StreamReader myStreamReader = p.StandardOutput;<br />
Console.WriteLine(myStreamReader.ReadToEnd());<br />
please help
|
|
|
|
|
How are you trying to access your Linux machine? Is rexec a program on your Linux machine? If so, you will not be able to run it from Windows because the executables are different.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I can user rexec in windows to access virtual Linux desktop and execute my linxs application from throw this virtual desktop.
I can access it simply if I use command DOS :\ --> (rexec hostName -l Username "command")
how can I do it in C#
Do I have to use Process class? if yes how ??
|
|
|
|
|
aziz_subaie wrote: Do I have to use Process class?
Yep.
aziz_subaie wrote: if yes how
Look it up on MSDN...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
thanks
|
|
|
|
|
What is happening with the code in your original post? Is it working at all?
I've seen an article around here at CP that is about a DOS command prompt box inside a windows app. Do a search for that. I'd link it if I could find it
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
I am creating a windows application.It contains a folder say "MyFolder" .The contents of "MyFolder" say
-Customer.xml
-Employee.xml
-Account.xml
My windows application reads these files and performs some tasks,
Now I wanted to create a "SetUP" project for this application.
My problem is ,I am unable to include this folder ("MyFolder") in "SetUp" project.
|
|
|
|
|
Sam,
a. Add a new setup and deployment project to your solution file.
b. Right click your setup and deployment project. Add - > primary output (select your project)
c. Right click your setup and deployment project. View -> File System
RightClick Application Folder - > Add Folder and Add files inside that folder
|
|
|
|
|
Thank u ,
But i am still facing a problem to get the path of that folder
previously i used the following to get the path "MyFolder"
string x = @"..\..\..\CreateRepWinApp";
string FolderPath = x + "\\MyFolder"
Suggest me how to get the folder path for the installed location
|
|
|
|
|
Raju,
You can get the installation path using
Application.StartupPath
|
|
|
|
|
Hi Satish,
Thank you for your help
its working
|
|
|
|
|
hi,
plz i created a connection string in a class
what else should i do in the form where i need the connection to be opened.
connection string in my app. is "conString" .
Regards
|
|
|
|
|
I think you need to read book about ADO.NET
If you have connection string you can use one of the overload of sqlconnection class to create new connection.
|
|
|
|
|
i would google for 'c# database connect connection string' or something similar
|
|
|
|