473,769 Members | 3,844 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Me.Parent.topmo st=true does not work

I learned about the TopMost property from a recent post which solved some
problems.

But I have a situation where a control wants to make the form it is on be
the topmost.

It could raise an event but be cleaner if it could do it directly.

I tried the following but the compiler thinks Parent is a control (they
don't have a topmost property.)

Me.Parent.topmo st

Any suggestions
Nov 20 '05 #1
1 2029
* " SamSpade" <st************ **@REMOVEaol.co m> scripsit:
I learned about the TopMost property from a recent post which solved some
problems.

But I have a situation where a control wants to make the form it is on be
the topmost.

It could raise an event but be cleaner if it could do it directly.

I tried the following but the compiler thinks Parent is a control (they
don't have a topmost property.)

Me.Parent.topmo st


\\\
Me.FindForm().T opMost = True
///

--
Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>
Nov 20 '05 #2

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

Similar topics

2
1275
by: Joseph | last post by:
What am I missing form this method that will prevent access to the parent form when the frmB is active? If you run this method, you can still access the parent form and its functionality. Sub WhatEver Dim frmB As New Form '-- The New Form to display frmB.TopMost = True frmB.Owner = CType(Parent, Form) frmB.Show() End Sub
2
6852
by: JaguarX | last post by:
I have an application that needs a window to stay on top of the other ones, I thought that TopMost = true would be suitable for this feature but it also makes this window to stay on top of all other application running on my PC, Does anybody know How can I prevent this TopMost window appear when I switch to the other applications?? _______________________ JaguarX
2
7374
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 functionality is quite different. I have a function where an MDIChild is activated, well attempted to do so. When I call the MDIChild form, I get the form caption (on the MDIParent) of the MDIChild and its' control menus but the client area still has...
12
7538
by: E Goforth | last post by:
Hello, I have a VB6 app that calls a VB.NET app via named pipes and a third party component. Inside the VB.NET app I'm trying to force a form to the top, at least temporarily. Inside a form's public sub I'm doing: Public Sub ThisIsMySub(TheseAreMyArguments) Me.Show Me.WindowState = FormWindowState.Normal Me.TopMost = True
3
1313
by: Jason Garland \(Secure Access Pty Ltd\) | last post by:
Does anyone know a way of making an item the highest form ? (eg nothing can go above it, stays on top ?) I have used the TopMost = True But if users hit the Start Button, it then goes over the top. Anyway of keeping it higher or another way around the problem ?
6
4752
by: Strahimir Antoljak | last post by:
I'm running VS.NET 2002 and keep having problems with form keeping on top with its TopMost property. Sometimes my program places the invoked form on top sometimes not. Sometimes when I click on the form it stays on top as it should, but sometimes TopMost property does not pick up so if I click to some other program it covers the form which supposed to remain on the top. Has anyone experienced similar problems? is there a fix? or I am...
37
2088
by: Geoff Jones | last post by:
Hi Suppose I have two forms: Form1 and Form2. I create and show an instance of Form2 in the code of Form1 e.g. Dim myForm2 = New Form2 myForm2.Show() How do I tell myForm2 that Form1 is its parent? That is, when I look at either "Parent" or "ParentForm" in Form2, they both show "Nothing".
0
1063
by: Aaron_at | last post by:
My problem is though i use a Shockwave flash control to play the SWF file, this control hides the MDI child forms.In the sense it always stay on the top. What am i trying to do? Trying to have the SWF act as the background of the MDI parent form. NEED help desperatly...! thanks in advance!:)
0
1072
by: Robert Johnson | last post by:
Hi all. Why doesn't the Start Position CenterParent work in a MDI child when it opens in a MDI container? This is the code that opens it if that makes a difference: Dim smf As New frmSystemsMaintenance smf.Show() Regards, Robert
0
9422
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10035
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
8863
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...
1
7403
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6662
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
5293
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3949
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
3
2811
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.