473,698 Members | 2,203 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.gr idmain.Col = 7
Rem frm_crysalis.gr idmain.Row = 1
Text1 = Str$(frm_crysal is.gridmain.Mou seCol)

Text2 = Str$(frm_crysal is.gridmain.Mou seRow)
frm_crysalis.gr idmain.Col = 1
frm_crysalis.gr idmain.Row = 1

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

frm_crysalis.gr idmain.MouseCol

but

frm_crysalis.gr idmain.Col

Dumb of me. Thanks anyway. -Carl

"Carl" <do****@enter.n et> wrote in message
news:6C******** *****@monger.ne wsread.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.gr idmain.Col = 7
Rem frm_crysalis.gr idmain.Row = 1
Text1 = Str$(frm_crysal is.gridmain.Mou seCol)

Text2 = Str$(frm_crysal is.gridmain.Mou seRow)
frm_crysalis.gr idmain.Col = 1
frm_crysalis.gr idmain.Row = 1

frm_crysalis.gr idmain.Text = Text1
frm_crysalis.gr idmain.Col = 1
frm_crysalis.gr idmain.Row = 2
frm_crysalis.gr idmain.Text = Text2
frm_crysalis.gr idmain.Text = frm_crysalis.gr idmain.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
568
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 Windows clipboard. Then, using automation, I am trying to copy this information from the clipboard to a PowerPoint slide. However, I get an error at slide.Shapes.PasteSpecial. I am able create a System.Drawing.Bitmap object from the memory...
16
12458
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 paste from the clipboard to Word, Notepad, etc. I know about the SetClipboardData function, but I really can't figure out how it works. It's supposed to be used in conjunction with the OpenClipboard function, I think. If anybody knows,...
3
3308
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 output one of Stephen Lebans' RTF2 controls on the report. He indicates that a copy and paste method will work from a form to the Word doc and that is fine although I have not done this in VB, rather used ^C and ^V I suspect that a similar method...
8
16235
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 that file into the user's clipboard so that they can later paste it into explorer? Thanks!!!
4
7429
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 existing clipboard contents. Does anyone know if there is a way to call the RTF control directly (such as via API calls) and pass it the object to be inserted, or does anyone have any other suggestions? Cheers, Jason
9
2122
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 this to not crash on is my development system w/ VB 2003 installed and Windows NT 4. My development system is Windows 2000 Pro, but if I try using the clipboard on Win2K Pro system that doesn't have VB 2003 installed it'll crash. The only...
0
1126
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 back from the clipboard. such as following: reports1._ReportBrowser.Select(); (Browser control)
7
6582
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 thing that i am trying to do is to code this : A man can do ctrl+c in an excel application and do ctrl+v in his flexgrid (in runtime mode) Regards,
19
8730
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 code, but it doesn't work. I'm apparently missing some type of declaration, and the code is diffent in visualweb.net than elsewhere. When I try the code below, it tells me that the "name clipboard is not declared"
0
8672
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
8600
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9021
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...
1
8892
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6518
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
5860
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
4361
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...
1
3038
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
2
2323
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.