|
hello...actually i wanted to make a negative of an image. now the problem that i am facing that i can read an image into a bitmap object but am confused with reading out each of the pixel value and storing them onto a matrix to perform the operations. plz provide help... thanx.
haseeb
|
|
|
|
|
|
Hi all,
can any one please tell me how can i make a crystal report in landscape mode in design time?
so i can have more width space...
Thanks in adv.
|
|
|
|
|
Hi,
I want to programatically add a component in GAC using GACUtil.exe. I tried usingProcessStartInfo class. It gives error "The system cannot find the file specified.".
How can i run programmatically run commands on VS DOTNET 2003 prompt?
|
|
|
|
|
You can execute batch files using Process.Start(...) command. You can create a batch file which first invokes the vsvars32.bat (to set the path), and then you can execute GacUtil.exe, which will do whatever...
There has to be more to life than just this
|
|
|
|
|
Hi
" How can i run programmatically run commands on VS DOTNET 2003 prompt?" ??
By this way you are assuming that the end user have the .Net INSTALLED hence
you can launch the command line tools!! Well
First VS.Net do not register its command line tools globaly which means you can't run these command from the normal command prompt window and that mean if type any command in the run dialog it will generate you the same error "The system cannot find the file specified." so you must
either 1) type the full path to the command you want to run and that isn't practical cause it may differ
2) copy the command executable and paste in the same folder with your program in your case "GACUtil.exe" and i think it is illegal to distribute those tools with you program
Ahmad Shaban
|
|
|
|
|
But the GACUTIL.exe is always supplied to the client. It is in the DotNet framework. So there is no point being illegal.
|
|
|
|
|
Hello to all,
I want some system info to my C# application.
1) Hard disk serial no (Manufature serial no)
2) Mac Address
3) IP Address
How can i get these all & use it in my application.
Divyang Mithaiwala
|
|
|
|
|
hi i have used only for IP address for that you can do following
1. Add using System.Net;
2.
IPHostEntry ipHost = Dns.GetHostByName(Dns.GetHostName());
IPAddress [] ip = ipHost.AddressList;
string ipaddress = ip[0].ToString();
|
|
|
|
|
Thanx Manish,
It's work for me.
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
Use the Environment class to retrieve information such as command line arguments, the exit code, environment variable settings, contents of the call stack, time since last system boot, and the version of the common language runtime.
other than those mentioned above you can use the
WMI
Ahmad Shaban
|
|
|
|
|
Thanx Ahmad
It is so usefull to me.
Divyang Mithaiwala
|
|
|
|
|
By doing googling on wmi i also found some example for my own question. If some one found usefull.
1) For IP address the first reply is best.
2) To found MAC address go here.
3) For HDD Manufacture Serial No go here.
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
I want to host a PowerPoint Application on window Form
so please let me know how can i approach for that
thanks
|
|
|
|
|
the following link should be helpful to u
http://support.microsoft.com/?scid=kb;en-us;306683&spid=2530&sid=47
Regards,
Pramod
|
|
|
|
|
Hi,
I have a dll in vc++ for encrytion logic.I need to use the same encrytion logic for my application.Can I use the VC++ dll and import to C#.net.
How to do this? Any suggestions
Thanks,
|
|
|
|
|
|
[DllImport("MyDll.dll", EntryPoint="MyFunctionExactName")]
public static extern MyReturntype GetExtensionIcon
(int MyParameters );
you can get further reading about this technique from the following site
http://www.pinvoke.net/[^]
Ahmad Shaban
|
|
|
|
|
I have a question for you guys.
How can i protect the taskbar from users that kills processes essential to the business.
if the user goes to Taskmanager, he can still kill the process of that services... Is there any way to prevent him to kill 'one' specific process without preventing him to use the Task Manager.?
I would appreciate any help. Thanks
|
|
|
|
|
Well dont let the user run in administrator mode...
|
|
|
|
|
Hi,
Just a suggestion, if you dont want users to kill the process, then you may disable your task manager so that in the first place users cannot kill any process. There are two ways that i know,
one is through registry (but still users can access taskmanager through ctrl+alt+delete however it is disabled when users right click on the system tray, so perhaps you should add your own control for ctrl+alt+del. Here is the registry path for disabling taskmanager for system tray:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System
under System create a DWORD Value DisableTaskMgr and set the value to 1.
second Active Directory.. then you create a policy, you run the Group Policy Object Editor, Go to User Configuration->Administrative templates->System->Ctrl+Alt+Del Options then enabled Remove Task Manager policy. then apply that policy to the specific pc/user you want that policy to apply.
Hope this helps a bit.
|
|
|
|
|
Thanks for the suggestion, but what i really need is another way to protect the application from being disabled by users at the same time giving them access to the task manager. The application im talking about is a client application which is connected to the server. If the user kills the service, it wont be able to recieve information from the server.
But thanks anyway
|
|
|
|
|
Well like leppie said: Than they shouldn't be administrators. If they are administrators they are allowed to do anything by definition.
|
|
|
|
|
So if my login for example was not of an administrator account, you mean to tell me i wont be able to kill processes on the task manager? Please correct me if im wrong.
Thanks
|
|
|
|
|
By default a 'regular' user is only allowed to kill his own processes. Thus processes running under a different account cannot be killed by him.
|
|
|
|