WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Programmatically set a textbox control to read-only

 
   Home -> Office -> Program Forms RSS
Next:  Catching link clicks inside a message  
Author Message
Lucy

External


Since: Mar 06, 2006
Posts: 47



(Msg. 1) Posted: Wed Aug 27, 2008 9:19 am
Post subject: Programmatically set a textbox control to read-only
Archived from groups: microsoft>public>outlook>program_forms (more info?)

Hi,

I am creating an VSTO Add-in in C#. I have some textboxes on my custom form
that I want to programmatically set to read-only in my code. I am using
Microsoft.Vbe.Interop.Forms. I have looked under the
Microsoft.Vbe.Interop.Forms.Control interface and the
Microsoft.Vbe.Interop.Forms.TextBox interface properties for a 'Read-only'
property but cannot find one. Can anyone help me?

Thanks.
Back to top
Login to vote
Sue Mosher [MVP-Outlook]

External


Since: Jun 18, 2004
Posts: 613



(Msg. 2) Posted: Wed Aug 27, 2008 2:46 pm
Post subject: RE: Programmatically set a textbox control to read-only [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Did you try the Locked property?
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"Lucy" wrote:

> Hi,
>
> I am creating an VSTO Add-in in C#. I have some textboxes on my custom form
> that I want to programmatically set to read-only in my code. I am using
> Microsoft.Vbe.Interop.Forms. I have looked under the
> Microsoft.Vbe.Interop.Forms.Control interface and the
> Microsoft.Vbe.Interop.Forms.TextBox interface properties for a 'Read-only'
> property but cannot find one. Can anyone help me?
>
> Thanks.
Back to top
Login to vote
Lucy

External


Since: Mar 06, 2006
Posts: 47



(Msg. 3) Posted: Thu Aug 28, 2008 1:26 am
Post subject: RE: Programmatically set a textbox control to read-only [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

No but I have now and it works thanks again!

"Sue Mosher [MVP-Outlook]" wrote:

> Did you try the Locked property?
> --
> Sue Mosher, Outlook MVP
> Author of Microsoft Outlook Programming: Jumpstart
> for Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
>
> "Lucy" wrote:
>
> > Hi,
> >
> > I am creating an VSTO Add-in in C#. I have some textboxes on my custom form
> > that I want to programmatically set to read-only in my code. I am using
> > Microsoft.Vbe.Interop.Forms. I have looked under the
> > Microsoft.Vbe.Interop.Forms.Control interface and the
> > Microsoft.Vbe.Interop.Forms.TextBox interface properties for a 'Read-only'
> > property but cannot find one. Can anyone help me?
> >
> > Thanks.
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Program Forms All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET