473,396 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

App activation

Hi,

I'm writing a WinForms MDI app in C# and, with the valuable assistance of
various contributors in this forum, I have successfully got it to prevent
loading multiple instances of itself by use of a mutex and, using memory
mapped files, allows the user to open more than one of its associated
filetype.

Problem I now have is as follows (app is not running initially):

1) User clicks on an associated data file.
2) Windows launches my app.
3) The app interrogates the args property, and opens the file.
4) The app is displayed to the user i.e. has focus.

5) The user returns to Windows Explorer and clicks another associated data
file.
6) Windows again (obviously!) launches my app.
7) This second instance of my app, through the mutex, realises that another
instance of itself is already running
8) This second instance of my app creates a memory-mapped file containing
the full filespec of the file the user tried to open
9) This second instance of my app shuts itself down.

10) The first instance of my app "sees" the creation of the memory-mapped
file and opens it.

However, the app still remains flashing in the Task Bar.

I've tried various combinations of:

this.Activate();
this.Focus();
this.Show();

but to no avail. What's the best way to solve this? There used to be a
ZOrder method in VB6, and several of the MS Office apps have / had an
AppActivate method. That's the sort of thing I'm looking for.

Any assistance gratefully received, as always...

Mark
Nov 16 '05 #1
0 1698

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: R. Rajesh Jeba Anbiah | last post by:
I'm supposed to do the account activation via email. I mean *not* sending the activation link like http://foo.com/foo.php?actcode=foo. But, I would like it to be like...
1
by: JaNE | last post by:
Hello, I have made my cms... and is working, but have some, let me say "bugs"... And I don't know all reasons, please allow me slightly longer and most probably confusing post (that "confusing" is...
1
by: Matt Dinovo | last post by:
I have a remoting server that is on the same local box as a COM+ managed object with Library Activation. When I try to activate the object from the remoted assembly, I get the following error: "The...
3
by: zz | last post by:
Hello everyone, We have an hybrid plain C++/COM/VB.NET commercial application in which we've included a mandatory activation mechanism. This activation system is programed in the VB.NET part and...
30
by: (Pete Cresswell) | last post by:
Just fired it up to see what it looked like. They wanted me to "Activate" the product before the 50th use. Geeze, I paid my money....now they want me to jump through their hoops? Brings back...
11
by: Paul Aspinall | last post by:
Hi Can anyone offer any hints / tips for creating registration keys / application activation, as software copy protection measures for a Winform app developed in C#? Thanks
2
by: paully_21 | last post by:
I'm an MSDN Subscriber and I installed VWD...When I activate the product it asks for an activation key...Where do I get one of those? And, more importantly, shouldn't it be part of my MSDN...
11
by: ML | last post by:
Does anyone have any info on sample code for handling activation/licensing for a vb.net app? Just looking for something fairly basic to implement the ability to have an application registered and...
5
by: Andy B | last post by:
I am making a web application that would randomly create an activation code and put it in a database. The web application would then send it in an email to the user with a link to go to and enter...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.