Results 1 to 2 of 2

Thread: Form Layout in Release Mode

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2001
    Posts
    107

    Form Layout in Release Mode

    The main form in my project currenly contains a menu item labeled "TEST":

    Code:
    Me.ctxMnuMainNewTest.Text = "TEST"
    This simply opens up our test form, which is great while in development. Now, however, as we go into production, I need to hide this label / link when in Release mode. I thought I could use the
    Code:
     #IF DEBUG THEN...#End If
    format, but there's no such option for Release mode.

    The other options are CONFIG and TRACE...do I use one of these or am I barking up the wrong tree?

    OR...do I simply show what I want shown within #IF DEBUG statements ?

    Thanks, Mike

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    From the project properties dialog you can set different commandline parameters for each build mode (release/debug). Just pass in a commandline parameter and use that instead of the #if.

Posting Permissions

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



Click Here to Expand Forum to Full Width