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

VB.Net Mdichild focus problem ?

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

frm.Show()

Ok, there isn't problem
But when two child forms opened, and try this forms open again , i couldn't
use top code , because this code create new same form ..
So i try to activate (focus) opened child form if it is loaded..
I use boolen variabel and set frm1loaded event isfrm1loaded=true when frm1
first created..
Maybe you have a better idea this problem..
So my code:
If Isfrm1 = True Then

frm1.ActiveForm.Focus()

Else

Dim frm As New frm1

frm.MdiParent = Me

frm.Show()

End If
But frm1.ActiveForm.Focus() couldn't work..???
i want to activet frm1
If this frm1 behind to frm2, it didn't bring front to frm2 ..
How can i ?
If i use visualbasic 6 , solve tihis problem very easy
But .net form management very complex and i colund't find examples in msdn..

Thanks in advance..
Note:I am from Turkey and my primitive language is Turkish.. Execuse for my
english :)


Nov 20 '05 #1
0 1297

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

Similar topics

0
by: Supra | last post by:
i got mdichild working. i'm working on similar to mirc chat. when i joined channel #vb the first mdichild is on. then when i wanted to join another channel #visualbasic. then i got second mdichild...
2
by: SpotNet | last post by:
Hello NewsGroup, I have a MDIParent form with a docked left treeview control, a splitter control and a generic docked control on the right. Kind of looks like Windows Explorer, though it's...
7
by: VM | last post by:
Hi, Is it possible to open always only one instance of a MDIChild form? Say, if form A is already opened, just give it the focus. I tried declaring theMDIChild forms as private members of the...
3
by: Vlado J. \(www.excelleinc.com\) | last post by:
Hi, I have a MDI parent form that opens form as MDIChildren. I'm trying to check if form is already opened and if it is to give it focus. I keep getting error messages and no matter what I try...
0
by: Supra | last post by:
i got mdichild working. i'm working on similar to mirc chat. when i joined channel #vb the first mdichild is on. then when i wanted to join another channel #visualbasic. then i got second mdichild...
0
by: Supra | last post by:
i got code working. similar to mirc chat. but what happen when i joined the channel #visualbasic...that fine with me , i got all data coming into first mdichild. but when i joined another channel...
1
by: VB Newbie | last post by:
I've put a MdiChild form into the Panel of MdiParent form. But the titlebar of MdiChild is still Grey in color even I focus or activate it. Here is my code: Dim frmNew As frmChild = New...
0
by: anta.katz | last post by:
Hi, After a treeview node was selected, the focus remains at the treeview... I want to set the focus on child when the user press the Tab Key. Thanks Anta
0
by: kardiss | last post by:
I am trying to add Meebo's "Pop-out" kinda feature to my application which when a button is pressed in a MdiChild form, it kicks that MdiChild form out of the MdiParent boundary and acts like a SDI...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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,...

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.