Hi to all folks,
i have the following problem and i have spent many hours to solve it
but without any result, so, here it is:
Imagine that you have a mdi-child form that has a panel on it, a panel that
it's
height has the value of 3000. The panel also has a vertical scrollbar so i
can
move the panel up and down a little.
So, in the main MDI parent form, i have some images(picture boxes) that i
succesfully drag and
drop on the child form, that with the panel.
The drag and drop operation works really nice, i get the MousePosition
property,
compute the available screen width (parent - images pallete) and drop the
image
onto the panel.
The problem is that when i press down a little the panels' scrollbar and try
to
place the image on that position, it does not "undesrtand" the position
and the image is placed always much above the desired point.
So, if i scroll the panel down, i cannot place there images, thy are placed
on the
panel but always relative to the upper left corner of the screen.
(MousePosition)
Is there way to be able to do this ? So i can place images in every position
on panel
surface (that is, from 1 to 3000 of it's height) and just stay there ??
Thanks a lot for any help,
objectref 1 1784
Where i refer to MousePosition, i refer to :
this.PointToClient(MousePosition)
"objectref" <ob*******@mediatrel.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... Hi to all folks,
i have the following problem and i have spent many hours to solve it but without any result, so, here it is:
Imagine that you have a mdi-child form that has a panel on it, a panel that it's height has the value of 3000. The panel also has a vertical scrollbar so i can move the panel up and down a little.
So, in the main MDI parent form, i have some images(picture boxes) that i succesfully drag and drop on the child form, that with the panel.
The drag and drop operation works really nice, i get the MousePosition property, compute the available screen width (parent - images pallete) and drop the image onto the panel.
The problem is that when i press down a little the panels' scrollbar and try to place the image on that position, it does not "undesrtand" the position and the image is placed always much above the desired point.
So, if i scroll the panel down, i cannot place there images, thy are placed on the panel but always relative to the upper left corner of the screen. (MousePosition)
Is there way to be able to do this ? So i can place images in every position on panel surface (that is, from 1 to 3000 of it's height) and just stay there ??
Thanks a lot for any help,
objectref
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Joe |
last post by:
I'm wondering how to loop through controls in VB.NET. I have the code from VB6 ok, but I can't figure out how to do it correctly in .NET. This is an example from my VB6 code that loops through...
|
by: Joe |
last post by:
How do you set the position of controls that you drag into a panel control?
Anything that I drag in there locks to the upper left corner. I can't set
x/y coords any way that I can find.
Thanks.
|
by: dhnriverside |
last post by:
Hi peeps,
I'm trying to create some controls textboxes at runtime, based on the number
of items in a IETreeView that are checked. That I can do, I've got a place
holder and I can create the...
|
by: Dave |
last post by:
I am designing a web page using VS2003 ASP.NET. The page contains various
DIVs (panels), one of which is in grid layout. The controls in this DIV
render correctly in IE, but when using Firefox they...
|
by: =?Utf-8?B?RnJlZHJpaw==?= |
last post by:
Hi
I have a problem in one of my user controls that I cannot find any solution
for.
I'am running C# for Visual studio 2003 and developing a windows application.
The problem is the following:
I...
|
by: sgeklor |
last post by:
Hi guys,
I have a panel on a form and at runtime I create some controls on the panel. Then, also during runtime I want to clear the panel of all of its controls. The basic way to do this is with...
|
by: sgeklor |
last post by:
Dear All,
My question refers to how best to organise my mouse events to correctly and efficiently give the effect I want.
On my form I have a panel and that panel contains a number of controls....
|
by: vertozia |
last post by:
Hey there, ive been having difficulty placing an image, this is my screenshot, and what ive done so far:
http://img341.imageshack.us/img341/9894/gridwg2.jpg
/**
* ConnectFourGUI
* Provide...
|
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= |
last post by:
Hi all
It is maybe a stupid question, but I have some
trouble with Inheritance.
For example:
I create a new class with one form.
On this form I place on the bottom a Panel
and on this Panel...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |