473,698 Members | 2,873 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A problem with the 'Multiple Document Interface' ??

I am currently working on completing a program that someone else
started.

The problem (when the program is running): When more than one
document/file is opened, the mouse changes the active window simply
by moving it (the mouse pointer) over the work area (not the title
bar) of one of the open windows. When of course, it's supposed to
activate when there is a mouse click on the inactive window.

In the Program:

There is a MainForm, which is the Form that one sees when the program
is started and when all the open documents are closed.

and a ProForm, which is the form that is called when a document is
opened (this Form is similar to MainForm, except that it has
additional functions like 'Close', 'Edit Data'..etc).

So, if no document is opened, it's MainForm, if 1 or more is open,
then it's the ProForm.

Now, the Mainform IsMdiContainer = true while the Proform
IsMdiContainer = flase. otherwise an exception is thrown.

Here is a bit of code:

class MainForm
{
...........
private void OpenProfile()
{
string pathName = null;
if(OpenG16File( out pathName) == true)
{
//create form
ProForm proForm = new ProForm();
proForm.MdiPare nt = this;
proForm.Text = pathName;
.....
proForm.Show();
}
........
}
........
}
I know this is rather vague but did any of this happen to anyone else
before ? Does this have to do with the MDI or perhaps Mouse events?

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
Nov 16 '05 #1
1 1200
Check that the previous programmer has not intercepted the MouseEnter or
MouseMove events of the form. (somewhere in the ProForm class might be
something like

MouseEnter += new EventHandler(my MouseEnter);

or similar
"Csharper95 " <rk*****@hotmai l-dot-com.no-spam.invalid> wrote in message
news:41******** **@Usenet.com.. .
I am currently working on completing a program that someone else
started.

The problem (when the program is running): When more than one
document/file is opened, the mouse changes the active window simply
by moving it (the mouse pointer) over the work area (not the title
bar) of one of the open windows. When of course, it's supposed to
activate when there is a mouse click on the inactive window.

In the Program:

There is a MainForm, which is the Form that one sees when the program
is started and when all the open documents are closed.

and a ProForm, which is the form that is called when a document is
opened (this Form is similar to MainForm, except that it has
additional functions like 'Close', 'Edit Data'..etc).

So, if no document is opened, it's MainForm, if 1 or more is open,
then it's the ProForm.

Now, the Mainform IsMdiContainer = true while the Proform
IsMdiContainer = flase. otherwise an exception is thrown.

Here is a bit of code:

class MainForm
{
..........
private void OpenProfile()
{
string pathName = null;
if(OpenG16File( out pathName) == true)
{
//create form
ProForm proForm = new ProForm();
proForm.MdiPare nt = this;
proForm.Text = pathName;
.....
proForm.Show();
}
........
}
........
}
I know this is rather vague but did any of this happen to anyone else
before ? Does this have to do with the MDI or perhaps Mouse events?

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*

Nov 16 '05 #2

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

Similar topics

2
3759
by: john | last post by:
if I have if (document.form.element.type == "select") and I have a form with at liest 1 element on the page this should work right? I keep getting a "document.form.0 is null or not an object" message any idea why? john
19
3987
by: Mark Gross | last post by:
I am attempting to programatically drive a Lotus Notes web application from a VB.NET database application (who wants to rekey information in one database into someone else's web page for entry to theirs?). I am using the System.Net.WebClient to communicate with the LotusNotes server. It is not clear if I should be instantiating a new object for each communication, or persisting the initial one. based on the input values in the web...
10
2332
by: Neo Geshel | last post by:
I am seeking to hand-roll my own blog in ASP.NET 2.0 and SQLExpress 2005. Why? Because I can. Because I will gain experience. The one thing that has me stumped at square one is inline images. That is, images inline with the actual content of the blog itself. Is there an example that I can be pointed to, where I can examine some code and figure out how to do this? Frankly I haven't got a clue, aside from breaking the content up into...
14
1986
by: hgraham | last post by:
Hi, I'm trying to understand how to work the dom, and all I'm trying to do is insert a link right before another link in the html based on it's href value. This isn't a real world example - I'm just trying to do this in phases to understand what's going on. I'm getting an error (Object doesn't support this property or method) in IE and I can't figure out what I'm doing wrong. Can anyone tell me? if (navigator.appName == "Microsoft...
7
8344
by: swethasivaram | last post by:
Hello I have a Java-based web application whose interface can be in multiple languages. My requirement is that the javascript alerts that I display should be displayed in the language in which the interface has been generated. The interface language is dynamically loaded and the text is displayed using Java's <fmttags. How can I make the Javascript alerts, etc. also change their display language dynamically? Is it possible in...
2
6956
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
1
5573
by: Grimm | last post by:
I am developing an internalk inteface that integrates alot of seperate tools into one interface. The current version uses one Iframe inside a div layer for positioning. Currently the seperate web tools do not have the ability to stay active. As you switch from tool to tool the previous information is lost unless you use a Back button. I need to place multiple div layers with I frames in them that can be shown or hidden based on selection. The...
7
1943
by: raknin | last post by:
Hi I have a carousel script. I want to load the carousel with a new set of pictures every time I press a button. The problem that I have that the script append the new pictures to the olds one and the next and previous buttons are added again and again. Please help meto solve the problem. The full html and javascript are attached for your conviniet. HTML ------- <HTML> <HEAD> <META http-equiv="Content-Language" content="en-us">
0
1527
by: onegative | last post by:
G'day Y'all, I was hoping to get some expert feedback on a proposal I am considering regarding a new internal application to help fill some gaps in our IT department. I have some configuration data that would work well (very well in fact) defined as XML documents and I want to enrich that data with additional User defined information (child and/or attribute) using an XML application. Document specifics 1. Document size 150k - 300k...
5
13363
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL http://mghospedagem.com/images/controlpanel.jpg instead of http://mghospedagem.comhttp://mghospedagem.com/images/controlpanel.jpg As u see, there's the website URL before the image URL.
0
8683
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9031
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8876
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7741
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.