Click here to Skip to main content
15,918,742 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Why dataset doesn't update the database? What am I missing? Pin
Henry Minute7-Oct-09 4:31
Henry Minute7-Oct-09 4:31 
GeneralRe: Why dataset doesn't update the database? What am I missing? Pin
JUNEYT7-Oct-09 4:42
JUNEYT7-Oct-09 4:42 
GeneralRe: Why dataset doesn't update the database? What am I missing? Pin
Dave Kreskowiak7-Oct-09 4:52
mveDave Kreskowiak7-Oct-09 4:52 
GeneralRe: Why dataset doesn't update the database? What am I missing? Pin
Henry Minute7-Oct-09 7:01
Henry Minute7-Oct-09 7:01 
GeneralRe: Why dataset doesn't update the database? What am I missing? Pin
JUNEYT7-Oct-09 7:14
JUNEYT7-Oct-09 7:14 
GeneralRe: Why dataset doesn't update the database? What am I missing? Pin
Henry Minute7-Oct-09 7:48
Henry Minute7-Oct-09 7:48 
QuestionAPPLICATION 1 TO ACCESS GLOBAL VARIABLE THATS IN APPLICATION 2 Pin
Anoop Brijmohun6-Oct-09 23:19
Anoop Brijmohun6-Oct-09 23:19 
AnswerRe: APPLICATION 1 TO ACCESS GLOBAL VARIABLE THATS IN APPLICATION 2 Pin
Dave Kreskowiak7-Oct-09 1:44
mveDave Kreskowiak7-Oct-09 1:44 
Anoop Brijmohun wrote:
I have an application running which has a global variable "User" Declared.
i want to retrieve the value stored in "User" from another application.

how can this be done?


You cannot just reference it like any other variable. You actually have to have some kind of communication mechanism in place that both applications support. Though, for the value of a single variable, it sounds like some bad design choices were made designing these apps and setting up communication just to transfer a single value is overkill.

Another possibility, though not available until .NET 4.0, would be a memory-mapped file. Both applications basically "share" a common file that exists in memory and can read/write to that file. Though, if sychronization is needed, you'll also need some kind of mechanism in place, depending on your requirements.

I would think you need to go back as see if the value can be stored in a well-known place and retrieved by both apps as needed.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




GeneralRe: APPLICATION 1 TO ACCESS GLOBAL VARIABLE THATS IN APPLICATION 2 Pin
Anoop Brijmohun7-Oct-09 2:09
Anoop Brijmohun7-Oct-09 2:09 
GeneralRe: APPLICATION 1 TO ACCESS GLOBAL VARIABLE THATS IN APPLICATION 2 Pin
Dave Kreskowiak7-Oct-09 4:49
mveDave Kreskowiak7-Oct-09 4:49 
QuestionRedirect a printing job to another printer Pin
edmonson6-Oct-09 23:03
edmonson6-Oct-09 23:03 
AnswerRe: Redirect a printing job to another printer Pin
Dave Kreskowiak7-Oct-09 1:39
mveDave Kreskowiak7-Oct-09 1:39 
Question[Message Deleted] Pin
sriharsha_126-Oct-09 22:34
sriharsha_126-Oct-09 22:34 
Answer[Message Deleted] Pin
sriharsha_126-Oct-09 22:42
sriharsha_126-Oct-09 22:42 
GeneralRe: Dynamic tabs + ASP.Net + VB.Net Pin
Dave Kreskowiak7-Oct-09 1:38
mveDave Kreskowiak7-Oct-09 1:38 
QuestionHow to interpret Local Languages in Visual Basic 6 Pin
jayachandra.c6-Oct-09 20:06
jayachandra.c6-Oct-09 20:06 
GeneralRe: How to interpret Local Languages in Visual Basic 6 Pin
Rajesh Anuhya6-Oct-09 21:17
professionalRajesh Anuhya6-Oct-09 21:17 
AnswerRe: How to interpret Local Languages in Visual Basic 6 Pin
Dave Kreskowiak7-Oct-09 1:37
mveDave Kreskowiak7-Oct-09 1:37 
QuestionRead Data from EXcel Based on Conditions to Dataset Pin
Dambod6-Oct-09 20:03
Dambod6-Oct-09 20:03 
AnswerRe: Read Data from EXcel Based on Conditions to Dataset Pin
Rajesh Anuhya6-Oct-09 21:15
professionalRajesh Anuhya6-Oct-09 21:15 
QuestionEvent and delegate from C# to VB.NET Pin
sri_00996-Oct-09 18:48
sri_00996-Oct-09 18:48 
AnswerRe: Event and delegate from C# to VB.NET Pin
Christian Graus6-Oct-09 22:10
protectorChristian Graus6-Oct-09 22:10 
AnswerRe: Event and delegate from C# to VB.NET Pin
N a v a n e e t h6-Oct-09 22:27
N a v a n e e t h6-Oct-09 22:27 
GeneralRe: Event and delegate from C# to VB.NET Pin
sri_00997-Oct-09 0:33
sri_00997-Oct-09 0:33 
Questionvb equivalent to c# Pin
uglyeyes6-Oct-09 18:42
uglyeyes6-Oct-09 18:42 

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.