Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
18290 | Aug 27,2004 08:45 AM UTC | Aug 27,2004 10:25 AM UTC | WinForms | 3 |
![]() |
Tags: GridControl |
DataObject data = (DataObject) Clipboard.GetDataObject(); if(data.GetDataPresent(DataFormats.Text)) { string s = (string)data.GetData(DataFormats.Text); //s holds the string on the clipboard }
>DataObject data = (DataObject) Clipboard.GetDataObject(); >if(data.GetDataPresent(DataFormats.Text)) >{ > string s = (string)data.GetData(DataFormats.Text); > //s holds the string on the clipboard >} >
double d;
if(double.TryParse(s, System.Globalization.NumberStyles.Integer, null, out d)
{
// s holds an integer and d is the value
}
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.