Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Enter control in ...

Posted on 1999-06-30
7
Medium Priority
?
177 Views
Last Modified: 2010-05-02
How can i enter a control in a form which is not from my Application. (like a Textfield in a Hompage). How i activate and set the focus to the Form, i know already, but i don't know how i can enter a field on the form!
0
Comment
Question by:MartinSchuster
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 2

Expert Comment

by:BeedleGuis
ID: 1520914
maybe SendKeys?
0
 
LVL 2

Expert Comment

by:BeedleGuis
ID: 1520915
or are you triing to add a brand new control?
0
 

Expert Comment

by:davepcam1
ID: 1520916
You need to use a windows API call
Declare Function TextOut Lib "gdi32" Alias "TextOutA" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal lpString As String, ByVal nCount As Long) As Long

try that, im not sure if itll fit your needs

what it does is sets text on a window at x,y
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Author Comment

by:MartinSchuster
ID: 1520917
And how can i find out where the window (control) is?
0
 
LVL 1

Author Comment

by:MartinSchuster
ID: 1520918
And how can i find out where the window (control) is?
0
 

Accepted Solution

by:
davepcam1 earned 300 total points
ID: 1520919
Declare Function GetCaretPos Lib "user32" Alias "GetCaretPos" (lpPoint As POINTAPI) As Long
type POINTAPI
    x as single
    y as single
end type

itll give you the x,y position in the UDT(above) of where the current blinking I is

otherwise you hve to know the ClassName of the control you want


0
 
LVL 1

Author Comment

by:MartinSchuster
ID: 1520920
Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question