|
|
|
Hi All,
I have created context menu for my windows app. This context menu appears if you right click on the .pdf files in windows Explorer.
Do add this menu, I have added Registry entry to the following path
HKEY_CURRENT_USER\Software\Classes\.pdf\shell\myapplication\
This is working fine on windows XP, but not working on Windows 7. Any one knows the reason and how to fix it?
Thanks in advance !
Amit
|
|
|
|
|
Hello Sir,
How to USBPen Drive)Ccde in C#.Net
Rajkumar
|
|
|
|
|
|
Alternative, you can buy a USB key with a hardware-lock[^], and superglue the lock into position once you've written your data on it.
Bastard Programmer from Hell
|
|
|
|
|
i want c# code for radio button like gender male and female my mail id hareesh.14goud@gmail.com
|
|
|
|
|
The only person who gives a rats ass what your email address is are the spambot crawlers that look for them. Don't put your email address in a public forum unless you like getting tons of spam.
There really isn't any code for this (other than what the designer writes for it). All you do is drop a couple of radio button controls on your form, position them appropriately, then change their Text properties to "Male" and "Female".
So what's the rest of the question?
|
|
|
|
|
Looks like you need to start with the very basics. Read a book.
Using the RadioButton class[^] will have you create radiobuttons for gender.
|
|
|
|
|
Windows mobile also allows .net programs, but symbian doesn't without adding the proprietary .net runtime from redfivelabs . The API for getting your contacts is on both platforms wildly different.
So How can i add <big>.net runtime from redfivelabs</big> .
|
|
|
|
|
Add it to WHAT??
But, in any case, why are you not asking REDFIVELABS this question?? After all, they wrote the bloody framework and should know how to support it!
|
|
|
|
|
BUT there website is down.
How can i add .net runtime from redfivelabs?
|
|
|
|
|
Wait until their site is up.
|
|
|
|
|
HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
When run the program on my nokia i get
"LUNCHER Not supported runtime!
|
|
|
|
|
No one has heard of this thing. We have no idea what it takes to install it! The only people you can ask are the people who wrote the library. Oh wait, their website is gone. So guess what? Do you think you should be using the product??
|
|
|
|
|
He was told he shouldn't be trying to write for Symbian in C#, but he decided not to listen.
|
|
|
|
|
Yeah, I thought it sounded vaguely familiar.
|
|
|
|
|
So Please give any idea for coding symbian via C#
|
|
|
|
|
Which part of this[^] answer confuses you? If you want to write for Symbian then, at the moment, you can't use C#.
|
|
|
|
|
Hi everyone! I'm having problem accessing values of controls from a different thread that did not create them. The code is long and so I will give a clear explanation of the problem.
I have a Windows Form that gets data to be stored in a database. Because I do not want the main window to hang, I have written the code that stores the data in the database in a different thread. When the new thread is started, the main thread shows a dialog control with animated image showing that the data is being processed. When the worker thread completes, the animated dialog control closes and the main thread contines execution.
Thus, when the animated dialog control is shown, the main thread waits for the worker thread to complete for the outcome of the processing before continuing or aborting depending on the outcome from the workert thread. However, the problem:
Because the worker thread did not create the controls, I'm finding it difficult to access the values of the controls on the Form. Using Control.Invoke is also not helping because the main thread has a an animated dialog control shown and waiting for data processing status from the worker thread.
I don't know how to access and update values of the controls. Any better way to solve this problem? Thanks in advance.
|
|
|
|
|
|
The worker thread should not be accessing the controls on the form, at all. If they need any data, package it up into a object specially made to pass this data to the worker thread. There is no restriction on a seperate thread accessing data this way as there is on accessing controls.
|
|
|
|
|
If you are using a BackgroundWorker , the RunWorkerCompleted event delegate has a RunWorkerCompletedEventArgs argument that contains a Result property. You can set this property with the value you wish to exchange and read it back from your main thread.
|
|
|
|
|
Hi,
I am trying to get some logged-on user details from a service running as LocalSystem.
After spending the weekend trying to find the best way of doing this, having found that the P/Invoke method is lengthy and arduous and that the get-owner-token-from-process method isn't suitable in this instance I am trying the following method but it won't compile giving non-useful errors.
The code:
ManagementObjectSearcher searcher = new ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_ComputerSystem");
foreach (ManagementObject queryObj in searcher.Get())
{
string LOU = (queryObj["UserName"].ToString());
WindowsIdentity wi = new WindowsIdentity(LOU);
WindowsImpersonationContext ctx = null;
ctx = wi.Impersonate();
WindowsPrincipal wp = new WindowsPrincipal(wi);
string LOU1 = wi.Name;
string AuthType = wi.AuthenticationType;
string Authd = wi.IsAuthenticated.ToString();
string isGuest = wi.IsGuest.ToString();
string SidNo = wi.Owner.ToString();
string SidPlain = wi.Owner.Translate(typeof(System.Security.Principal.NTAccount)).ToString();
string Token = wi.Token.ToString();
Console.WriteLine(LOU1);
Console.WriteLine(AuthType);
Console.WriteLine(Authd);
Console.WriteLine(isGuest);
Console.WriteLine(SidNo);
Console.WriteLine(SidPlain);
Console.WriteLine(Token);
foreach (System.Security.Principal.IdentityReference group in wi.Groups)
{
Console.WriteLine(group.Translate(typeof(System.Security.Principal.NTAccount)));
}
Can anyone shed some light on this please?
|
|
|
|
|
CCodeNewbie wrote: it won't compile giving non-useful errors.
They may appear non-useful to you, but unless you tell us what they are then it's difficult to help.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|