API tabstops

  • Thread starter Thread starter signingupsucksman
  • Start date Start date
S

signingupsucksman

Hi, Ive tried searching the net for an example on how to use the
SendMessage API with tabstops since the program Im working with has all
the same class names and most captions are blank, Im not sure why.
Thank you.
 
I forgot to ask if anyone could provide me with one, sorry, I didnt
have my coffee this morning.
 
I forgot to ask if anyone could provide me with one, sorry, I didnt
have my coffee this morning.

// at the top
using System.Runtime.InteropServices;

// after the class declaration
private const int EM_SETTABSTOPS = 0x00CB;
[DllImport("User32.dll", CharSet = CharSet.Auto)]
public static extern IntPtr SendMessage(IntPtr h, int msg, int wParam, int
[] lParam);

// in the Form_Load
int[] stops = {16};
SendMessage(this.textBox1.Handle, EM_SETTABSTOPS, 1, stops);
 
Thanks man, Ill give it a try. And does anyone know of a website that
has a list all of those hex values such as the one for EM_SETTABSTOPS
and others?
 
I gave this a try, it didnt work. I read about EM_SETTABSTOPS on the
msdn. Im trying to get the cursor to hit buttons and textboxes but
since I dont have any unique ID on them, the only way is to use
tabstops.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top