473,728 Members | 1,623 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2747
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.goo glegroups.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("User 32.dll", CharSet = CharSet.Auto)]
public static extern IntPtr SendMessage(Int Ptr h, int msg, int wParam, int
[] lParam);

// in the Form_Load
int[] stops = {16};
SendMessage(thi s.textBox1.Hand le, 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.goo glegroups.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
2457
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 listbox with the style set to 1 - Checkbox. Does anyone know how to achieve this? Regards, Michael Floyd
4
18193
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 reserve the spaces for the number if the number of digits are fewer than the number of placeholders. My simplified example: included within a loop such that it displays two columns
2
4385
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 fill the entire browser window. While the user is in the zoom mode I want to stop the tab key taking them on to the next (now invisible) tabstop on the page. Ideally I want tabbing to wrap round so that tabbing forward from the last of the zoomed...
0
1235
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 system it didn´t function anymore. all the time it export with semicolon (;). How I could change that? Because I can`t make a specification, the user is making the queries and I don´t know, with tables he want to use. For import to an other programm...
4
1646
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 tabstops are in awkward places for my data. Any suggestions? Is this "by design" for the CheckedListBoxes not to respond vin
0
5084
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 took me 2 hours to figure out! You can set tabs through RichTextBox using the cheesy SelectAll()-> SelectionTabs() method, but that only works after the text has been entered. If the user hits Enter on any line, it goes back and uses the...
4
6264
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 able to tab to the picturebox via the keyboard. Since the picturebox doesn't recieve focus the user can't get to the picturebox control. Am I missing something? This is using .NET 1.1
25
2699
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" long input lines into 2 or more shorter lines before the nth column... etc etc. Now, there are numerous anwers on the web and in the "C answer book", which includes a function to expand the tabs to blanks ( depending upon where the tab is in...
83
7839
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 some other ploblems which i can not correct.I would appreciated if someone take a look at my programm so as to help me.I tried many times to find out where my mistakes are but i didn't manage something. I have made some comments due to the programm...
0
8899
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9272
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9129
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8124
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6712
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6013
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4524
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4790
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2651
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.