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

Button's Position:

I have created a form wherein just a button is inserted which when clicked
would open a context Menu. So the complete form is just of the size of a
buton (just like START button of Windows) Can I do following things. If Yes
then how..

(1) I want that whenever user run that program/utility then that should
appear on the bottom right corner of the screen (right about the TIME on the
Status Bar). Remember we have to consider difference sizes of screens
(monitors) and different kinds of resolutions (800x600 etc.)

(2) That program should always be on the top of all the programs. For
example if someone opens other programs like Word, Excel, that program
should't go in the background...it should be in foreground just like
(Windows START button).

(3) Is there any way I can put that utility right in the Windows Status Bar
(right next or near to Start Button) so that it would always be in top.

Thanks.

Nov 20 '05 #1
1 1950
You force a form to be always on top by seting the form's TopMost property
to True. However, designing your application this way (a disembodied
button-like form that always floats on top of everything else) would
probably not be a wise design choice -- it would be very unconventional, and
would probably be more confusing and annoying to your users than anything
else.

It sounds like what you want is a system tray application -- an application
that runs in the background, but can be accessed through an icon in the
system tray (next to the clock.) Typically, right clicking on the icon will
show a context menu, and double-clicking might show a larger form with more
application details. Check out these links:

http://msdn.microsoft.com/library/de...traysample.asp

http://msdn.microsoft.com/library/de...rp06102002.asp


"Sender" <us**@domain.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I have created a form wherein just a button is inserted which when clicked
would open a context Menu. So the complete form is just of the size of a
buton (just like START button of Windows) Can I do following things. If Yes then how..

(1) I want that whenever user run that program/utility then that should
appear on the bottom right corner of the screen (right about the TIME on the Status Bar). Remember we have to consider difference sizes of screens
(monitors) and different kinds of resolutions (800x600 etc.)

(2) That program should always be on the top of all the programs. For
example if someone opens other programs like Word, Excel, that program
should't go in the background...it should be in foreground just like
(Windows START button).

(3) Is there any way I can put that utility right in the Windows Status Bar (right next or near to Start Button) so that it would always be in top.

Thanks.

Nov 20 '05 #2

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

Similar topics

1
by: gmtongar | last post by:
Hi, I've made a custom scrollbar which consists of three buttons and a panel. My problem is: How do I move it like a scrollbar slider? I've tried DoDragDrop, but it does not appear to be the same,...
29
by: Tom wilson | last post by:
I can't believe this is such an impossibility... I have an asp.net page. It accepts data through on form fields and includes a submit button. The page loads up and you fill out some stuff. ...
1
by: Bruce | last post by:
I use btnSave.Attributes.Add("onclick", "ShowMessage()") to link my web control button to a JavaScript function. It works well until I added a Validation control into the page. After that,...
18
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead....
1
by: Bart Lateur | last post by:
I'm trying to put a utton at the bottom (right) of a TD cell, irrespective of what else is in there. Usually, with other HTML block elements, we're told to use position: relative on the...
7
by: newguy194 | last post by:
Why am I unable to produce a button with this Win32 program? All I have been able to produce is the empty window. #include <windows.h> // Declare WndProcedure LRESULT CALLBACK...
1
by: =?Utf-8?B?UmljaA==?= | last post by:
I placed a button on a form menustrip for the purpose of causing the horizontal scrollbar of my form to appear so that I can access controls outside of the form's current view (the controls are...
2
by: =?Utf-8?B?ZWdzZGFy?= | last post by:
Hello, i have implemented a button in some other pages that calls another one, the problem is that everytime I hit the button he goes for the postback code and I already disable that part. this is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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,...
0
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...
0
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...
0
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,...
0
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...

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.