Results 1 to 3 of 3

Thread: c# and Revit Textbox issue

  1. #1
    Member
    Join Date
    2010-05
    Posts
    4
    Login to Give a bone
    0

    Angry c# and Revit Textbox issue

    Hi,

    I am feeling a bit like an idiot... I have textboxes on a c# form within Revit and for some reasons the textboxes do not accept any special chracters where I have to press <shift+...> to get to it (ie: # or $ or %...). Capitals are however no problem. Unfortunately tabbing between the textboxes doesnt work either.

    I tried a standalone c# project (a form outside of Revit) and the textbox works like expected, all chracters are displayed properly.

    The textboxes have no code attached to their respective event handlers...

    What am I missing?

    P.S. I am kind of new to c# coding, used to do VB.net.

    Thanks!

  2. #2
    100 Club
    Join Date
    2004-02
    Location
    Brookline, MA
    Posts
    186
    Login to Give a bone
    0

    Default Re: c# and Revit Textbox issue

    Question: are you doing a modal or modeless window? (modeless meaning that you can still interact with Revit while the dialog was up)?

    I have seen issues in the past with modeless windows- where Revit was grabbing all of certain keys away from you (delete was particularly painful - you thought you were deleting a line from a textbox but you were in fact deleting whatever was selected).

    If I recall correctly, the issue is improved (if not fixed) by making Revit the parent window of your dialog box. The Building Coder blog has a post about this - it involves doing some gymnastics to get the window handle of Revit then make an interface that resembles a form to be the parent...

    -Matt

  3. #3
    Woo! Hoo! my 1st post
    Join Date
    2015-02
    Posts
    1
    Login to Give a bone
    0

    Default Re: c# and Revit Textbox issue

    Check this one..a detailed tutorial on......

    Vayne

Similar Threads

  1. Can't access textbox while form is modeless in Autocad VBA
    By jeyankondan.k in forum VBA/COM Interop
    Replies: 3
    Last Post: 2016-01-24, 05:58 AM
  2. 2013: Textbox Lineweight Adjustment
    By robwarner in forum AutoCAD Annotation
    Replies: 2
    Last Post: 2015-04-16, 04:56 PM
  3. textfile to textbox
    By rwbaker08 in forum VBA/COM Interop
    Replies: 2
    Last Post: 2008-08-12, 02:37 PM
  4. TextBox Focus
    By spencer.67965 in forum VBA/COM Interop
    Replies: 5
    Last Post: 2006-04-07, 05:18 PM
  5. check value of the textbox
    By toanzeppelin in forum VBA/COM Interop
    Replies: 3
    Last Post: 2005-09-26, 07:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •