473,569 Members | 2,406 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Relocating a Control on screen and setting it to top-most

Udi
Hi,
I have a listbox and a textbox that are built and shown dynamically.
My problem is that their positions and sizes may cause them to be
displayed out of the their parent form bounds, and in a worse case out
of the screen bounds.
1. How do I make sure my controls will always be displayed inside the
screen?
2. How do I set a control as top-most?

(I guess what I'm looking for is a way to show a control on screen
coordinates, regardless to it parent location)

Thanks!

May 18 '06 #1
1 1799
> (I guess what I'm looking for is a way to show a control on screen
coordinates, regardless to it parent location)


Ummmm... the controls really ought to be on the form. Perhaps you should try
..Visible=false to _hide_ the controls when you don't want them?
May 18 '06 #2

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

Similar topics

2
3262
by: zapazap | last post by:
Dear Snake Charming Gurus, (Was: http://mail.python.org/pipermail/python-list/2004-January/204454.html) First, a thank you to Tim Golden, Thomas Heller, and Mark Hammond for your earlier help with this problem. I am uncertain about what etiquette calls for, but more on that later. My Objective: I am trying to control the _VMWare...
2
2619
by: Al Franz | last post by:
Can you put commands in an HTML page so that when it opens it will be in the center of the screen, and possibly even turn off some of the menu bars? Want to create an file on a CD I am publishing and would like to have it start up in the center of the screen with the index.htm file on the CD.
6
5601
by: Tony Liu | last post by:
Hi, when switched to the full screen mode in VS.NET IDE, is there any way to hide the main menu bar? Thanks Tony
1
1046
by: Dave | last post by:
Is it possible to relocate the positioning of a Web page in a C# webform that is similar to an HTML link like href="url.htm#locate"? My web page is fairly long and when I click on a button I want the page to re-display at the sam location where the button was located, which is at the bottom of the page. Right now, every re-display shows the top...
1
1387
by: Dave | last post by:
I've been having trouble with the development of my ASP.NET site. The problem stems from the fact that I use one development server for many projects like www.devserver.com/project/, but each deployed site is at www.deployedproject.com/. I was originally developing in ASP and I decided to do future development only in .NET, but some of my...
5
1190
by: jcrouse | last post by:
Many of you who may respond to this are somewhat familiar with my app in process (Cor). Simply, it's a form with 30 labels that is triggered from another application, with a hotkey. The labels text is filled in by parsing a file for certain information. There is a form designer that allows the user to set many label properties of the displayed...
10
3239
by: Yuk Tang | last post by:
Another step on the road to enlightenment, aka producing a UI. I've added a webbrowser control to a form, and I want it to fill the space of the form. Playing around with docking, left, top, width, height resolutely refuses to do this, as it remains docked top-left at around 100,100 within the form, with a size of approx 300,250. How do I...
0
2259
by: Keith | last post by:
I have a repeater control that contains a HeaderTemplate and an ItemTemplate. Each item contains a checkbox with an ID of chkReconciled, and the header contains a single checkbox with an ID of chkAll. I simply want to have chkAll be checked if every item in the repeater has its checkbox checked. In the code behind page, I can access the...
0
1418
by: (PeteCresswell) | last post by:
Got a TreeView control on the screen. User clicks a node, screen loads details for that node. Screen has two modes: Browse and Edit. If the user clicks "Edit", I set Tree.Enabled=False and make the detail fields on the screen editable. Tree.Enabled=False because once the screen is in "Edit" mode for data behind a
1
27016
by: Simon Verona | last post by:
I have a usercontrol which when entered pops up a form. I want the form to be aligned with the bottom edge of the user control. I was doing this by passing the usercontrol into the form as a parameter and using the left and top properties to find the location on the screen to position the form. However, these are relative to the container...
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
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...
0
7982
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5514
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...
0
5222
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...
0
3644
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2116
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
1
1226
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
944
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...

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.