Early Late binding & Polymorphism question

Hi,I read this online about early & late binding.. I don't understand (the example below) how it is, can anyone explain why?Early binding:: Properties and method can be identified by compile time.Example: dim rs as recordsetLate binnding: Properties and method can be identified by Run time.Example: dim obj as classnameset obj=new classnamePolymorphism:Also, why the reason they are said Method overloading & OverridingExample of Compile Time Polymorphism: Method OverloadingExample of Run Time Polymorphism: Method OverridingCan anyone explain the logic behind these two? Thanks in advanceThanks

More Related Resource Links

Newbie binding question here: is it possible to bind a control in XAML to a StaticResource by passing in the key via a data structure? Basically something like this:
<TextBlock Text="{Binding ImageKey}" />
<Image Source="{StaticResource ResourceKey={Binding ImageKey}}" /> <-- doesn't work
The TextBlock binding on the first line works correctly, it extracts the key of the StaticResource from my data structure and displays it correctly. What I'm trying to do is get the Image control to bind to the StaticResource with that name (which happens
to be a BitmapImage).

This isÃÂ an error that popped up with afterÃÂ setting option strictÃÂ to on
ÃÂ
option strict disallows late binding
ÃÂ
The error isÃÂ on the field in red
If customer_data_reader("CustID") = (customer_bindingsource.Current("CustID") ThenÃÂ
ÃÂ
ÃÂ
ÃÂ
ÃÂ
i was looking at this but i cannot find what type this is exactly
ÃÂ
If CStr(customer_data_reader("CustID"))ÃÂ = Ctype(customer_bindingsource.Current("CustID"), ????????) ThenÃÂ
ÃÂ
ÃÂ
It is a field, but how would i set the type for this?
Or do i need to do something different?
ÃÂ
Thanks
Jeff

3 days ago (thanks to Olaf) I was able to make progress with binding a data collection to a DataGrid. Since then I have searched the web in vain for a VB example to
enable me to switch off the DataGrid AutoGenerateColumns and enter my own columns and appropriate Paths to the Collection’s properties.
The following code works fine but I can’t work out how to enter my own individual columns etc. Can anyone give me the syntax for an example of one column please?
Why is it so difficult to find VB examples of WPF demos etc? (Nearly everything is in C#.)
I have some experience in Access VB so have picked VB in trying to use WPF. I would be grateful for any links to VB WPF resources.
Option Explicit On
Option Strict On
Imports System.Collections.ObjectModel
Partial Public Class DataGrid_FilledFromCodeBehind
Private _ocEng As ObservableCollection(Of EnPlayer)
Public Property EngSqd() As ObservableCollection(Of EnPlayer)
Get
Return _ocEng
End Get
Set(ByVal value As ObservableCollection(Of EnPlayer))
_ocEng = value
End Set
End Property
Private Sub Window_Loaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles MyBase.Loaded
_ocEng = New ObservableCollection(Of EnPlayer)()
For i = 0 To 4
EngSqd.Add(New EnPlayer(ref(i), names(i), ages(i), bat(i)))
Next
Me.DataCon

I have a usercontrol with one button in it. I want to set the text via a property getter setter using the INotifyPropertyChanged interface in code behind. I can get it to work if I set the DATACONTEXT in code behind in the CTOR like this : DataContext
= this; Everything works perfect.

But here's the problem. If I try to do this in xaml by defining an XMLNS which points to the folder this usercontrol is in, and then attempt to reference it as a resouce like this <local:XXXXXX <-------The XXXX which is the class name of
this control can't be found? Is that wierd? Can't a resource be itself? So that I can set the Datacontext in the XAML instead of code behind? I've tried to bind to relative source self, but cannot set the property (Event when I attempted
to created a dependency property)..... Just wondering how one sets up Datacontext to the same class?

ÃÂ I'm trying to late bind a generic datatype at runtime.ÃÂ Basically the assembly for this generictype is in a different directory (not a sub directory).ÃÂ So I can't use private probing.ÃÂ Its not reliably in the GAC either, so I can't depend on that.ÃÂ I can load several other types from this assembly but not this generic type.

In this interview, programming writer, McLean Schofield, demonstrates how to bind WPF controls to an entity data model, using Visual Studio 2010 Beta 1. You can also learn more in the topic: Walkthrough: Binding WPF Controls to an Entity Data Model.

In this interview, programming writer, McLean Schofield, demonstrates how to bind WPF controls to an entity data model, using Visual Studio 2010 Beta 1. You can also learn more in the topic: Walkthrough: Binding WPF Controls to an Entity Data Model.

Visibility property is a very powerful and yet often overlooked property available in both WPF and Silverlight. It enables you to set Visibility of certain UIElement objects to different states like: Visible, Collapsed and Hidden (not supported by Silverlight). This tutorial shows you how to use it and how to bind to Visibility property

I am a longtime .NET developer but for big applications and services. This is my first asp.net project and I have chosen MVC. I have a need for nesting a ListView within a ListView. In this simple catalog app, I have EF 4 Entities that are Categories, SubCategories, ItemTypes, and Items.

My goal is to display a 5 column layout of SubCategories with their ItemTypes below them in a ViewPage. I did just fine with it done out in C# as server directives such as:

I've been building web sites and for my next project I will be creating a web application. I use a 'BasePage' class in all my projects but, since web applications do not contain the 'App_Code' folder, what is the best place/practice for the 'BasePage' class?