[Solved] vb.net late bindings issue even after setting the variable

note that you have to referance Microsoft.Office.Interop.Excel assembly: project>>add reference>> check Microsoft Excel x.xx Object Libary Imports Microsoft.Office.Interop Public Class Form1 Private exapp As Excel.Application Private xlwb As Excel.Workbook Private xlws As Excel.Worksheet Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load exapp = New Excel.Application xlwb = exapp.Workbooks.Add() xlws = xlwb.Worksheets.Add() xlws.Name = … Read more

[Solved] WPF C# Bind multiple treeViewItems isSelected to tabItem isSelected

using SelectedValue and SelectedValuePath. The TreeViewItem child and parent must have the same Uid. <Window x:Class=”WpfApp1.MainWindow” xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”> <StackPanel> <TreeView x:Name=”treeView” Height=”200″ SelectedValuePath=”Uid”> <TreeViewItem Header=”Letters-1″ x:Name=”tab1″ Uid=”Letters-1″> <TreeViewItem Header=”a” Uid=”Letters-1″/> <TreeViewItem Header=”b” Uid=”Letters-1″/> <TreeViewItem Header=”c” Uid=”Letters-1″/> </TreeViewItem> <TreeViewItem Header=”Letters-2″ x:Name=”tab2″ Uid=”Letters-2″> <TreeViewItem Header=”d” Uid=”Letters-2″/> <TreeViewItem Header=”e” Uid=”Letters-2″/> <TreeViewItem Header=”f” Uid=”Letters-2″/> </TreeViewItem> <TreeViewItem Header=”Letters-3″ x:Name=”tab3″ Uid=”Letters-3″> … Read more