473,672 Members | 3,899 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1971
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.co m> wrote in message
news:%2******** ********@TK2MSF TNGP09.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
8494
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, all though I can move the button. I have also used the mouseMove event, so I can move the button, but it's completely out of control. Still I feel it's the right way to go. This is what I've written: private void btnSecond_MouseMove(object sender,...
29
3987
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. The submit button posts the page back to the server. The button code detects an entry error and sends the page back to the user. This all works. However, if the user presses the Back button at this point, we go back and all the form values are...
1
3887
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, even the all of the validations passed, my ShowMessage() still does not get triggered. When checking the view source carefully, I found that the btnSave button have 2 onClick events defined in the tag.
18
2961
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. If you do have any ideas I would really like to hear them. Thanks Colin - 0 - 0 - 0 - I want a glorified popup/context menu on a button that shows only when
1
16559
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 parent element, and position: absolute; bottom: 0px;
7
22363
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 WndProcedure(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
1
2886
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 further to the right of the form than the form's default width - which may take up the entire screen for some users). The form contains panels which will contain either textboxes or datagridviews. The button is located on the menustrip towards...
2
2574
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 my code: <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" Title="SIP :: Nichos de Mercado" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.OleDb" %> <script runat="server">
0
8419
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
8844
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...
1
8642
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
8696
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...
1
6254
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
5720
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();...
1
2836
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
2
2092
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1836
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.