|
Thanks for that hint! This seems to be very interesting...
|
|
|
|
|
OK, now I´ve read the article http://msdn.microsoft.com/msdnmag/issues/03/02/bits/ about that, but as far as I understand, the problem I mentioned is not explicitely addressed there. One thing is the download-process done by the BITS API, but another thing is how to replace the application-files, but in that article it is presumed that files can be renamed/deleted inside the program folder.
Do you agree with that? Then I have the same problem as before, that under Vista I will not be able to manipulate the files in the program directory. Or can I?
|
|
|
|
|
Hi!
If you try to modify files in the program directory, all changes will be virtualized to a directory in the user profile.
This does not happen if your program is running with elevated rights. You can achieve this by embedding a manifest into the application telling Vista that your updater application requires elevated rights to perform correctly.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Thank you! But what is a manifest? How does it look like? I could not find anything specific about that thing...
|
|
|
|
|
How to embed a manifest can be found here[^], the contents of the manifest file can be easily found here using google[^].
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
I want to ger CPU,Memory & Disk utilization of Windows machine using C# application.
If you have any idea about that pls reply me via email.
email : kaushal654@yahoo.com
|
|
|
|
|
Hi
Read up on System.Diagnostics.PerformanceCounter .
For a general question like this it is best to google first [^]. Generally, people post specific problems here.
Just curious - do you find you get a lot of spam?
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
Hi,
I have a dataview called 'dvUniv' which contains the sorted data. I want to reassign this sorted data to another DataTable, say dt1. Is it possible to do that? If so, how is it done? Any help in this regard is great.
Thanks,
Meeram395
|
|
|
|
|
DataTable dt1 = dvUniv.ToTable();
|
|
|
|
|
Hi,
Thanks for your reply. But there is no function called DataView.ToTable(). I'm using .Net Version 1.1. Is there any other way?
Thanks
Meeram395
|
|
|
|
|
You could try the following code:
DataView dvUniv = new DataView(dt1);<br />
<br />
for (int i = 0; i < dvUniv.Count; i++)<br />
{<br />
dt1.Rows.Add(dvUniv[i].Row);<br />
}
Or read this page:
http://support.microsoft.com/kb/308909/en[^]
|
|
|
|
|
Hi
i have a mdiform with a tabcontrol on it,that my tabcontrol is docking to right of the mdiparent and my child forms are opening in the all extra space of the parent in maximaize style,and child's autoscroll property are set to true,
but if i resize my childs in 800*600 resolution,both are the parent and child will have scrollbars that it make user,confusing.
how can i unvisible my parent 's scrollbars in c#?
so thanks
parastoo saadat
p00932004@yahoo.com
|
|
|
|
|
Hi,
Please help me, I need to know how to get data from gridview selected row of another form
Thanx
|
|
|
|
|
Hi,
I have developed a an EXE that would be running on a web browser...At the same time i would like it to accessing the system resuorces. How should i go bout with giving the permissions to this particular piece of code...
|
|
|
|
|
Hi All,
I have a toolbar control which is created by using Microsoft.Office.Core.CommandBar. All are good until I have some modification on it from other thread (I changed enable property of one control on this commandbar). The error is look like:
<br />
Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Core.CommandBarPopup'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{000C030A-0000-0000-C000-000000000046}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).<br />
If this command bar is a Form (or something extends Form), I can use the invoke action and delegate method to solve current problem. But it isn't. Are there any solutions for this issues?
Thanks for all suggestion solutions from you friends.
Banana
|
|
|
|
|
Hi,
I am beginner, I want to convert My Database (MS Access) to XML files.
Anybody help me?
Pravin
|
|
|
|
|
Erhm, the easiest way is to load all tables in you database in a DataTable object and write that to XML using the WriteXml() method, however working with XML this way is pretty time consuming having large amounts of data in your database...
|
|
|
|
|
Hi,
I am new to Reflection. I have written the following code...
using System;
using System.Reflection;
using System.Security.Permissions;
namespace reflection
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Assembly myassembly = Assembly.LoadFrom("ReflectionDLL.dll");
Type [] mytypes = myassembly.GetTypes();
foreach (Type type in mytypes)
{
Console.WriteLine(type.FullName);
}
}
}
}
and I am getting the following exception.
System.Security.SecurityException was unhandled
Message="Request for the permission of type 'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
Source="mscorlib"
GrantedSet="<permissionset class="\"System.Security.PermissionSet\"\r\nversion=\"1\"">\r\n<ipermission class="\"System.Security.Permissions.FileDialogPermission," mscorlib,="" version="2.0.0.0," culture="neutral," publickeytoken="b77a5c561934e089\"\r\nversion=\"1\"\r\nAccess=\"Open\"/">\r\n<ipermission class="\"System.Security.Permissions.IsolatedStorageFilePermission," mscorlib,="" version="2.0.0.0," culture="neutral," publickeytoken="b77a5c561934e089\"\r\nversion=\"1\"\r\nAllowed=\"ApplicationIsolationByUser\"\r\nUserQuota=\"512000\"/">\r\n<ipermission class="\"System.Security.Permissions.SecurityPermission," mscorlib,="" version="2.0.0.0," culture="neutral," publickeytoken="b77a5c561934e089\"\r\nversion=\"1\"\r\nFlags=\"Execution\"/">\r\n<ipermission class="\"System.Security.Permissions.UIPermission," mscorlib,="" version="2.0.0.0," culture="neutral," publickeytoken="b77a5c561934e089\"\r\nversion=\"1\"\r\nWindow=\"SafeTopLevelWindows\"\r\nClipboard=\"OwnClipboard\"/">\r\n<ipermission class="\"System.Security.Permissions.UrlIdentityPermission," mscorlib,="" version="2.0.0.0," culture="neutral," publickeytoken="b77a5c561934e089\"\r\nversion=\"1\"\r\nUrl=\"file:///H:/dot" net="" practice="" projects="" reflection="" bin="" debug="" reflection.exe\"="">\r\n<ipermission class="\"System.Security.Permissions.ZoneIdentityPermission," mscorlib,="" version="2.0.0.0," culture="neutral," publickeytoken="b77a5c561934e089\"\r\nversion=\"1\"\r\nZone=\"Internet\"/">\r\n<ipermission class="\"System.Drawing.Printing.PrintingPermission," system.drawing,="" version="2.0.0.0," culture="neutral," publickeytoken="b03f5f7f11d50a3a\"\r\nversion=\"1\"\r\nLevel=\"SafePrinting\"/">\r\n\r\n"
PermissionState="<ipermission class="\"System.Security.Permissions.UIPermission," mscorlib,="" version="2.0.0.0," culture="neutral," publickeytoken="b77a5c561934e089\"\r\nversion=\"1\"\r\nUnrestricted=\"true\"/">\r\n"
RefusedSet=""
Url="file:///H:/dot net practice projects/reflection/reflection/bin/Debug/reflection.EXE"
StackTrace:
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
can anyone help me out plez...
|
|
|
|
|
no one knows the answer
|
|
|
|
|
Have you tried anything to resolve the issue or simply got the exception and posted it here?
It looks like you program is attempted to load an EXE. The exception is security related. What permsissions are set on the EXE? Does the security context the calling application is running under have the relevant permission on the target EXE to do what you are trying to do.
Actualy, what are you trying to do? You've just code dumped.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
Hi!
MSDN has a quite extensive documentation about .NET security. This is definitively worth reading, otherwise you won't understand the answers you'll be given.
From your stack trace it seems as if the application is running from a network share. By default, CAS policies grant FullTrust only to applications running from the MyComputer zone, so either copy the files over to your local computer or adjust CAS policies accordingly.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hi,
I'm a beginner, so please help me.
I want to know how to get value from other form variable or other form control, from our form. Thanx
Regard,
Edwin46
|
|
|
|
|
hi,
if u have one form as form1 and other as form2 and u want to show data from form1 to form2 then u can pass the values from form1 through the overloaded contructor of the form2.In form1 u could public properties to hold values for passing and then in the constructor pass these prop vals.I hope its clear.
|
|
|
|
|
Thanx a lot
regard
Edwin46
|
|
|
|
|
To get the value of a variable "V" in form "X" from form "Y", expose V as a public property in X, store a reference to an instance of X in Y, and access it. For example:
public class X : Form
{
public int V {
get { return v; }
}
int v = 0;
...
}
public class Y : Form
{
X x;
void someMethod()
{
int valueOfVinFormX = x.V;
}
} While this is probably the easiest way, it's not the recommended method of accessing data in other forms. But since you're a beginner, I decided to post a simple and direct answer.
/ravi
|
|
|
|
|