?
Solved

How to paste the values from clipboard back to datagridview

Posted on 2009-02-21
2
Medium Priority
?
319 Views
Last Modified: 2013-11-26
When I get the data stream from the clipboard, if there is a new line, should I get a \n?  But somehow when I do a debug, there is none.  No matter what data format I use, I still cannot get it.  Please help!
Dim s As String = Clipboard.GetData(DataFormats.CommaSeparatedValue)
Dim lines() As String = s.Split("\n")

Open in new window

0
Comment
Question by:johnyu1997
  • 2
2 Comments
 
LVL 15

Accepted Solution

by:
Praveen Venu earned 375 total points
ID: 23700447
simple use this


Dim s As String = Clipboard.GetData(DataFormats.CommaSeparatedValue)
Dim lines() As String = s.Split(vbCrLf)

Open in new window

0
 
LVL 15

Expert Comment

by:Praveen Venu
ID: 23703836
May I know is there any issue why you posted B grade for it?
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month15 days, 18 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question