VB 2005

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Good

    #1

    VB 2005

    Hi All

    In VB 2003, the code generated for data binding could be viewed under coding
    panel. But for 2005, Is there any chance to view these code behind?

    Cheers
    Good


  • Cor Ligthert [MVP]

    #2
    Re: VB 2005

    Good,

    Depends, as far as I know not in ASPNET.

    In windowforms, you can click in the solution explorere on show all files in
    top.
    The first thing I do when I start a program, I wished it was default.

    Than you can look at the files
    formX.designer. vb

    I hope this helps,

    Cor


    Comment

    • vbnetdev

      #3
      Re: VB 2005

      Under Form load event lets say you had a text box.

      TextBox1.Text = "Foo"

      Right click on textbox1 and ask to "view definition". it should take you to
      the "hidden code".

      --
      Get a powerful web, database, application, and email hosting with KJM
      Solutions




      "Good" <good@man.com > wrote in message
      news:%23$THVhsN GHA.3164@TK2MSF TNGP11.phx.gbl. ..[color=blue]
      > Hi All
      >
      > In VB 2003, the code generated for data binding could be viewed under
      > coding
      > panel. But for 2005, Is there any chance to view these code behind?
      >
      > Cheers
      > Good
      >
      >[/color]


      Comment

      • Jim Wooley

        #4
        Re: VB 2005

        > In VB 2003, the code generated for data binding could be viewed under[color=blue]
        > coding panel. But for 2005, Is there any chance to view these code
        > behind?[/color]

        Since you specify genenerated code, I suspect you are refering to Winforms.
        You can still access the generated section by selecting to "View all files"
        in your solution. You will then find a myForm.Designer .vb file which includes
        the same code. If you have bound the control, you will see code associated
        with your control like this:

        Me.SampleTextBo x.DataBindings. Add(New System.Windows. Forms.Binding(" Text",
        Me.MyBindingSou rce, "PropertyNa me", True))

        You can tweak this to specify formatting options and when the binding should
        be applied (onValidation, onChange, etc).

        Jim Wooley



        Comment

        Working...