473,378 Members | 1,407 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,378 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 1696

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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.