|
If you are an admin on the box, then right click on my computer and click manage.
Click the plus on Local users and groups. There you will see groups and users. You can add local users or local groups to the box if you are an admin.
Hope that helps.
Ben
|
|
|
|
|
yes i am admin, but we are developing an application, and we want to set the security permissions for the files generated by the application programatically! and its not about creating or settingup a group or users, its about the setting of permissions of a file!
guess i confused it by using the "security tab" but it is wht we need to do, but programatically!!! !
|
|
|
|
|
I am using C# with crystal report XI in computer one, then I want to deploy my program in computer two, which it does not have crystal report. When I ran my program in computer two, it getting error cannot find some dll file. Do I have to install something. I don't want to install a whole crystal report application in computer two. Thank you
|
|
|
|
|
|
You can just include the merge modules in your setup kit and that would look after installing the required runtime dll's for your application. The link by kubben contains a link to get the merge modules.
|
|
|
|
|
after finsh programming software. how can i do the setup for my software so i can install it in any PC
|
|
|
|
|
You can make a Setup for your program by using Visual Studio. You can also use third party softwares like NSIS, InnoSetup and InstallShield etc.
|
|
|
|
|
how can i use Visual Studio to make the Setup...
|
|
|
|
|
|
|
Hi ,
I have written an assembly in C# which uses threads, and I want to add the reference of this assembly in both Windows Form and ASP.NET Web Form.
There is a method in a thread of my assembly which should send the current status of processing to Windows Form and Web Form .
My problem is, I first used the 'invoke and delegates' mechanism from my assembly to update WindowForm control , but this technique did't work on WebForm control as I could't find any equiavalent of 'Invoke' in WebForm .
Now I tried to use the Delegates and Events , I fire events from my assembly and try to catch those events in my WIndow Form , but getting error that "cross-thread operation is not valid" as I am trying to update GUI control frm my own thread....
Is there any way around to this ? I want to use technique through which I can update my both Win Form and Web Form controls !
Please I need help I m realy very badly struck here...
Thanks in advance.
ZINK
HELLO
|
|
|
|
|
I need to open a StreamWriter for a file, but have trouble mapping my Win32 CreateFile skills to C#, esp. the CreationDisposition. I need.
"Create file, truncate existing": That's probably what File.CreateText does
"Create File, error if it exist": ???
"Create File, Append if it exists": that's probably File.AppendText, but how di I figure out that it already did exist?
I can do the two latter ones by putting a File.Exists test in front of it - but that isn't the "atomic" operation.
Just Curious
|
|
|
|
|
If you create a FileStream first using then you can specify what you want to happen to the file.
FileStream fs = new FileStream(path, fileMode);
Where FileMode can be:
FileMode.CreateNew (exception thrown if already exists)
FileMode.Create (overwrites an existing file)
FileMode.Open (exception thrown if does not exist)
FileMode.OpenOrCreate (if exists then opens, otherwise creates)
FileMode.Truncate (opens existing file but wipes it, presumably throws exception if file doesn't exist)
FileMode.Append (appends to existing file)
Once you have opened it you can pass this to the StreamWriter's constructor.
|
|
|
|
|
thanks, that's what I was looking for!
|
|
|
|
|
Hi,
If a user edits a value on a DataGridView, the DataTable under its DataSource recognizes the change when calling DataTable.GetChanges()
However, if I edit a value programatically on the DataGridView, the DataTable.GetChanges() returns a NullReferenceException as if no change took place.
I know it saved to the DataTable, because I can look at it and see the updated value. Is there something else I need to call on the DataGridView after programatically updating it to make the changes noticable on the DataTable? Some type of commit method that is automatically called when a user edits?
Right now I am bypassing the error by updating directly on the DataTable, but I know the DataGridView.Rows is a much smaller collection to loop for changing than the DataTable.Rows (due to filtering already in place). Should I worry about this efficiency issue at all?
Thanks,
Pualee
|
|
|
|
|
The datagridview exists solely for the user's benefit. If you want to programatically modify a data set, modify it in memory - your DataTable directly. That is the correct approach.
|
|
|
|
|
Ok, thanks, I was worried I would never get answered
|
|
|
|
|
Can tell me anybody how can I populate a treeView from a class ... ?
|
|
|
|
|
You populate a TreeView by adding TreeNode s to its Nodes collection. See this[^] MSDN article.
/ravi
|
|
|
|
|
I want to say that I have a class ... with many properties like primitive types or other types created by me.
I have an object populated with dates ... and I want to populate a treeview with dates from this object.
|
|
|
|
|
Can I create a class from a string name??
I want to Make a new instanc class from string name in C#.
for example:
string nameClass = "Class1";
Class1
{
....
}
nameClass newInstance = new nameClass();
Thanks For Your Time.
|
|
|
|
|
|
Yes we can using Reflection.
1. suppose you have added reference of a class 'clsTest' in your project.
2. then add
namespace System.Reflection
using System.Reflection;
now in your code write
Type tpClsTest = Type.GetType("clsTest");
object objTest = Activator.CreateInstance(tpClsTest);
now objTest represents the instance of your clsTest.
sarvesh
C
|
|
|
|
|
Hi.Thanks
Can you Write Example Code For me??
I cant Run that method for my aim.
my aim:
string nameClass = "Class1";
Class1
{
....
}
nameClass newInstance = new nameClass();
how can i write this code with activator??
best regards.
|
|
|
|
|
how can i capture mouse position when my app it's not active?
|
|
|
|