Click here to Skip to main content
15,918,808 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem when Distributing A C#.Net Application Pin
Heath Stewart13-Jul-04 5:24
protectorHeath Stewart13-Jul-04 5:24 
GeneralRe: Problem when Distributing A C#.Net Application Pin
Axonn Echysttas13-Jul-04 5:49
Axonn Echysttas13-Jul-04 5:49 
GeneralRe: Problem when Distributing A C#.Net Application Pin
Heath Stewart13-Jul-04 6:09
protectorHeath Stewart13-Jul-04 6:09 
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 
Hy everyone!

I do have a problem with importing Outlook contacts!

I do use Outlook 2000 and my aim is to drag and drop Outlook contacts into my C# application (which is a Windows application) in a Textbox.
I managed the drag&drop methods but I do only want to insert the telephonenumber, lets say the business number and NOT the whole contact. I added the reference to the Outlook9 library but wasn't able to change my methods to only get the number.

Does anyone of you know what I do have to change/add or what ever to make it work?
The relevant part of my source is following this message!

Thanks!
Stephan.

Source:
...
//
// txtNameKey01
//
this.txtNameKey01.AllowDrop = true;
this.txtNameKey01.Location = new System.Drawing.Point(192, 24);
this.txtNameKey01.Name = "txtNameKey01";
this.txtNameKey01.Size = new System.Drawing.Size(160, 20);
this.txtNameKey01.TabIndex = 39;
this.txtNameKey01.Text = "";
this.txtNameKey01.DragDrop += new System.Windows.Forms.DragEventHandler(this.txtNameKey_DragDrop);
this.txtNameKey01.DragEnter += new System.Windows.Forms.DragEventHandler(this.txtNameKey_DragEnter);

...

#region txtNameKey Drag&Drop Actions
///
/// Drag&Drop routines for txtNameKeys
///

/// <param name="sender" />
/// <param name="e" />
// event handler for the DragEnter Event for txtNameKey
private void txtNameKey_DragEnter(object sender, System.Windows.Forms.DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.Text))
e.Effect = DragDropEffects.Copy;
else
e.Effect = DragDropEffects.None;
}
// event handler for the DragDrop Event for txtNameKey
private void txtNameKey_DragDrop(object sender, System.Windows.Forms.DragEventArgs e)
{
// eliminate +,(,)
string temp, temp2;
int i=0;
temp2="";
temp = e.Data.GetData(DataFormats.Text).ToString();
TextBox lTextBox = sender as TextBox;
for (i=0; i
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 
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 

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.