Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / December 2005

Tip: Looking for answers? Try searching our database.

form does not get focus unless user clicks on border

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frank - 15 Dec 2005 08:19 GMT
Hi
I'm about to switch to VS2003-VBasic from VisualBasic6. I'm building a
testproject (mdiparent form with some childforms) and I came across a strange
problem. When I click on a form then normally the form receives focus and is
shown in front of the other child forms. However this only happens if I click
on the formborder and not when I click on a control of somewhere in the form.
Am I doing something wrong (probably) or is this a known 'problem'.

In the Form_Load of de mdiparent I placed the code
dim oFrm1 as new Form1
oFrm1.Show
oFrm1.MdiParent = Me
dim oFrm2 as new Form2
oFrm2.Show
oFrm2.MdiParent = Me
Frank - 15 Dec 2005 17:29 GMT
Hi,
found it. Had to swap the lines after de dim statement.

Thanks,
Frank

> Hi
> I'm about to switch to VS2003-VBasic from VisualBasic6. I'm building a
[quoted text clipped - 11 lines]
> oFrm2.Show
> oFrm2.MdiParent = Me

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.