473,398 Members | 2,343 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,398 software developers and data experts.

load window behind another?

Hi guys,

let's say I want to load a window behind the main window.
how do i do it? because right now everytime i do it the main
window gets behind and the new window get the focus.

Thank you.
Jul 17 '05 #1
5 4150
Load Form2
Form2.Show
Me.SetFocus

Yang Li Ke wrote:
Hi guys,

let's say I want to load a window behind the main window.
how do i do it? because right now everytime i do it the main
window gets behind and the new window get the focus.

Thank you.

Jul 17 '05 #2
Hi! Thanx but the problem which I should have stated first is that I call
each windows like this:

Dim oForm As form_datas
Set oForm = New form_datas
Call oForm.Show
Set oForm = Nothing

so all forms are dynamic each time the user presses a button on one of these
form then there is a new form openning but it should stay behind. the
problem is that I dont konw the name of that form because they all have the
same names.

Thank you for your help.

"Visual Boodu .NET" <sn@il.mail> wrote in message
news:kg******************@news-server.bigpond.net.au...
Load Form2
Form2.Show
Me.SetFocus

Yang Li Ke wrote:
Hi guys,

let's say I want to load a window behind the main window.
how do i do it? because right now everytime i do it the main
window gets behind and the new window get the focus.

Thank you.


Jul 17 '05 #3
"Yang Li Ke" <ya******@sympatico.ca> wrote in message news:<el*******************@news20.bellglobal.com> ...
Hi guys,

let's say I want to load a window behind the main window.
how do i do it? because right now everytime i do it the main
window gets behind and the new window get the focus.


the simplest might be to use the ZOrder:
Form2.Show
Form2.ZOrder 1
Jul 17 '05 #4
On Tue, 11 May 2004 09:16:24 -0400, "Yang Li Ke"
<ya******@sympatico.ca> wrote:
Hi! Thanx but the problem which I should have stated first is that I call
each windows like this:

Dim oForm As form_datas
Set oForm = New form_datas
Call oForm.Show
Set oForm = Nothing

so all forms are dynamic each time the user presses a button on one of these
form then there is a new form openning but it should stay behind. the
problem is that I dont konw the name of that form because they all have the
same names.


Another way of looking at it, is making your original Form stay on top
of any new forms.

BringWindowToTop looks a likely candidate
Jul 17 '05 #5
You can still use me.setfocus on the form showing the other forms.

Dim oForm As form_datas
Set oForm = New form_datas
Call oForm.Show
Me.SetFocus
Set oForm = Nothing

Yang Li Ke wrote:
Hi! Thanx but the problem which I should have stated first is that I
call each windows like this:

Dim oForm As form_datas
Set oForm = New form_datas
Call oForm.Show
Set oForm = Nothing

so all forms are dynamic each time the user presses a button on one
of these form then there is a new form openning but it should stay
behind. the problem is that I dont konw the name of that form because
they all have the same names.

Thank you for your help.

"Visual Boodu .NET" <sn@il.mail> wrote in message
news:kg******************@news-server.bigpond.net.au...
Load Form2
Form2.Show
Me.SetFocus

Yang Li Ke wrote:
Hi guys,

let's say I want to load a window behind the main window.
how do i do it? because right now everytime i do it the main
window gets behind and the new window get the focus.

Thank you.

Jul 17 '05 #6

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

Similar topics

9
by: Christopher Benson-Manica | last post by:
In some old Javascript we have, we try to determine whether the client is IE or Netscape (assume for the purposes of this question that the question can be resolved satisfactorily) and tailor the...
31
by: Benno Bös | last post by:
If I use the following construct in the frame "main" for a link to an extern site: <A HREF="http://www.any.xy" TARGET="extern"> the Browser is creating the window "extern", loading the page...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
3
by: Nevyn Twyll | last post by:
I've got a web form with a number of dropdowns, combos, etc. When the user submits the form, I want to redirect them to another form, but I need to pop it in another window. So, I have a hyperlink...
10
by: GeekBoy | last post by:
Okay, I have two identical web servers running Windows 2003 web server. I have an ASP.NET application which runs great on one of them. Dedicated IP address, behind our firewall, etc. Everyone's...
2
by: Sascha | last post by:
Hi there, I searched carefully through the web before finally deciding to post this message, because I could not find a solution for my problem. Hopefully someone will have a hint or explanation...
6
by: Martijn Coppoolse | last post by:
Hello everyone, I've got two little apps which are able to create a window that displays something on the desktop, but are not clickable. Instead, when you click on the window, the item...
2
by: Rob R. Ainscough | last post by:
In my code behind (VB.NET 2.0), I've been using Response.Redirect("mypage.aspx") to navigate from one page to the next. What I'd like to do now is load a new browser window and load it with the...
6
by: BA | last post by:
Hi Everyone, I have an application that sits behind a server farm, the application needs to pass its NLB IP address in the message that it sends to another service. From C# code, how can I...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.