|
How I can install programs from server to client using c#?
|
|
|
|
|
That's too broad of a question to give you any meaningful answer. If you need to do interprocess communication, look up .NET remoting. For installing stuff, potentially you could send the setup files across the pipe to the client, then the client could use System.Diagnostics.Process to launch the setup file. Most installers have a silent mode you can specify in the Process's arguments if you want the installer to run without intervention.
|
|
|
|
|
First, don't email me with questions. The forum is for questions; others can benefit from the answer you receive.
From the description you gave in the email, it sounds like you want to use ClickOnce technology, which provides auto and manual updates built-in: ClickOnce[^]. Deploy your software with ClickOnce, then use the System.Deployment APIs to update your application.
|
|
|
|
|
|
thanks for your pass,
I'll explain my question: suppose i have a program such as winzip program and i want to install it from my pc to another pc which connected to the same network, how i can do this without sending the program to the other pc.
more thanks again,,,
|
|
|
|
|
Hi,
How can i automaticly select and item in a listbox after i insert it?
<br />
lbLayouts.Items.Add("Layout " + lbLayouts.Items.Count+1); <br />
|
|
|
|
|
int index = lbLayouts.Items.Add("Layout " + lbLayouts.Items.Count+1);
lbLayouts.SelectedIndex = index;
|
|
|
|
|
Thank you very much!
Nuno
|
|
|
|
|
Problem Statement
How do I map multiple events to a single event handler?
Details
I have an MDI application and I would like to map a tree view item click to the same event handler for one of the items below the file menu, say filemenuitem. The tree view is a control within the MDI application.
Additionally, I would like one of the toolbars item clicks to map to the same.
Code Snippet/Others
Thanks in advance.
I am a SysAdmin, I battle my own daemons.
|
|
|
|
|
You do this by entering the name of the method that you call in the event handler link, e.g.:
myControl.Clicked += new EventHandler(MethodName);
You do this for both items.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hey,
When I write a file to my Harddisk and try to read (append) the next line (in my code) it craches. He says that the file doesn't exists... But when I wait 3-9sec it exists... How Can I for c# to immediatly write it on my Harddisk and not cache it our something?
thx!
|
|
|
|
|
It's very probably that you forgot to close your file before you tried to open it again. Can you show us the code?
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Code was inside "Using".
Works fine now
thx!
|
|
|
|
|
Hi
I want to create forms with glassy look and feel for that i want to change the shape of all controls like buttons, text box , and list controls , Menu. How can do it? As i have comeplted coding with all logics i want to write some global stuff for my project and apply it where ever i need by inheriting.
Its a windows based C# application....
Thanks.
|
|
|
|
|
Type in 'glass' in the search box above you. Many articles about this topic.
Look into Framework 3.0 and WPF
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
can we create custom events without delegates? if not why? please anybody pls
vani
|
|
|
|
|
Events use delegates. You don't always have to create one; you can use an existing one if the signature fits your event. Say you've got an event called Foo in your class:
class Bar
{
public event EventHandler Foo;
}
There you've just declared an event without having to declare a separate delegate.
If you have some custom event args:
class MySpecialEventArgs : EventArgs
{
...
}
...and you want to use those event args in your event, you can use the generic System.EventHandler<T> delegate:
class Bar
{
public event EventHandler<MySpecialEventArgs> Foo;
}
|
|
|
|
|
Hi,
how to print a section of the page using c#.net
thanxs
tirumal
|
|
|
|
|
There are so many article on how to print you may take a look on them first atleast you will get an overall idea that may also narrow down your likelyhood requirements. Well i try to give you an idea.
PrintDocument is the most important object with that you may write whatever you want to print/printpreview.
e.g
public void printdocuemtn1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
e.Graphics.DrawString("Hello World");
}
once you have what you want to print you can pass the printDocument object to the printpreviewDialog object i.e
PrintPreviewDialog ppdObj = new PrintPreviewDialog();
ppdObj.Document=docuement1;
ppdObj.showDialog();//to preview
if you want to print without displaying a preview then apply the print() method on the printDocument object.
|
|
|
|
|
can anybody suggest me by giving exact difference between delegate and event
vani
|
|
|
|
|
Events and Delegates[^]
"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." - Rick Cook www.troschuetz.de
|
|
|
|
|
Delegate is the abstract way to call any method or u can say it acts like a pointer to the method.Where as event is a interrupt which is caused by the user's action and call the event handler attached with that event to do desired processing.U can make custom events by using delegates.
rahul
|
|
|
|
|
|
Hi,
I can read file/directory permissions using
ManagementPath class
and
path.RelativePath = "Win32_LogicalFileSecuritySetting.Path='c:\\oracle';
etc.
Besides, I need to read if that particular permission setting is inherited or not,
as it is seen from the image attached-the column "Inherited from"-
Is there a way?
Thank you...
Click here for sample image for permissions
|
|
|
|
|
I think I've found it.
It's like:
string dirPath = @"c:\\oracle\temp";
DirectorySecurity ds = Directory.GetAccessControl(dirPath);
AuthorizationRuleCollection arc = ds.GetAccessRules(true, true, typeof(System.Security.Principal.NTAccount));
foreach (FileSystemAccessRule fsar in arc)
{
string identity = fsar.IdentityReference.Value;
string access = fsar.AccessControlType.ToString();
string rights = fsar.FileSystemRights.ToString();
bool inherited = fsar.IsInherited;
}
string filePath = @"c:\\oracle\sqlnet2.ora";
FileSecurity fs = File.GetAccessControl(filePath);
arc = fs.GetAccessRules(true, true, typeof(System.Security.Principal.NTAccount));
foreach (FileSystemAccessRule fsar in arc)
{
string identity = fsar.IdentityReference.Value;
string access = fsar.AccessControlType.ToString();
string rights = fsar.FileSystemRights.ToString();
bool inherited = fsar.IsInherited;
}
|
|
|
|