|
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
|
|
|
|
|
hi ,
i am using VS.Net 2005 AND I Want to use ResourceManager to read from my resource file .
i was add 1 resource file with vs.net and .net create resource file in Properties folder (Properties/resource.Resx) .
i am trying to create resource manager with following code
ResourceManager rm = new ResourceManager("resource",Assembly.GetExecutingAssembly());
Error ocurred in RunTime in instasiate statment .
what is the proble ?
tnx 4 ur help............
---------------------
Areff Bahrami(KAVEH)
Areff.HB@Gmail.com
---------------------
|
|
|
|
|
What was the error message?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
With .NET 2.0, there is an easier way to do things.
First of all, you need to create the local resources folder called App_LocalResources or the global resources folder, App_GlobalResources . Files located in the local resources folder will have to be named like their corresponding ASPX files; files in the global resources folder can be named whatever you like.
Now, suppose you have a file called myPage.aspx . If you decide to use the local resouces, it means that you will create resource files only for that page. Your resource files should be named: myPage.aspx.resx (this one should always be present), then for different languages you would have: for US English: myPage.aspx.en-US.resx , for Switzerland French: myPage.aspx.fr-CH.resx , etc....
For the global resources, you can use any file name you like to replace myFile.aspx .
Now to access the resouces:
Assuming you have a label lblFirstname to which you would like to assign the value of the resource called "firstname " in the resource files, you would write:
For local resource: lblFirstname.Text = GetLocalResourceObject("firstname").ToString();
For global resource: lblFirstname.Text = GetGlobalResourceObject("GlobalFile", "firstname").ToString();
where GlobalFile will be the name of the global resource file.
I hope this helps
Talal
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
tanks for your help but i want to know why error ocured in this code and how can i fix this problem ?
ResourceManager rm = new ResourceManager("resource", Assembly.GetExecutingAssembly()):
there was this resource file :
Properties/resource.resx
tnx
---------------------
Areff Bahrami(KAVEH)
Areff.HB@Gmail.com
---------------------
|
|
|
|
|
I think I remember that when I was working on a project in .NET 1.1 I got some problems with the GetExecutingAssembly() . I don't remember exactly why it wasn't working but I used another piece of code to solve the problem. Also, I think you should put the whole name of the resource file (with namespace reference).
If you have a file called resource.resx in a folder "Properties " of project "myProject ", you should put the file as "myProject.Properties.resource ".
The code I use is this:
ResourceManager rm = new ResourceManager("myProject.Properties.resource", Type.GetType("namespaceName.pageClassName").Assembly);
where pageClassName is the name of the page class where your code is located and namespaceName is the namespace where this class is located.
Talal
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
we can use lock/Moniter to synchronize the instance method/variable , but how to synchronize static method/variable?
|
|
|
|
|
lock on a static variable !
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
My screen contains a DataGrid(System.Windows.Forms)control, in Save button click i am inserting the data present in the grid. I have given Alt+S as shortcut key for my Save button, ext present in the DataGridTextBoxColumn is not getting inserted while i use Alt+S, but inserting when i click Save through Mouse, it is due to Uncommitted data to TextBoxColumn, any body help me in solving this problem.
srikanth
|
|
|
|
|
hi all,
I've figured out how to set DataGridView columns to wrap text if the
text doesn't fit in the alloted column width.
This is great, but the row height isn't enough to display the wrapped
text. Is there a way to set the height so that all wrapped text in the
cell is displayed?
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
Anu,
The first two soulution given in the following link might solve your problem, I have not tried them.
Autosize rows in datagrid[^]
|
|
|
|
|
hi sathish,
thanks for those links. i tried it. the second link worked for me than the first one.
Thanks once again
Regards
Anuradha
|
|
|
|
|
hi
my application is written in C# .net 2003 compact framework for desktop and CE device.
i am unable to control the tab order. is there any way to do it. rearranging the controls is not a solution for me. is there anyother way.
thanks.
|
|
|
|
|
Hi, TabIndex property is supported since .NET CF 2.0 (i.e. VS 2005).
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|