473,387 Members | 1,530 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,387 software developers and data experts.

MSH Flexgrid Control, Copying Contents to Clipboard.

I'm trying to select, with the mouse, a cell within a flexgrid that I've
created, and copying the contents of that cell to the clipboard. I've tried
using the Mousecol and Mouserow properties to return the cell col and row
index, but It doesn't seem to RETURN the cell ID but needs an argument
identifying, seemingly the col and row repectively. Here's the test routine
I set up just to see how the mousecol property worked but it genterates the
"Argument not optional" error. How do you return the row and col index
after a mouseclick?

Private Sub gridmain_Click()
Rem frm_crysalis.gridmain.Col = 7
Rem frm_crysalis.gridmain.Row = 1
Text1 = Str$(frm_crysalis.gridmain.MouseCol)

Text2 = Str$(frm_crysalis.gridmain.MouseRow)
frm_crysalis.gridmain.Col = 1
frm_crysalis.gridmain.Row = 1

frm_crysalis.gridmain.Text = Text1
frm_crysalis.gridmain.Col = 1
frm_crysalis.gridmain.Row = 2
frm_crysalis.gridmain.Text = Text2
frm_crysalis.gridmain.Text = frm_crysalis.gridmain.Col
End Sub
Jul 17 '05 #1
1 5685
Never mind. I was trying to make it too difficult. It shouldn't be

frm_crysalis.gridmain.MouseCol

but

frm_crysalis.gridmain.Col

Dumb of me. Thanks anyway. -Carl

"Carl" <do****@enter.net> wrote in message
news:6C*************@monger.newsread.com...
I'm trying to select, with the mouse, a cell within a flexgrid that I've created, and copying the contents of that cell to the clipboard. I've tried using the Mousecol and Mouserow properties to return the cell col and row
index, but It doesn't seem to RETURN the cell ID but needs an argument
identifying, seemingly the col and row repectively. Here's the test routine I set up just to see how the mousecol property worked but it genterates the "Argument not optional" error. How do you return the row and col index
after a mouseclick?

Private Sub gridmain_Click()
Rem frm_crysalis.gridmain.Col = 7
Rem frm_crysalis.gridmain.Row = 1
Text1 = Str$(frm_crysalis.gridmain.MouseCol)

Text2 = Str$(frm_crysalis.gridmain.MouseRow)
frm_crysalis.gridmain.Col = 1
frm_crysalis.gridmain.Row = 1

frm_crysalis.gridmain.Text = Text1
frm_crysalis.gridmain.Col = 1
frm_crysalis.gridmain.Row = 2
frm_crysalis.gridmain.Text = Text2
frm_crysalis.gridmain.Text = frm_crysalis.gridmain.Col
End Sub

Jul 17 '05 #2

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

Similar topics

0
by: Ata | last post by:
Hello, I am trying to copy the contents of the output of SQL Reporting Services to a PowerPoint slide. For this, I am using SQL Reporting Services to obtain an IMAGE stream, which I paste to the...
16
by: DataBard007 | last post by:
I have an Access97 application whose form contains many text boxes. What do I have to do in order to copy the contents of one of these text boxes to the clipboard? I want to do this so I can then...
3
by: Phil Stanton | last post by:
I am trying to produce a program that will output any Access report to an editable Word document. So far it is working well but slowly with text boxes, labels, and lines. I now need to try to...
8
by: John Smith | last post by:
Hi folks, I know how to place text into the user's clipboard: Clipboard.SetDataObject("My Copied Text"); but how do I place a file in there? So, if I have a file C:\test.txt, how can I place...
4
by: Jason Sobell | last post by:
I'm trying to embed an image in an RTF control, but the only working method I can find is to do so via the clipboard and use myRTF.paste(). The problem here is that it obviously destroys the...
9
by: Christian Blackburn | last post by:
Hi Gang, I don't know what to make of all of this, but I'm having nothing, but trouble copying data to the clipboard which should be the easiest thing in the world. The only systems I can get...
0
by: | last post by:
I'm trying to capture the rendered text in browser control (Without the HTML). One of the methods I tried was to send keys to the browser control - copy it to the clipboard and then get the text...
7
by: VoTiger | last post by:
Hi everyone, i am ttrying to find a way to do the copy / paste between an existing excel file and my flexgrid (in runtime application). But the fact is that i don't know how to proceed. The...
19
by: Jeff | last post by:
....working with visualweb.net 2005 and vb. ....trying to simply copy the contents from a textbox to the clipboard. I've looked at a large number of places on line and they give me various...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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,...

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.