Click here to Skip to main content
15,891,737 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Get URL from hyperlink text Pin
Dave Kreskowiak17-Jul-04 7:12
mveDave Kreskowiak17-Jul-04 7:12 
GeneralRe: Get URL from hyperlink text Pin
Vyyk Drago17-Jul-04 8:57
sussVyyk Drago17-Jul-04 8:57 
GeneralRe: Get URL from hyperlink text Pin
Dave Kreskowiak17-Jul-04 9:24
mveDave Kreskowiak17-Jul-04 9:24 
Generalpicturebox and imagelist Pin
monkeyjoe15-Jul-04 2:56
monkeyjoe15-Jul-04 2:56 
GeneralRe: picturebox and imagelist Pin
Dave Kreskowiak17-Jul-04 6:26
mveDave Kreskowiak17-Jul-04 6:26 
GeneralConverting X-Y Co-ordinates of Mouse to Twips Pin
15-Jul-04 2:20
suss15-Jul-04 2:20 
GeneralRe: Converting X-Y Co-ordinates of Mouse to Twips Pin
Syed Abdul Khader16-Jul-04 5:14
Syed Abdul Khader16-Jul-04 5:14 
General.NET environment variables Pin
madfiddlerchris14-Jul-04 23:42
madfiddlerchris14-Jul-04 23:42 
I hope someone can help me with this!

I am trying to set some environment variables from my VB.NET application.

I am using System.Environment.GetEnvironmentVariable to return the values and to set them I am using the following function....

Private Declare Function SetEnvironmentVariableA Lib "kernel32.dll" _
(ByVal lpName As String, _
ByVal lpValue As String) As Integer


When I set a variable and then check that it has been set from within the application it appears fine. However, if I open a command prompt window and use SET I cannot see the variable at all. This seems to indicate to me that each .NET applicaiton runs in its own "shell".

The problem I have is that I am kicking of a sub-process that runs in a JVM and this needs various environment variables to be set.

So how can I set variables from VB.NET into the master Windows environment so these can be picked up on by the sub-process?
GeneralRe: .NET environment variables Pin
Dave Kreskowiak16-Jul-04 1:05
mveDave Kreskowiak16-Jul-04 1:05 
GeneralRe: .NET environment variables Pin
madfiddlerchris21-Jul-04 1:04
madfiddlerchris21-Jul-04 1:04 
GeneralRe: .NET environment variables Pin
Dave Kreskowiak21-Jul-04 14:43
mveDave Kreskowiak21-Jul-04 14:43 
GeneralInheriting DataGridColumnStyle Pin
beowulfagate14-Jul-04 20:57
beowulfagate14-Jul-04 20:57 
GeneralRe: Inheriting DataGridColumnStyle Pin
Syed Abdul Khader15-Jul-04 0:04
Syed Abdul Khader15-Jul-04 0:04 
GeneralRe: Inheriting DataGridColumnStyle Pin
beowulfagate15-Jul-04 18:16
beowulfagate15-Jul-04 18:16 
QuestionBinding picture box? Pin
mythinky14-Jul-04 15:31
mythinky14-Jul-04 15:31 
GeneralVB.Net forms on the Web Pin
monkeyjoe14-Jul-04 14:50
monkeyjoe14-Jul-04 14:50 
GeneralRe: VB.Net forms on the Web Pin
Dave Kreskowiak14-Jul-04 18:16
mveDave Kreskowiak14-Jul-04 18:16 
GeneralRe: VB.Net forms on the Web Pin
monkeyjoe15-Jul-04 2:06
monkeyjoe15-Jul-04 2:06 
GeneralRe: VB.Net forms on the Web Pin
The Man from U.N.C.L.E.19-Jul-04 6:56
The Man from U.N.C.L.E.19-Jul-04 6:56 
GeneralCrystal Report and navigate Pin
Saktya14-Jul-04 14:49
Saktya14-Jul-04 14:49 
GeneralRe: Crystal Report and navigate Pin
Anonymous15-Jul-04 17:11
Anonymous15-Jul-04 17:11 
GeneralPsSetLoadImageNotifyRoutine Pin
James Gohl14-Jul-04 7:45
James Gohl14-Jul-04 7:45 
GeneralRe: PsSetLoadImageNotifyRoutine Pin
Dave Kreskowiak14-Jul-04 8:59
mveDave Kreskowiak14-Jul-04 8:59 
GeneralRe: PsSetLoadImageNotifyRoutine Pin
James Gohl14-Jul-04 21:34
James Gohl14-Jul-04 21:34 
GeneralVB.NET and Outlook's "BeforeItemPaste" Event signature Pin
joseph_rich_tx14-Jul-04 2:55
joseph_rich_tx14-Jul-04 2:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.