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,a nd 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(t his.Location).X ;
int W1=Screen.FromC ontrol(this).Wo rkingArea.Width ;
trackForm.Locat ion = this.Parent.Poi ntToScreen(new Point(this.Left ,
this.Bottom));
if (X1+trackForm.W idth>W1)
trackForm.Locat ion = new Point(W1 - trackForm.Width - 5,
trackForm.Locat ion.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! 0 1297 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 menu to switch an image (actually to add rectangels offscreen and bring
it to the front).
The following codes runs properly. You just need to create...
|
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 display the
remote screen on my own form. my method is use this:
Graphics c = this.createGraphics();
c.drawImage(imageparts,xcoodinary,ycoodinary);//...
|
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 undow the numbericupdown. My
problem is when i use double screen ,and trackbar is in the other screen
but not in the current screen.My trackbar...
|
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:
Since the app is dealing with money amount a lot, in many place I used
Double.ToString("C") to show a number as money amount on the web page. There
|
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 is stored in a double
linked list, the whole list is sorted for the next round.
My problem appears when subjecting the program to heavy load, that...
| |
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. data(time, z,
x). Each dimension is defined as wel in the netCDF file, time(time),
z(z), x(x), for example
netcdf andrew_test_data {...
|
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
submission is still in-progress. Basically, i can use sessions to
check if the first submission is active and reject subsequent submits.
***I do...
|
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:
--
|
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?
The form I am working with does not show any of the sizing, minimize,
or close buttons in the title bar. This clean appearance is preferred
for...
|
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...
|
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...
| |
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. ...
|
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...
|
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...
|
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...
|
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...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |