473,386 Members | 1,846 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,386 software developers and data experts.

Focus Problems with MDI child forms

Hi Folks,

Sorry if you have seen this post before - I've posted it before, but it
seems to have gotten lost in Outlook limbo - it's visible on the web
interface, but not in any news reader I've tried :S

A while ago, I came accross this post by Armin describing how to reporduce a
focus bug with MDI children. I am currently experiencing the same problem in
my application although I'm not using an ActiveX control directly on the
form as in Armin's example (my 3rd party toolbars and menus could be the
culprits though).

I'm using Visual Studio 2003 with .net 1.1 on Windows XP.

Any help would be greatly appreciated.

Trev.

Origional Post by Armin (edited) - see http://tinyurl.com/2ezw2 for
origional:
----------------------------------------------------------------------------
--
Problem: A child can not be activated anymore by clicking in its
client area. It can only be activated by clicking the title bar. Also
the title bar does not always have the expected color depending on
the focus. Is this a known bug? I googled and search MSFT KB but
didn't find anything. Steps to reproduce:
1. New WindowsApplication
2. Add two new Forms (Form2 and Form3)
3. For Form1: Set IsMdiContainer=True
4. Add the following code to Form1:

Private Sub Form1_Load( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load

Dim f2 As New Form2
Dim f3 As New Form3
f2.MdiParent = Me
f2.Show()
f3.MdiParent = Me
f3.Show()
End Sub

5. On Form3, add an ActiveX control, e.g. WebBrowser (shdocvw.dll)
6. Start
Armin



Nov 22 '05 #1
2 2252
Cor
Hi Trev,

Is there a reason you did not include the newsgroup

microsoft.public.dotnet.languages.vb in it,

that is the group where Armin is the most active from the international
groups, but not in the ones you have included I thought.

And as far as I have seen in the newsgroup is Armin in the newsgroups one of
the real MDI experts.

If you even want to have more success you can ask it also in the German
language in the newsgroup

microsoft.de.german.entwickler.dotnet.vb

Cor
Nov 22 '05 #2
Cor,

I didn't post it to the VB group because I thought it was a more generic
problem (hence the .windowsforms group). I added the .faq and .general
groups because I was having problems with the .windowsforms group and was
hoping for a better response. Surely someone else out there has come accross
this problem before? I'll do up a sample project and see if it is limited to
VB.
that is the group where Armin is the most active
Thanks for the tip about Armin's whereabouts ;) He's the one who posted the
original article a while back, but there was no responses to that. Next time
I see him in a group, I'll discretely OT the thread and ask him.
If you even want to have more success you
can ask it also in the German
language in the newsgroup
Unfortunately I can't speak German - only English, VB and passable C# ;)

Thanks again for the tip,

Trev.
"Cor" <no*@non.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... Hi Trev,

Is there a reason you did not include the newsgroup

microsoft.public.dotnet.languages.vb in it,

that is the group where Armin is the most active from the international
groups, but not in the ones you have included I thought.

And as far as I have seen in the newsgroup is Armin in the newsgroups one of the real MDI experts.

If you even want to have more success you can ask it also in the German
language in the newsgroup

microsoft.de.german.entwickler.dotnet.vb

Cor

Nov 22 '05 #3

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

Similar topics

2
by: Trev Hunter | last post by:
Hi Folks, Sorry if you have seen this post before - I've posted it before, but it seems to have gotten lost in Outlook limbo - it's visible on the web interface, but not in any news reader I've...
1
by: tdmailbox | last post by:
Is there a vb command that can tell me if I have focus in the child or parent form? Basicly I have a search macro that needs me to have focus to any field in the parent form. If my focus is set...
2
by: Mystery Man | last post by:
We have an MDI application that is not setting always setting focus to the newly corrected MDI. It is creating the form and it is the topmost but it does not have focus. The code we are using to...
13
by: Mike L | last post by:
I have a child form frmDataEntry call up another child form frmDealerSearch. If the user clicks on cancel on frmDealerSearch, I want to close frmDealerSearch and put the focus on txtDealerNum on...
1
by: Sumit | last post by:
Hi all, I have an MDI form in which i open some other forms. I dont want the Control Box (having minimize, restore/maximize and close button) Even though I have set the controlbox property of...
2
by: Christian Ista | last post by:
Hello, I found that (see below) to give the focus to a control(textbox) on an asp.net page. There is no easiest way to do that ? Thanks, System.Text.StringBuilder sb = new...
8
by: copyco | last post by:
I want to be able to test if my app's form has focus, (ie: not in background, behind other windows). How can I do this? I tried the Me.Focused, but that doesn't work. I think it's because a...
0
by: nomenklatura | last post by:
Hi, I have a main menu which parent mdi form and i opening two mdi child form (frm1,frm2) with listview doubleclick event on main menu.. ex: Dim frm As New frm1 frm.MdiParent = Me ...
4
by: Jon Slaughter | last post by:
I've created some custom controls and forms that allow the feature to temporarily transfer focus to a control that has been entered by the mouse. Everything seems to work fine but the problem I...
5
by: oscWork | last post by:
Does anyone know of any way to switch focus between a main form and a child form without the usual flickering you get while changing focus between windows? This works fine if the main form is an...
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
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...
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
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,...

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.