I have code for Enable or disable the comport in device manager through vb.net program in windows xp . but that code is not working in windows 7.
Is there any common function for both os.
swathi sajja
0
Light Poster
Recommended Answers
Jump to PostThe attached code is written in C#. This would probably be better placed in the C# forum.
Jump to PostThe issue is that you need to run as administrator.
Add an Application Manifest File: (to "HW_Lib_Test")
- Click "Project"
- Select "Add New Item"
- Select "Application Manifest File"
- Click "Add"
Then (in app.manifest) change from:
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
To:
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
In "HardwareHelperLib" in "GetAll", …
All 6 Replies
cgeier
187
Junior Poster
cgeier
187
Junior Poster
swathi sajja
0
Light Poster
cgeier
187
Junior Poster
swathi sajja
0
Light Poster
cgeier
187
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.