473,545 Members | 2,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Line Number in Microsoft forms 2.0

rob
Hiya,

I am having a problem of getting the position of the cursor in a microsoft
forms 2.0 box. I need the position + linenumber. I am making a simple text
editor which supports unicode.

Does anyone knows how to do it ?

Thanx in advance

Rob

Jul 17 '05 #1
3 2541
A quick Google search came up with these two hits. Don't know if they
will work with a Forms 2.0 textbox.

http://www.vb-helper.com/howto_find_...ursor_pos.html

http://www.vb-helper.com/howto_track..._position.html

Tom

"rob" <mr****@hotmail .nl> wrote in message
news:41******** *************** @dreader7.news. xs4all.nl...

I am having a problem of getting the position of the cursor in a microsoft
forms 2.0 box. I need the position + linenumber. I am making a simple text
editor which supports unicode.

Does anyone knows how to do it ?
Thanx in advance
Rob

Jul 17 '05 #2
rob
Hi,

Unfortunately this code doesn't work with a microsoft forms 2.0 textbox

And I can't finf any information about it on the internet

But thanx anywayzz :-)

Cya

"Kiteman - Canada" <-d*************@ shaw.ca> wrote in message
news:Ami3d.5279 6$%S.41261@pd7t w2no...
A quick Google search came up with these two hits. Don't know if they
will work with a Forms 2.0 textbox.

http://www.vb-helper.com/howto_find_...ursor_pos.html

http://www.vb-helper.com/howto_track..._position.html

Tom

"rob" <mr****@hotmail .nl> wrote in message
news:41******** *************** @dreader7.news. xs4all.nl...

I am having a problem of getting the position of the cursor in a
microsoft
forms 2.0 box. I need the position + linenumber. I am making a simple
text
editor which supports unicode.

Does anyone knows how to do it ?
Thanx in advance
Rob


Jul 17 '05 #3
As I recall the forms 2.0 controls don't expose a hwnd (aka windowless
controls) and as such any API methods usually applied to regular edit (text)
controls will fail with the forms 2.0 controls.

--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"rob" <mr****@hotmail .nl> wrote in message
news:41******** **************@ dreader7.news.x s4all.nl...
: Hi,
:
: Unfortunately this code doesn't work with a microsoft forms 2.0 textbox
:
: And I can't finf any information about it on the internet
:
: But thanx anywayzz :-)
:
: Cya
:
: "Kiteman - Canada" <-d*************@ shaw.ca> wrote in message
: news:Ami3d.5279 6$%S.41261@pd7t w2no...
: >A quick Google search came up with these two hits. Don't know if they
: >will work with a Forms 2.0 textbox.
: >
: > http://www.vb-helper.com/howto_find_...ursor_pos.html
: >
: > http://www.vb-helper.com/howto_track..._position.html
: >
: > Tom
: >
: > "rob" <mr****@hotmail .nl> wrote in message
: > news:41******** *************** @dreader7.news. xs4all.nl...
: >>
: >> I am having a problem of getting the position of the cursor in a
: >> microsoft
: >> forms 2.0 box. I need the position + linenumber. I am making a simple
: >> text
: >> editor which supports unicode.
: >>
: >> Does anyone knows how to do it ?
: >> Thanx in advance
: >> Rob
: >
: >
:
:

Jul 17 '05 #4

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

Similar topics

1
2008
by: dmiller23462 | last post by:
Hi again guys.... This is my first source of help, by far the best ASP intellectual collective....Thanks in advance for any assistance...Anyway.... The forms I'm still working on (finishing touches) have one issue that I've found in my testing.... I have online submission forms that email to a party and then also append to a plain-text...
3
5741
by: Gerry Abbott | last post by:
Hi all. Could someone tell me is this number fixed when the item is created, or can it be changed? So for example if there are three forms, with index 0,1,2 and form 1 is deleted, does form with index 2, now get index 1? Is the answer different depending on what the object is, eg Form or control. Thanks in advance.
2
9607
by: Mantorok Redgormor | last post by:
what is the purpose of the #line directive? how is it suppose to be used? I didn't see it mentioned in the faq and I can't make any sense of it from the standard. -- nethlek
1
2172
by: vishal | last post by:
What does #line 182 parser.y mean in a C program?
11
21905
by: Ken Varn | last post by:
I want to be able to determine my current line, file, and function in my C# application. I know that C++ has the __LINE__, __FUNCTION__, and __FILE___ macros for getting this, but I cannot find a C# equivalent. Any ideas? -- ----------------------------------- Ken Varn Senior Software Engineer Diebold Inc. varnk@diebold.com
18
8532
by: Ed Bitzer | last post by:
Can draw a line on my form with a button click event but cannot upon the Load event when I wish. No more line object so used the following: Dim bit As Bitmap = New Bitmap(Me.Width, Me.Height) Dim g As Graphics = Graphics.FromImage(bit) Dim myPen As Pen = New Pen(Color.Blue, 1) Me.CreateGraphics.DrawLine(myPen, 0, 5, Me.Width, 5) Appreciate...
13
14653
by: Don | last post by:
Hi, I have an SQL string that I'm trying to code into VBA and it's giving me trouble. I tried to use line continuation and concatenation as best I can to make it work. However, I'm stuck. I know that there are limitations to the length of the string but I can't break it up properly. I'm also thinking that I need to use multiples occurrences...
19
2440
by: =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post by:
This is an example of the data; 2007/07/27 11:00:03 ARES_INDICATION 010.050.016.002 404.2.01 (6511) RX 74 bytes 2007/07/27 11:00:03 65 11 26 02 BC 6C AA 20 76 93 51 53 50 76 13 48 2007/07/27 11:00:03 52 00 52 02 02 C7 83 D7 07 07 1B 0B 00 00 00 00 2007/07/27 11:00:03 28 0A 06 06 06 06 06 06 06 06 06 06 06 0A 06 06
7
2865
by: J.H.Kim | last post by:
Hi, everyone I saw the preprocessor "#line " in some source codes. It was like this : #line 2972 "ifupdown.nw" Please tell me what is the meaning of that "#line"? Thanks in advance.
0
7499
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...
0
7689
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7786
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...
0
6022
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...
0
5076
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...
0
3490
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...
1
1919
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1044
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
743
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.