473,382 Members | 1,786 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,382 software developers and data experts.

Point in a window

I have a Child Window with controls on it

On one control (Textbox) next to it is a button (datagridview on another
form
when the button is clicked i want to place this
pop up window under the Textbox Control

any Examples
Thanks DaveL
Oct 10 '08 #1
3 1333
Well if you know which textbox you're clicking you can use:

Point winPoint = Point.Empty;
winPoint.X = textbox1.Location.X;
winPoint.Y = textbox1.Location.Y + textbox1.Height;

newWindow.Location = this.PointToScreenPoint(winPoint);
Oct 10 '08 #2
thanks alot , i'll try it out
its a custom control with a Textbox and a button
i want to show the datagridview window porton
under the TextBox

thanks again
DaveL

"cfps.Christian" <ge*******@otc.eduwrote in message
news:33**********************************@t42g2000 hsg.googlegroups.com...
Well if you know which textbox you're clicking you can use:

Point winPoint = Point.Empty;
winPoint.X = textbox1.Location.X;
winPoint.Y = textbox1.Location.Y + textbox1.Height;

newWindow.Location = this.PointToScreenPoint(winPoint);

Oct 11 '08 #3
Worked Perfect, thank you

DaveL

"cfps.Christian" <ge*******@otc.eduwrote in message
news:33**********************************@t42g2000 hsg.googlegroups.com...
Well if you know which textbox you're clicking you can use:

Point winPoint = Point.Empty;
winPoint.X = textbox1.Location.X;
winPoint.Y = textbox1.Location.Y + textbox1.Height;

newWindow.Location = this.PointToScreenPoint(winPoint);

Oct 11 '08 #4

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

Similar topics

5
by: Joseph Ellis | last post by:
Hello all. I have a family website that I have been maintaining for the past year and a half or so. It includes a photo album that has grown quite large. So far I've displayed the photo album...
65
by: Skybuck Flying | last post by:
Hi, I needed a method to determine if a point was on a line segment in 2D. So I googled for some help and so far I have evaluated two methods. The first method was only a formula, the second...
3
by: Logan McKinley | last post by:
I need to draw a dot where ever the user clicks (which will be on either the form or a couple dynamically placed picture boxes). I thought the following code should work: //--- static public...
6
by: david | last post by:
When I compile a window form client for web service, there is error message as follows: Program 'D:\usr\winVBcontrol\WinClient4WebServiceFileCS\obj\Debug\WinClient4WebServiceFileCS.exe' does not...
2
by: BradC | last post by:
I have a long VB.NET form with a scrollbar (autoscroll=true, not an actual scrollbar control). In response to one particular buttonclick, I need to scroll down to a particular point on the form,...
8
by: Sinisa | last post by:
Hi, first sorry on awkward english. I'll try to illustrate my problem: (dont know how will this look on your scrren) ...
2
by: ke6rwj | last post by:
I am developing a kiosk application, this will not have a keyboard or mouse for use. The system rotates through a series of images - no problem One image is very large, like this one... ...
1
by: Marc the Demi-Programmer | last post by:
I am overriding WncProc to make sure my form's location stays within specified parameters. Basically, it has to stay at the top of the screen and not be off to either of the sides. All that works...
2
by: martin1 | last post by:
Hi, All, I used to right click on solution explorer to setup start point, but when I right click and cannot see setup start point anymore. I have 2 window forms and want to set up one window...
0
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...
0
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
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...
0
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
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...

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.