See Related Forum Messages: Follow the Links Below to View Complete Thread
How Open RecordSet Supports Client-side And Server-side Cursors
Helloo
Hiii Pl. any 1 help me
I m going to start my project for inventry system. Actualy i m developing program for single user syatem. Now i m going to start program for multiuser syatem using MSSQL Server. Means data will be store in server computer read ,write,query from server . more then 4 to 5 user will use my program same time . so what process shoul i use please tell me how connect sql server using ADODB method . Is same project will work on boath side or i have to develop different program for both side
how connect SQL Server using ADODB method and hoe use open RecordSet for client-side and server-side cursors .
same time 3 to 4 user will use program
Thanx
How Open RecordSet Supports Client-side And Server-side Cursors
Helloo
Hiii Pl. any 1 help me
I m going to start my project for inventry system. Actualy i m developing program for single user syatem. Now i m going to start program for multiuser syatem using MSSQL Server. Means data will be store in server computer read ,write,query from server . more then 4 to 5 user will use my program same time . so what process shoul i use please tell me how connect sql server using ADODB method . Is same project will work on boath side or i have to develop different program for both side
how connect SQL Server using ADODB method and hoe use open RecordSet for client-side and server-side cursors .
same time 3 to 4 user will use program
Thanx
Datagrid And Server Side Cursor
I'm attemting to use the DataGrid that is data aware though the
use of a DataClass.
I've had problems in the past using the Server Side cursor where the data would not appear within the grid. I attempted to fix this
via the Microsoft Knowledge base by setting the property value of the
rescordset with...
With rs
.CursorType = adServer
.Property("IRowSetIdentity") = True
.CursorType = adKeyset
.LockType = adLockOptimistic
.Open "Select Field1 As [Field Name], Field2 As [Field Name2] From Customer
End With
The problem is when I use the rs.AddNew through the DataClass
it allows me to add the first record, but when I update the recordset and then use rs.AddNew the second time it gives me a DataGrid Error that
"The parameter is not correct"
What is it talking about?
Any ideas on how to deal with this?
PS I'm not sure if this has anything to do with it but I also use ButtonClick method to dropdown a listbox within grid ...
Server-side Cursor Errors
I have recently begun messing with server-side cursors in databases and have been getting quite a few errors lately.
This first one occurs when I try and use the .Update method when adding a new record:
Run-time error '-2147217888 (80040e20)':
Consumer's event handler called a non-reentrant method in the provider.
Here's another one, when I try and use the .Move series of methods:
Run-time error '-2145217883 (80040e25)':
Row handles must all be released before new ones can be obtained.
Huh? I get nothing when I use the 'Help' button to go to MSDN. Anybody know what I should do here?
Overspecialize and you breed in weakness.
Edited by - Zargon23 on 8/13/2002 11:31:43 AM
ADO RecordCount With Server Side Cursor (MS SQL Server) Help!
Im working on a VB6 Client and MS SQL Server 7 /2000 backend
Im using ADO to access the SQL Server databases.
Im composing store procedure request and using recordset.open...
to bring back the results.
If I set the CursorLocation to Local I can succesfully use rs.recordcount
If I set it to Server recordcount never works.
And If I try setting the recordset type to Static / Keyset I keep getting
an ADODB warning 'Cursor Type Changed'
What I think is happening is that im requesting a Static recordset, and
the server is returning a FowardOnly recordset which of course dosent
support RecordCount, anybody know why the server is forcing a change
of recordset ?
Any help would be much appreciated!
Fil
Server Side Cursor Won't Update If I Use ORDER BY
Hi, it seems like the problem I was having with getting my server side cursor to update was because I used the ORDER BY clause.. It won't refresh the information if it's is being used.. My data has to be order or it'll be useless.. Is there an alternative way with SQL Server to order my data? Can SQL Server sort my records in a certain order when any records have been editted/added/changed? Can recordsets be sorted after I retreived the data? Is there an event that notify if my recordset had changed and I can restore it?
Thanks
John
DataCombo Is Not Populating With Server Side Cursor.(Yet Not A Single Reply.)
Hi All,
I m facing a strange problem, i.e. when i open the recordset at server side location and try to populate datacombo by setting it's rowsource property to recordset, it wont populate. But when i tried the same recordset to populate MshFlxGrid by setting the datasource property of it to recordset it gets populated....how come????
The rest of the settings of the Datacombo are perfect since with recordset at clientside cursor location, it works just fine.
If the serverside recordset opens at server side and at client returns only the pointer then how come it populates the mshflxgrid?????
Plz explain me how the same recordset work in different manner for same kind of job????
code is as bellow
Private Sub Command1_Click()
Dim rs As ADODB.Recordset
Dim rsClient As ADODB.Recordset
Dim sql As String
Set rs = New ADODB.Recordset
rs.CursorLocation = adUseServer
sql = "SELECT * From D_APPL_MSTR"
rs.Open sql, conn, adOpenDynamic, adLockOptimistic
MsgBox rs.RecordCount
Set MSHFlexGrid1.DataSource = rs
Set DataCombo1.RowSource = rs
End Sub
Absolute Position?
Ok back to my datacontrol thing... now I have the record count total but I want to know what record the user is on when they press forward, back, move first, or last in the data control. I have this
Private Sub Data1_Validate(Action As Integer, Save As Integer)
Dim myStr As String
myStr = "Record " & Data1.Recordset.AbsolutePosition & " of " & Data1.Recordset.RecordCount
info.Caption = myStr
End Sub
but the absoluteposition seems to return random things... such as 3 when the text box really displays record 0 and 2 when its really on record number 4. ... am I using this wrong?
complete code
Code:
Option Explicit
Dim rs As Recordset
Dim tCnt As Integer
Dim myPos As Integer
Private Sub Data1_Validate(Action As Integer, Save As Integer)
Dim myStr As String
myStr = "Record " & Data1.Recordset.AbsolutePosition & " of " & Data1.Recordset.RecordCount
info.Caption = myStr
End Sub
Private Sub Form_Load()
CommonDialog1.ShowOpen
Data1.DatabaseName = CommonDialog1.FileName
'Set rs = .OpenRecordset("AUTHORS")
Data1.RecordSource = "branch"
Set Data1.Recordset = rs
Data1.Refresh ' Open the recordset
Data1.Recordset.MoveLast
Data1.Recordset.MoveFirst
Text1.DataField = "branch_name"
tCnt = 1
End Sub
Absolute Position
Hello...
what the different between selbookmark and absolute position in datagrid...?
i can get the current pointed recordset with that two, can't i ?
how if i do a multiple select ? how absolute position works in multiple select?
thanks,
ganero
.Absolute Position
I have a code errors out telling me I have an invalid key. The code it errors on is as follows:
Do While Not rs.EOF
.Add rs.AbsolutePosition + 1, rs!Site_Number, rs!Site_Number
rs.MoveNext
Loop
(it errors at the .ADD rs line)
I can't find any help on the invalid key error. Anyone have any suggestions?
Thanks
Pat
Absolute Position
I am trying to use rs.absoluteposition to keep incrementing the count on a label, but this always seems to stay at -1. Any ideas?
Thanks!
Erica
How To Get The Data Generated By Response.WriteFile() Method On Server Side In Client Side
HI,all.
I am hosting a webbrowser control in my application(VB.NET) and want
to implement downloading files from web automatically without user operation.
That is my application click the downloading links pragramatically and
download the files.
The problem is how could I directly get the data which generated by
Response.WriteFile() method on server side in client side and
save the file to disk programatically, instead of popup a download
file dialog then a save as dialog and interact with them to save the file.
Thanks for help.
How Do You Check If The File Path Is Existing Or Not Using ASP And In Client Side Not Server Side?
I'd like to know if a user entered a Path for a File the Path is existing or not and I'm using ASP not VB. In VB it is possible but in ASP it does not work. This is the code I used:
'########################################################
' Reference MS Scripting Runtime
Public Function FileExists(strFullPath As String) As Boolean
Dim oFile As New Scripting.FileSystemObject
FileExists = oFile.FileExists(strFullPath)
End Function
Note: This will run in VB but not in ASP, is there a code that I can use in ASP?
Call Server Side Dll From Client Side ActiveX Control
Hi,
I am Shan, computer science undergraduate from Malaysia. Recently I encountered a problem in developing an ActiveX control using Visual Basic. In the Visual Basic program, I make calls to a Dynamic Link Library (DLL) provided by an ADC (Analogue-Digital Converter) manufacturer. The code as shown below illustrates more on the call to the DLL.
01 //
02 //
03 // ADC11.vbp - ActiveX control Project
04 // + Modules
05 // --+ Module1 (adc1132.bas)
06 // + User Controls
07 // --+ UserControl1 (UserControl1.ctl)
08
09
10 // Function declaration in Module1 (adc1132.bas)
11 // The file ADC1132.dll located in the same folder as the project folder
12 Declare Function adc11_get_value Lib "ADC1132.dll" (ByVal channel As Integer) As Integer
13
14
15 // Call the adc11_get_value function from ADC1132.dll in UserControl1 (UserControl1.ctl)
16 Dim value as Integer
17 value = adc11_get_value(1)
18 //
19 //
20 //
The Visual Basic program works fine when I run the program from Visual Basic. The following step was creating an OCX file. After the OCX file was created, I use the Ms Frontpage to create a web page with the ActiveX control. At this stage, I found that the web page is not standalone. It requires the DLL file in the same folder as the web page in order to work properly. I hope that by now you know what am I trying to solve.
But actually it is not that simple. I have to upload the web page into the Personal Web Server (PWS) so that others could access it through an URL (http://shaan/pico). When I upload the web page into the PWS (ADC1132.dll is copied into the virtual directory as well) I could access the page properly with a web browser within the machine that hosts the web page. The ActiveX control does not work properly in another machine when it is called through URL. This is because the ActiveX control in the machine doesn't reaches the DLL file in the server (It will try to find the DLL file in that machine itself and prompt an error stating that the DLL file is not found in the associated folder).
Q: How to make the ActiveX control in the web page to reach the DLL file in the server (Downloading the DLL file into a client machine is not a solution because it interfaces with the ADC)?
I hope to hear from you in the near future. Hope to get a favorable reply. Thank you.
Regards
R Shan
Absolute Position In A Query
Hi, using DAO and Access, is there a way to know the exact position of a record in a query ? Like absolute position or something ?
Many Thanks
Absolute Position Of A Record !!!
Friends,
How can I view the number of exact row in a label that is currently showing the data.
Something like this: Record 15 of 75
Help needed please.
Absolute Control Position
ok i want a function 2 find the absolute position of a control on the form.... for example if the control passed in is in 2 pic boxes it will return the twirps to the top left of the form
- i will be doing this kinda thing abit so i need a generic function -
thanks kris
Absolute Control Position?
How can I know the absolute position of a control on a
form, using the upper left corner of the form as 1,1
These controls may be put inside other controls (nested)!
Would anybody help?
Any hint?
Thanks
Absolute Cell Position
Is there any way of obtaining the absolute pixel position of a CELL so that I can use the AddShape position to draw a shape in that cell of equal size and position of that cell?
ie. AddShape(msoShapeOval, Cell.Top, Cell.Left, Cell.Height, Cell.Width)
'Kind of thing'
Many Thanks in advance.
Riyaz
Vbscript - Can I Call A Server-side Sub From Client-side?
Hi There,
I have an onSelectedItemChanged event (call this the ServerEvent) that I have already writtern in in VB.NET (server-side). When the user selects a new item from a drop down, this method is called. If they select a particular item within the page, programatically (from the server-side) i change the selectedindex of the drop down to something else. Then; however, the onSelectedItemChanged event does not fire.
I have been given some advice that I might need to ALSO have an onSelectedItemChanged event on the server-side (call this the ClientEvent), to catch the fact that i have programatically changed the selected index.
What I want to know is, is there a way to call my ServerEvent from my ClientEvent, so that all my code is still being done from the server-side?
If so, how do I do this, and if not, how can I get around this??
Thanks,
Michelle
Absolute Position In Data Reports
How can you print out an ordered sequence to number the records in a VB data report? The function control won't go into the detail section, and calculated fields only work if you have other fields to calculate from. It seems so easy in Access (number grouping), but why not in VB? Any ideas?
Record Count And Absolute Position
On my form I'm trying to display the number of recoreds in my Access DB and also the current position I'm at but I'm having no luck. Currently i'm using the below but I keep getting -1 of -1 displayed. Can anyone see what is wrong?
Thanks
Code:
strCn = ConnectString()
sSQL = "SELECT * FROM tblBuy ORDER BY Completed DESC, Date DESC"
Set rsEditBuy = New ADODB.Recordset
rsEditBuy.Open sSQL, strCn, adOpenDynamic, adLockOptimistic
lblTrades.Caption = rsEditBuy.AbsolutePosition & " of " & rsEditBuy.RecordCount
Absolute Character Position In Richtext Box
I am trying to auto generate some text in a richtext box. Characters will have different sizes and be of different widths.
I need a way to line up the tabs inbetween things. Sometimes I need 2 tabs, but most of the time I only need 1 inbetween things (Sorry if this is vauge, I will attach an example if needed).
The only way I can think of accomplishing this is by testing the absolute position of a character from the line above and if absolute position of the current character matches that then leave the tabs how they are, otherwise add a tab until the tabs line up.
I searched through the object browser for a good hour testing all the different properties of the richtext lib, and nothing worked. SelTabs looked promising but it always returns 0 for some reason.
Any ideas?
ADO Record Count And Absolute Position
I finally figured out how display the record count of a table or query as well as the absolute record being focused on, but I am getting eroneus numbers -1 of 26 and when I click on the right or left arrow the counter wont increment (or decrement) unles I click the arrow twice. I put the statement in the form load:
Adodc1.Caption = " " & Adodc1.Recordset.AbsolutePosition & " of " & Adodc1.Recordset.RecordCount
and then I put it under the click sub for the Adodc1 control:
Private Sub Adodc1_WillMove(ByVal adReason As ADODB.EventReasonEnum, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
Adodc1.Caption = " " & Adodc1.Recordset.AbsolutePosition & " of " & Adodc1.Recordset.RecordCount
End Sub
Any suggestions on how I can get the proper results? Also when a query is run and produces no results, I would like the "counter" to display 0 of 0 instead of -1 of 0 and the control seems to be shaded like Enabled = False. DAVE
Visio - How To Move Shape To Absolute Position?
Hi,
Thanks for taking the time to look at my post.
I would like to move a shape object to an absolute location of my choice, e.g. I would like to know how to move a shape object to position (100, 100).
The selection object's move method only allows the selection to be moved relative to where it's original position was.
here is the code:
VB Code:
Sub start() Dim aShape As ShapeDim aSelection As Selection Set aShape = Documents(1).Pages(1).Shapes(1) ActiveWindow.Select aShape, visSelect Set aSelection = ActiveWindow.SelectionaSelection.Move 2, 2 'i want to move to an absolute location, not just 2 up and 2 right like this line doesEnd Sub
Thanks for your time
<>GT<>
Absolute Position A Text Box In Word Macro ??
Hi Guys
Wondering if anyone can tell me if its possible (and how to) absolute position a text box in a word macro....
I have a word document that runs a macro that places a text box on the page containing a barcode. The word document contains text that is editable by the user. However, if the user edits the text, the text box moves as if it is set to position relative to the text. I need the text box to remain in the absolute same spot all the time.
Please, any info on this would be much appreciated.
Nick
Client Side Or Server Side Cursors
I have developed an application that uses an Access database. The
application will be used in a small business with approximatley 6 users. In
the application I am using the Data Environment to connect and issue
commands.
Question is would it be better to use Server side cursors so that everyone
can see changes or would should I stick with Client cursors. If the
recommendation is for client side cursors how should I architect the
application so that users can see changes to the database while they have a
recordset open.
Thanks in advance,
DJ
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~
~ Darryl "DJ" Landreneau
~ Regional Sales Manager
~ CEYOINIQ (Formerly Treev, Inc.)
~ 410.451.5290 x163
~ 410.903.5635 mobile
~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Finding All Links Absolute Position X,Y Relatively To The Screen In VB6 WebBrowser
Finding all links absolute position X,Y relatively to the screen in VB6 WebBrowser
There is a Visual Basic 6 application with WebBrowser in it.
This application is about statistical information on what html tags were loaded, where they are being located - it's position X,Y
For example I want to find Document.getelementsbytagname("a") link and anchor position on the screen, how do I do it?
There is example in JS, that I could inject into webpage by scriptcontrol but could I do in in VB6 itself?
function getElementPosition(elemId)
{
var elem = document.getElementById(elemId);
var w = elem.offsetWidth;
var h = elem.offsetHeight;
var l = 0;
var t = 0;
while (elem)
{
l += elem.offsetLeft;
t += elem.offsetTop;
elem = elem.offsetParent;
}
return {"left":l, "top":t, "width": w, "height":h};
}
Trying by vb6 in webbrowser
Dim WithEvents doc As HTMLDocument
Dim elem As IHTMLElement
Set doc = ie.document
For x = 0 To doc.getElementsByTagName("a").length - 1
Set elem = doc.getElementsByTagName("a")(x)
I want convert this nonsense
'"-PParent=" & elem.offsetParent.offsetParent.tagName & "=" & elem.offsetParent.offsetParent.id & _
'"-3Parent=" & elem.offsetParent.offsetParent.offsetParent.tagName & _
'"-4Parent=" & elem.offsetParent.offsetParent.offsetParent.offsetParent.tagName & _
'"-4Parent=" & elem.offsetParent.offsetParent.offsetParent.offsetParent.id
To while loop, but I can't figure it out how
While (TypeOf elem Is IHTMLElement)
parentall = "-Parent Tag=" & elem.offsetParent.tagName & _
elem.id & ",l=" & elem.offsetLeft & ";t=" & elem.offsetTop & _
Set elem = elem.offsetParent
Wend
Next x
Finding All Links Absolute Position X,Y Relatively To The Screen In VB6 WebBrowser
Finding all links absolute position X,Y relatively to the screen in VB6 WebBrowser
There is a Visual Basic 6 application with WebBrowser in it.
This application is about statistical information on what html tags were loaded, where they are being located - it's position X,Y
For example I want to find Document.getelementsbytagname("a") link and anchor position on the screen, how do I do it?
There is example in JS, that I could inject into webpage by scriptcontrol but could I do in in VB6 itself?
function getElementPosition(elemId)
{
var elem = document.getElementById(elemId);
var w = elem.offsetWidth;
var h = elem.offsetHeight;
var l = 0;
var t = 0;
while (elem)
{
l += elem.offsetLeft;
t += elem.offsetTop;
elem = elem.offsetParent;
}
return {"left":l, "top":t, "width": w, "height":h};
}
Trying by vb6 in webbrowser
Dim WithEvents doc As HTMLDocument
Dim elem As IHTMLElement
Set doc = ie.document
For x = 0 To doc.getElementsByTagName("a").length - 1
Set elem = doc.getElementsByTagName("a")(x)
I want convert this nonsense
'"-PParent=" & elem.offsetParent.offsetParent.tagName & "=" & elem.offsetParent.offsetParent.id & _
'"-3Parent=" & elem.offsetParent.offsetParent.offsetParent.tagName & _
'"-4Parent=" & elem.offsetParent.offsetParent.offsetParent.offsetParent.tagName & _
'"-4Parent=" & elem.offsetParent.offsetParent.offsetParent.offsetParent.id
To while loop, but I can't figure it out how
While (TypeOf elem Is IHTMLElement)
parentall = "-Parent Tag=" & elem.offsetParent.tagName & _
elem.id & ",l=" & elem.offsetLeft & ";t=" & elem.offsetTop & _
Set elem = elem.offsetParent
Wend
Next x
Finding All Links Absolute Position X,Y Relatively To The Screen In VB6 WebBrowser
Finding all links absolute position X,Y relatively to the screen in VB6 WebBrowser
There is a Visual Basic 6 application with WebBrowser in it.
This application is about statistical information on what html tags were loaded, where they are being located - it's position X,Y
For example I want to find Document.getelementsbytagname("a") link and anchor position on the screen, how do I do it?
There is example in JS, that I could inject into webpage by scriptcontrol but could I do in in VB6 itself?
function getElementPosition(elemId)
{
var elem = document.getElementById(elemId);
var w = elem.offsetWidth;
var h = elem.offsetHeight;
var l = 0;
var t = 0;
while (elem)
{
l += elem.offsetLeft;
t += elem.offsetTop;
elem = elem.offsetParent;
}
return {"left":l, "top":t, "width": w, "height":h};
}
Trying by vb6 in webbrowser
Dim WithEvents doc As HTMLDocument
Dim elem As IHTMLElement
Set doc = ie.document
For x = 0 To doc.getElementsByTagName("a").length - 1
Set elem = doc.getElementsByTagName("a")(x)
I want convert this nonsense
'"-PParent=" & elem.offsetParent.offsetParent.tagName & "=" & elem.offsetParent.offsetParent.id & _
'"-3Parent=" & elem.offsetParent.offsetParent.offsetParent.tagName & _
'"-4Parent=" & elem.offsetParent.offsetParent.offsetParent.offsetParent.tagName & _
'"-4Parent=" & elem.offsetParent.offsetParent.offsetParent.offsetParent.id
To while loop, but I can't figure it out how
While (TypeOf elem Is IHTMLElement)
parentall = "-Parent Tag=" & elem.offsetParent.tagName & _
elem.id & ",l=" & elem.offsetLeft & ";t=" & elem.offsetTop & _
Set elem = elem.offsetParent
Wend
Next x
Row Position, Column Position Of Cursor In RichTextBox
I am trying to create a text editor with some enhanced specific features for my application. One of these features which is a MUST is that I need to know which row and column my cursor is on at any given time. Therefore if I use the arrow keys, or click on the RichText Box, I can update the statusbar to tell me which line number (row) and character position within the line I am on.
I am not totally sold on using the rich text box, but the files can be somewhat large, and I need the text to be editable.
Client Side Server Side
hi friends
can any one give me the link or any hints how can i develop an application where every user acess the database at a time im a new comer into vb field thats why plz help me
scenario is i have developed an applicaion in vb backend sql server ..
in win 2k we can work with out any error but when i install and in an win 98 system it says u can not acess db at time for that u need to get full version of software like that ... i dont know whats that err..
plz any one ..
at least any links
plz.....................
SERVER SIDE VS. CLIENT SIDE?
I have stepped into the code of a VB 6 program using ADO to query against SQL 7 and it is really slow. I am sure the connection is using client side because the memory jumps on the client computer when executing. The problem is it varies in slowness by the cpu and memory of the client. Is it better to store the cursor server side? How do I do this? This is the code that takes the most time:
DataEnvironment1.cmdTransfer mTransfer
Reason For Client Side Cursor
Can anyone tell me why I need a clientside cursor when I want to show my sql query results in a datagrid through an ADOC?
I am writing documentation for a project and I need to explain the purpose of a client side cursor.
Also If anyone knows any sites that might help with coding choices and reasons that would be great. Its annoying to do but its worth quite a few marks.
Thanks all.
Client Side Cursor And Row Locking
Bare with me because I am somewhat new to VB and ADO.
Is there a way to lock a record in SQL Server using a client side cursor?
I am trying to lock a record so that another user doesn't have access if someone else has it opened. I am currently using ADO with a server side cursor, with pessimistic locking and a forward only cursor type. This accomplishes what I'm trying to do BUT only by accident. I am getting a timeout error instead of a record locked error. HELP?
I have a connection and recordset variable declared at the module level because the function is in a class. The recordset results are stored in class variables.
sp = "GetSelectedThreadResponse '" & vData & "'"
Set m_cnResp = New ADODB.Connection
If m_cnResp.State = adStateClosed Then
' class method that i created to open
' the connection.
g_objADOConnection.OpenDBConnection m_cnResp
End If
m_cnResp.CursorLocation = adUseServer
Set m_rsResp = New ADODB.Recordset
m_rsResp.Open sp, m_cnResp, adOpenForwardOnly, adLockPessimistic
Let me know if any further details are needed.
Thank you so much!!!
Shaun
Moving Cursor From One Part Of The Desktop To Click On A Button On The Other Side Of The D
Is there any code availabe that will guide the cursor across the screen from one button to the next and then click on the button?. In other words the cursor is over one button and then must move across to click another button. Don't know if VB.net is capable of this...most code seems to relate to background procedures and functions.
Would be grateful for any advice.
Thanks,
Niall
Edited by - Niallc on 1/17/2004 6:50:54 PM
Cursor Position
I was making playing around with making screensavers (the best way to learn to program). I was trying to make a trail of shapes behind the mouse(the screensaver will only close with the KeyDown and Click event), but I have a small problem, I don't know how to get the shapes to make a trail. I know how to use the MoveMouse event to get the x and y coordinates of the mouse inside the form, and making one shape stay with the mouse. Does anyone know how I can do this?
I need a way to store the previous locations of the mouse, but if I use a timer, it looks jerky?
Position The Cursor?
I have a piece of code that runs on LostFocus() - but thats neither here nor there.
When I tab out, if the value is a duplicate - a message box appears telling the user, the text box is wiped clean, however the cursor moves on to the next text box (as is his want)
Can I tell the cursor to go back to the other TextBox
Getting Cursor Position
hey all-
i asked this yesterday, but this time it is different. is there a way to get the cursor position on the form, rather than the cursor position on the screen? i want this information so that i can make a crosshair with two lines. i just want the lines to be what the cursor position it. thanks
Set Cursor Position
I just want to know if it's possible to set a starting position
for the cursor!
e.g. i've got a TextBox and want the Cursor to appear first in this TextBox
Please answer me it's a part of an test !
Thanx BH
Cursor Position
ive tried to look al over for this but i cant see it anywhere.
i want the flasing cursor to appear 3 characters in from the left in a string i.e. bob|by <-non flashing cursor
anyone know how, im very interested to find out. thanks in advance, Nell
Cursor Position
I need to find the middle of a picture box and set the cursor in the middle of it when the user click's a previous picturebox.
Basically the user clicks the next arrow(picture box) and the next tab on a tabstrip is displayed. The catch is the new tab's height shortens considerably therefore the next arrow(picture box) on the new tab is higher up the screen than the last.
I wish to place the cursor on this new picture box......
I have been through the "getCursorPos & setCursorPos" with no success.
Can anyone help?
Regards Dazza.
Cursor Position
i wanna to know how i can identify the position for a cursor in a text or roch text ??
for example in Vb when i write text1. ( a list will apear at th position of last Charecter ) how i can do that ?
Cursor Position
How do u find Cirsor position in pixels... id like to move a picture based on the position of the mouse pointer
thx
Cursor Position Et. Al.
Hello all, just realized this is the first post I've posted in a few months. But I digress.
I have several problems.
1) I need to set the cursor position to a specific spot in a text box and I haven't figured out how to do that yet. Any help would be appreciated.
2) Is there a way to save an html file from a rich text box without the html code shown on the page? (i.e. I have saved a richtext box as an html file and I couldn't get the html code itself to save)
Edit:
I figured out the third one...
Thanks in advance,
MikeJ
|