Click here to Skip to main content
15,901,284 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem when Distributing A C#.Net Application Pin
Axonn Ech.13-Jul-04 10:50
sussAxonn Ech.13-Jul-04 10:50 
Generalhowto to implement SOAP in C# Pin
Stephan Wright13-Jul-04 0:47
Stephan Wright13-Jul-04 0:47 
GeneralRe: howto to implement SOAP in C# Pin
Roman Rodov13-Jul-04 1:18
Roman Rodov13-Jul-04 1:18 
GeneralRe: howto to implement SOAP in C# Pin
Stephan Wright13-Jul-04 1:36
Stephan Wright13-Jul-04 1:36 
Generalproblems with importing Outlook contacts Pin
Stephan Wright12-Jul-04 23:58
Stephan Wright12-Jul-04 23:58 
GeneralRe: problems with importing Outlook contacts Pin
Heath Stewart13-Jul-04 4:26
protectorHeath Stewart13-Jul-04 4:26 
GeneralRe: problems with importing Outlook contacts Pin
Stephan Wright13-Jul-04 22:38
Stephan Wright13-Jul-04 22:38 
GeneralRe: problems with importing Outlook contacts Pin
Heath Stewart14-Jul-04 3:13
protectorHeath Stewart14-Jul-04 3:13 
The CF_TEXT clipboard format is the same as DataFormats.Text in the .NET BCL. Both are simply defined as "Text" (actually, CF_TEXT is a pre-registered ATOM, IIRC, defined as 1).

So, as you posted before, just use dataObject.GetData(DataFormats.Text) and parse the text to get only the phone number. Because of the variability, you might consider using a string tokenizer or the System.Text.RegularExpressions.Regex class for regular expressions.

FYI, C# really has nothing to do with this. Since you're new, it's important to understand that C# is one of about 30 languages currently that target the Common Language Runtime (CLR). C# has access to the same classes as any other language. The Microsoft .NET Base Class Library (BCL) is the assemblies that comprise the .NET Framework, but any assembly can be used by any language because they all compile down to the same Intermediate Language (IL) that is contained in a module which is embedded into an assembly (which may also contain assembly attributes and embedded resources, and always has a manifest of what it contains).

So, the clipboard and drag-n-drop functionality is actually provided by the BCL assemblies (System.Windows.Forms.dll, specifically). While the same level of functionality is not exposed by the BCL classes, the OLE clipboard and drag-n-drop functionality is encapsulated and used (otherwise you wouldn't be able to drag-n-drop out of your .NET application). I'm currently developing a library that does expose all the functionality in a .NET-friendly manner, but it will be quite some time before it's done (I don't exactly have a lot of time).

 

Microsoft MVP, Visual C#
My Articles
GeneralSNTP Class Pin
don7cry12-Jul-04 21:46
don7cry12-Jul-04 21:46 
GeneralRe: SNTP Class Pin
Heath Stewart13-Jul-04 5:13
protectorHeath Stewart13-Jul-04 5:13 
GeneralCreate Undo functionnality. Pin
HAHAHA_NEXT12-Jul-04 19:56
HAHAHA_NEXT12-Jul-04 19:56 
GeneralRe: Create Undo functionnality. Pin
Roman Rodov13-Jul-04 1:25
Roman Rodov13-Jul-04 1:25 
GeneralWindow Message Pin
sachinkalse12-Jul-04 19:15
sachinkalse12-Jul-04 19:15 
GeneralRe: Window Message Pin
Heath Stewart13-Jul-04 5:22
protectorHeath Stewart13-Jul-04 5:22 
GeneralRe: Window Message Pin
sachinkalse13-Jul-04 16:16
sachinkalse13-Jul-04 16:16 
GeneralRe: Window Message Pin
Heath Stewart14-Jul-04 3:01
protectorHeath Stewart14-Jul-04 3:01 
QuestionRegistering classes with a class factory? Pin
Scythen12-Jul-04 18:01
Scythen12-Jul-04 18:01 
AnswerRe: Registering classes with a class factory? Pin
Heath Stewart13-Jul-04 5:46
protectorHeath Stewart13-Jul-04 5:46 
GeneralSecurity Access Error Pin
dbetting12-Jul-04 16:48
dbetting12-Jul-04 16:48 
GeneralRe: Security Access Error Pin
Nick Parker12-Jul-04 17:22
protectorNick Parker12-Jul-04 17:22 
Generalcode for adding Pin
stevemasters2212-Jul-04 13:58
stevemasters2212-Jul-04 13:58 
GeneralRe: code for adding Pin
KevinMac12-Jul-04 17:01
KevinMac12-Jul-04 17:01 
GeneralRe: code for adding Pin
stevemasters2212-Jul-04 17:27
stevemasters2212-Jul-04 17:27 
GeneralRe: code for adding Pin
Nick Parker12-Jul-04 17:50
protectorNick Parker12-Jul-04 17:50 
GeneralRe: code for adding Pin
stevemasters2212-Jul-04 20:54
stevemasters2212-Jul-04 20:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.