Click here to Skip to main content
15,916,412 members

Comments by Jo_vb.net (Top 151 by date)

Jo_vb.net yesterday View    
We cannot see the source code which causes the error, so don't expect too much feedback.
Jo_vb.net 27-May-24 15:07pm View    
Deleted
with btnUnload_Click

try to add
bmi = null;
Jo_vb.net 27-May-24 8:04am View    
On website from Dave's link, there is another link
To see an example of how the Person class can be used to support TwoWay binding, see
Control When the TextBox Text Updates the Source.
https://learn.microsoft.com/en-us/dotnet/desktop/wpf/data/how-to-control-when-the-textbox-text-updates-the-source?view=netframeworkdesktop-4.8

Look for "UpdateSourceTrigger"

<textbox>
<textbox.text>
<binding source="{StaticResource myDataSource}" path="Name"
UpdateSourceTrigger="PropertyChanged">

Jo_vb.net 27-May-24 6:26am View    
Good to know, thank you.
Jo_vb.net 26-May-24 13:49pm View    
Your link shows:

public string PersonName
{
get { return name; }
set
{
name = value;
// Call OnPropertyChanged whenever the property is updated
OnPropertyChanged();
}
}

Just for me to understand:

Why don't they use
OnPropertyChanged("PersonName");