hello guys... I have three tabs on which some of the GUI is same. So when I was done with tab1, I simple copied the some of the code in tab2, but off course changing some of the values and thier coordinates. But this act shows me above mentioned exception? Here is some of the code I copied.
<groupbox:GroupBox Header="Batch Details" Height="120" Width="430" Margin="0,10,800,0" >
<StackPanel>
<sdk:Label Height="28" Name="lblBatch" Width="50" Content="Batch Id:" Margin="-75,0,300,0"/>
<TextBox Height="20" Width="90" Margin="-130,-30,100,0" Name="txtBatch"></TextBox>
<sdk:Label Height="28" Name="lblCreatedBy" Width="65" Content="Created By:" Margin="-70,-30,0,0" />
<TextBox Height="20" Width="120" Margin="117,-30,0,0" Name="txtCreatedBy"></TextBox>
<TextBlock Height="20" Width="75" Margin="320,-27,0,0" Name="txtblkDate" Foreground="Blue">2011-05-12</TextBlock>
<sdk:Label Name="lblOperator" Height="28" Width="55" Margin="-365,0,0,0" Content="Operator:"></sdk:Label>
<TextBox Height="20" Width="100" Margin="-210,-25,0,0" Name="txtOperatorVal" IsReadOnly="True"></TextBox>
<TextBox Height="20" Width="240" Margin="140,-25,0,0" Name="txtOperatorVal2" IsReadOnly="True"></TextBox>
<sdk:Label Content="Approval: " Height="28" Width="55" Margin="-360,0,0,0"></sdk:Label>
<TextBox Height="20" Width="240" Margin="-65,-25,0,0" Name="txtApproval" IsReadOnly="True"></TextBox>
<TextBox Height="20" Width="100" Margin="285,-25,0,0" Name="txtApproval2" IsReadOnly="True"></TextBox>
</StackPanel>
</groupbox:GroupBox>
<groupbox:GroupBox Header="Batch Details " Height="120" Width="430" Margin="0,10,800,0">
<StackPanel>
<sdk:Label Height="28" Name="lblBatchOpr" Width="50" Content="Batch Id:" Margin="-75,0,300,0"/>
<TextBox Height="20" Width="90" Margin="-130,-30,100,0" Name="txtBatchOpr"></TextBox>
<sdk:Label Height="28" Name="lblCreatedByOpr" Width="65" Content="Created By:" Margin="-70,-30,0,0" />
<TextBox Height="20" Width="120" Margin="117,-30,0,0" Name="txtCreatedByOpr"></TextBox>
<TextBlock Height="20" Width="75" Margin="320,-27,0,0" Name="txtblkDateOpr" Foreground="Blue">2011-05-12</TextBlock>
<sdk:Label Name="lblOperatorOpr" Height="28" Width="55" Margin="-365,0,0,0" Content="Operator:"></sdk:Label>
<TextBox Height="20" Width="100" Margin="-210,-25,0,0" Name="txtOperatorValOpr" IsReadOnly="True"></TextBox>
<TextBox Height="20" Width="240" Margin="140,-25,0,0" Name="txtOperatorVal2Opr" IsReadOnly="True"></TextBox>
<sdk:Label Content="Approval: " Height="28" Width="55" Margin="-360,0,0,0"></sdk:Label>
<TextBox Height="20" Width="240" Margin="-65,-25,0,0" Name="txtApprovalOpr" IsReadOnly="True"></TextBox>
<TextBox Height="20" Width="100" Margin="285,-25,0,0" Name="txtApproval2Opr" IsReadOnly="True"></TextBox>
</StackPanel>
</groupbox:GroupBox>
So on tab2, it shows me a NullReferenceException thrown on GroupBox. Whats wrong? thnx
|