CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Aug 2011
    Posts
    35

    Resolved Controls positions

    Hi all,

    how can I find if a control is on the Form or is created in a Frame or other container.
    I need that to know x,y coordonates.
    For example,
    Command1 Button is puted directly on the Form
    Command2 Button is puted in Frame1
    for Command1 x= Command1.x (y=blablabla)
    for Command2 x= Frame1.x + Command2.x (y=blablabla)

    I want to create a Global Function in a bas Module which send to another function this two parameters (x and y)
    Basicly I want to show the MsgBox near to control box which generates the message

    thanks for any sugestion
    Last edited by nexusm; April 20th, 2012 at 10:30 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured