473,403 Members | 2,338 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,403 software developers and data experts.

API tabstops

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.

Feb 18 '06 #1
5 2735
I forgot to ask if anyone could provide me with one, sorry, I didnt
have my coffee this morning.

Feb 18 '06 #2
<si***************@yahoo.it> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
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);
Feb 18 '06 #3
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?

Feb 18 '06 #4
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.

Feb 18 '06 #5
Have a look at http://www.pinvoke.net/.

<si***************@yahoo.it> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
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?

Feb 18 '06 #6

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

Similar topics

1
by: mefloyd | last post by:
Using the SendMessage API, I know how to set tabstops in a list box. However, the code only works if the style property of the listbox is set to 0 - Standard. I would like to set tabs in a...
4
by: Rookie | last post by:
I need to display several columns of numbers in a textbox. I wish to display the columns with the decimal point position aligned vertically. I have found that the # digit placeholders do not...
2
by: Duncan Booth | last post by:
What is the best way to override the tab order in a web page? I'm trying to implement a zoom mode for part of a form, so when the zoom button is pressed that section of the form is resized to...
0
by: Kai Apel | last post by:
at last I always export a query with Docmd.TransferText,,qrn (Name of the Query), "c:\temp\text.txt" without any specification and MS Access use Tabstops for seperating. After reinstalling my...
4
by: VCIF | last post by:
Hi SendMessage LB_SETTABSTOPS works for ListBox but does not work for CheckedListBox. The CheckedListBox does have UseTabStops=True and does in fact show the tab spacing. The problem is that the...
0
by: Matt | last post by:
This took way to long to figure out - now that I have it working I thought I would share with the group. I've seen tons of posts with very little good answers on this seemingly simple thing that...
4
by: munglet | last post by:
Is there anyway to get a picturebox to recieve focus? I ask because I implemented a "delete" button in a picturebox (due to size constraints), but now due to accessibility reasons I need to be...
25
by: mdh | last post by:
Hi Group, Not looking for an answer, but more of an explanation. Thinking back to those heady days when you had the time to do them, may I ask this. Exercise 1-22 asks for a program to "fold"...
83
by: deppy_3 | last post by:
Hi.I am started learning Programm language C before some time.I am trying to make a programm about a very simple "sell shop".This programm hasn't got any compile problem but when i run it i face...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.