473,806 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I get part of the form outside my form ?

H
So, I wanna have a panel with some buttons "outside" my mainform. How can
this be done ?
Do I have to make a new form, with the panel in it, and put it beside my
mainwindow ? If I just can make a panel, is there some way to dock it
outside my mainwindow ?

Also, how can I get the coordinates for example a button in a form, counting
(0, 0) in upper left corner of the screen, not upper left of my form ?

Third, how do I make my window float on top of all others ? Not having focus
all the time, but beeing visible.

TIA
H
Nov 15 '05 #1
2 1471
1. You cannot host controls without a form. If you want another floating
window next to your main form, create another form and position it as
needed.

2. Look up PointToScreen method

3. Not sure what you mean, but look up "TopMost" property on Forms (but be
aware doing this is annoying to users; turn this on only if you think your
window is the most important window on the screen)

-vJ

"H" <no************ *********@hotma il.com> wrote in message
news:IJ******** ************@ne wsb.telia.net.. .
So, I wanna have a panel with some buttons "outside" my mainform. How can
this be done ?
Do I have to make a new form, with the panel in it, and put it beside my
mainwindow ? If I just can make a panel, is there some way to dock it
outside my mainwindow ?

Also, how can I get the coordinates for example a button in a form, counting (0, 0) in upper left corner of the screen, not upper left of my form ?

Third, how do I make my window float on top of all others ? Not having focus all the time, but beeing visible.

TIA
H

Nov 15 '05 #2
H
Thanks ! I think u pointed me exectly in the directions I wanted.

"Vijaye Raji" <no************ @hotmail.com> skrev i meddelandet
news:ej******** ******@TK2MSFTN GP11.phx.gbl...
1. You cannot host controls without a form. If you want another floating
window next to your main form, create another form and position it as
needed.

2. Look up PointToScreen method

3. Not sure what you mean, but look up "TopMost" property on Forms (but be
aware doing this is annoying to users; turn this on only if you think your
window is the most important window on the screen)

-vJ

"H" <no************ *********@hotma il.com> wrote in message
news:IJ******** ************@ne wsb.telia.net.. .
So, I wanna have a panel with some buttons "outside" my mainform. How can this be done ?
Do I have to make a new form, with the panel in it, and put it beside my
mainwindow ? If I just can make a panel, is there some way to dock it
outside my mainwindow ?

Also, how can I get the coordinates for example a button in a form,

counting
(0, 0) in upper left corner of the screen, not upper left of my form ?

Third, how do I make my window float on top of all others ? Not having

focus
all the time, but beeing visible.

TIA
H


Nov 15 '05 #3

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

Similar topics

3
2509
by: Emanuel Marciniak | last post by:
Hi all, We have the form which uses checkboxes for several fields and the target action points to outside webservice. Unfortunatelly they do not support checkboxes. How to pass it as a radio buttons or pull down select box with Yes/No options for example (which they support) using still checkboxes as an input entry. Thank you for any hint, emanuel
1
3351
by: jimfortune | last post by:
From: http://groups-beta.google.com/group/comp.databases.ms-access/msg/769e67e3d0f97a90?hl=en& Errata: 19 solar years = 2939.6018 days should be 19 solar years = 6939.6018 days Easter Function explanation Part II
50
3524
by: Romeo Colacitti | last post by:
Is the C library of most OSes (i.e, unix type OSes) implemented at the very low kernel or just outside kernel level? Looking through the source tree of Linux/BSDs it seems like the C library is intertwined with the OS (string.h and other headers are there). So does this mean that when I program in C and use standard library functions, it's similar to calling the OS specific APIs (same type of performance)? Seeing all these Standard...
3
14150
by: Jason | last post by:
I'm trying to implement some pretty basic behavior in c#/.net 1.1 Forms but can't seem to find all the requisite pieces. When a user clicks on the background of the form, I want the app to start receiving MouseMove updates -- whether the pointer is over the form or not (this being the crucial part) -- until the next MouseDown. It's easy to receive MouseMove events while the pointer is over the form but not when the pointer leaves. (Forms...
5
30975
by: Claudia Fong | last post by:
Hi, I have 2 forms. Form1 has a button which calls form2, but I need to know the value of the form1.textBox1.text. When I show form2, I try to use the code bellow: textBox1.Text = formst.textBox1.Text; but this generates error -->
19
1983
by: hamil | last post by:
I have a form with one button, Button1, and a Textbox, Textbox1 I have a class, class1 as follows. Public Class Class1 Public DeForm As Object Sub doit() DeForm.Textbox1.text = "It works" End Sub End Class
5
4501
by: Ajith Menon | last post by:
I want to copy a part of the windows form into clipboard as .bmp file. The usecase is the user drags using the mouse and creates a rectangular selection any where on the form. This part has to be copied into clipboard. Can anybody help me in implementing this using C#? Thanks, Ajith
3
2216
by: =?ISO-8859-1?Q?Jo=E3o_Maia?= | last post by:
Hi there, I am having a weird problem in trying to use a ASP.NET menu inside a custom web part. I am developing a custom web part that has a menu inside (just the menu, nothing else). The menu is a System.Web.UI.WebControls.Menu (ASP.NET 2.0) object. If I add the menu to a simple ASPX web form, it works nice. However, I am adding it to my web part, by overriding the RenderWebPart method and doing something like:
0
9719
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9597
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
10618
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10371
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10110
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9187
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
7649
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
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3008
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.