6
Answers

How to modify a table containing a foreign key

ma ouml

ma ouml

8y
253
1
Hi friends,
I have a table named "bon récéption " and which contains a foreign key Id_marche and in the interface of "bon récéption " I filled the combobox of the "libélllé marche"short market the problem is in button modify when I want to modify gives me this error
I will extract here my code and the error
thank you in advance
 
request
 
Form
 
 
 
 
 error 
 
 
 
 
Answers (6)
1
Vulpes

Vulpes

NA 98.3k 1.5m 14y
You can do a lot with the System.ServiceProcess.ServiceController class such as:

1. Get a list of services (except device drivers) running on the local machine by calling the GetServices() method.

2. Get a list of device drivers with the GetDevices() method. 

3. Stop, Start, Pause and Continue a service and check first whether these actions are permitted or not.

However, what you can't do is to determine whether a service starts up automatically when the system is booted or whether it's currently disabled. To do this you need to interrogate the StartMode property of the WMI class Win32_Service. This class also has a method called ChangeStartMode which you can use to disable or enable a service.

The following links may be useful:
1
Suthish Nair

Suthish Nair

NA 31.7k 4.6m 14y

 Lots of samples available startup services + c#


1
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 14y

See Autoruns for Windows. I don't know if there is source code for it and if there is it is probably in C++. You could at least see all the possible places to look for autorun software and then you need to figure out how to read each one. Note that there are multiple places to look at and each place is a separate question. For example reading the registry is different from other places that need to be looked at.