473,503 Members | 12,516 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to solve the double screen problem?

ygy
Hi,I want to make a control.It is made of a label(show the data) ,a
image(as button) and a trackbar(change the label value).When i click the
image,the trackbar show under the label.My control is like the
numericUpDown,and i add a image button ,click the button,show the trackbar.I
can use the trackbar to change the value of the label.I use the code to
confirm the location of the trackbar:
(The TrackFormCtrl is a form class which contains a trackbar.)

trackForm = new TrackFormCtrl();

int X1=this.Parent.PointToScreen(this.Location).X;
int W1=Screen.FromControl(this).WorkingArea.Width;
trackForm.Location = this.Parent.PointToScreen(new Point(this.Left,
this.Bottom));

if (X1+trackForm.Width>W1)
trackForm.Location = new Point(W1 - trackForm.Width - 5,
trackForm.Location.Y);
When I use double screen,and drag the label and the image button from the
first screen to the second screen,click the image button,but the trackbar
show in the origin screen.I need the trackbar showing in the screen under
the label.How should i do?
Thank you!
Nov 16 '05 #1
0 1291

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

Similar topics

1
4444
by: David | last post by:
Hello I'm writting an apllication and i like to display and offscreen image. However my code doesn't seem to work. It compiles and runs properly but What i want is to associate the button of the...
2
2905
by: ΢ÈíÐÂÎÅ×é | last post by:
i want to abtain remote screen capture on the pc in LAN. i was suggested to transmit the changed parts only to save the bandwidth. so i divide the screen into 10*10 parts. and now , i need to...
0
916
by: yy | last post by:
Hi,i want to make a control.It is made of a trackbar and numbericupdown.I expand its funtion,and it can drag the trackbar to control the number.When i click the control,it can popup the trackbar...
0
1630
by: Norman Yuan | last post by:
I posted this issue a while ago. After moveing the ASP.NET 1.1 app to a brand new server, the same problem still there. System: Winows2003 server std. .NET 1.1 App: Invoicing system Problem:...
4
4270
by: FBM | last post by:
Hi, I am working on a program that simulates one of the elements of ATM. The simulation stores events which occurs every some milliseconds for a certain amount of time. Every time that an event...
0
1517
by: Fei Liu | last post by:
Yet another problem to deal with dynamic data type that can only be determined at run time. For a netCDF file (a scientific data format), a variable is defined with its associating dimensions, i.e....
15
4943
by: ABC | last post by:
Hi, I have a problem with Double submission in html forms. I am using PHP as the server side scripting language, i have found a means to capture the second form submission while the first form...
5
2326
by: xzzy | last post by:
I am writing an app that enables a user to reply to a newsgroup. The proper syntax for From: is "screen name" email@address.com and over all, it should look like: --
2
2377
by: Tom | last post by:
Double clicking the title bar to toggle a form between full screen size and the previous size is a great feature. Can someone please explain how to programmatically double click the title bar? ...
0
7296
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
7364
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...
1
7017
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
7470
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
5604
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,...
1
5026
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...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1524
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 ...
0
405
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...

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.