How to empty "From" field using vb.net?

hi,
1. i opened mail from drafts in outlook and i want to reply but i want "from" field empty.
2. Other problem is I want to change the icon of mail instead of "letter icon" beside mail.
3. in outlook i made button and when i click that button a message will be open, the problem is if i click that button more than one time it will show message box more than one time, how can i disable the button after single click and then enable after messsage box disappear
Please help me, I m using VB.Net
thanks.



Answer this question

How to empty "From" field using vb.net?

  • Cyberyaga

    hi mike,
      Thank you for your reply but there are some ambiguities.
    1. Please tell me how to construct a message using CDO.
    2. whenever you open your Inbox or outbox there are list of mails having sender name, date and an icon of a letter (when letter is open it means u read your mail and if it is closed your mail will be marked as unread). so i want to change letter icon with mobile phone icon .i hope this time you understand.

    3. we tried the following code but it doesnt work so please tell us more about it
         dim form1 as MyForm
         MyForm.ShowModel()

    Hope you will reply me.
    Thanks


  • Ogre

    Hi

    There is a property SenderName on the object model of Outlook that is readonly unfortunatley the object model uses SendOnBehalfOfName property to change the Sender details but this is based on security priviliedges alternatively you could use CDO to construct a message and send from a different email address but this wouldnt be as easy with the message coming from Drafts.

    Changing Icons in the List view is not that easy and is related to the Item Class I am keen to understand more what you are trying to achieve in this regard, basically the Icon's are related to the message class.

    The Click button and displaying of a dialog box, basically the message box dialog would need to be configured to be Modal and as such you can load the form like below

    dim form1 as MyForm
    MyForm.ShowModel()

    This presumes you are constructing the form from scratch.

    Regards

  • How to empty "From" field using vb.net?