VB 2005


G

Good

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
 
Ad

Advertisements

C

Cor Ligthert [MVP]

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
 
V

vbnetdev

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".
 
Ad

Advertisements

J

Jim Wooley

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?
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.SampleTextBox.DataBindings.Add(New System.Windows.Forms.Binding("Text",
Me.MyBindingSource, "PropertyName", True))

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

Jim Wooley
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

VB 2005 3
VB 2005 equivalent of VB 6 PictureBox.Point, VB 2005 generalconfusion. 5
Upgrade to VB 2005 13
Datagrid with VB 2005 9
VB 2005 DUN 2
Speed in VB 2005 11
vb 2005 email 2
VB 2005 Probems 4

Top