Click here to Skip to main content
15,888,144 members
Home / Discussions / C#
   

C#

 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Eddy Vluggen29-Apr-18 0:29
professionalEddy Vluggen29-Apr-18 0:29 
QuestionSend data to remote server using TCPClient Pin
Carmen_Mundi26-Apr-18 8:07
Carmen_Mundi26-Apr-18 8:07 
AnswerRe: Send data to remote server using TCPClient Pin
Richard Deeming26-Apr-18 8:21
mveRichard Deeming26-Apr-18 8:21 
GeneralRe: Send data to remote server using TCPClient Pin
Carmen_Mundi26-Apr-18 8:55
Carmen_Mundi26-Apr-18 8:55 
GeneralRe: Send data to remote server using TCPClient Pin
Gerry Schmitz26-Apr-18 10:25
mveGerry Schmitz26-Apr-18 10:25 
QuestionCould not find a part of the path c# in Internet explorer Pin
Member 1204569226-Apr-18 1:29
Member 1204569226-Apr-18 1:29 
AnswerRe: Could not find a part of the path c# in Internet explorer Pin
Richard Deeming26-Apr-18 3:14
mveRichard Deeming26-Apr-18 3:14 
Questiondisabling a textbox at intialization in wpf/C# Pin
jhoga25-Apr-18 4:27
jhoga25-Apr-18 4:27 
I'm stumped I have two programs. I'm using the same code in both. It works in one and not in the other. Anybody have any idea what could be causing this?
error:
System.NullReferenceException: 'Object reference not set to an instance of an object.'
tbQ2 was null.
code:
private void Btn1_Checked(object sender, RoutedEventArgs e)
       {

           Qtype = "LIKE";
           Qpre = " '";
           Qpost = "%'";
           tbQ2.IsEnabled = false;
       }

THE XAML code for the wpf is.
<StackPanel Margin="10,0,0,0" Grid.Column="0" Grid.Row="2">
           <RadioButton x:Name="Btn1" Content="Starts With" GroupName="QT" HorizontalAlignment="Left" VerticalAlignment="Top" Foreground="White" IsChecked="True" Checked="Btn1_Checked"/>
           <RadioButton x:Name="Btn2" Content="Contains" GroupName="QT" HorizontalAlignment="Left"  VerticalAlignment="Top" Foreground="White" Checked="Btn2_Checked" />
           <RadioButton x:Name="Btn4" Content="Equals" GroupName="QT" HorizontalAlignment="Left"  VerticalAlignment="Top" Foreground="White" Checked="Btn4_Checked"/>
           <RadioButton x:Name="Btn6" Content="Is Between" GroupName="QT" HorizontalAlignment="Left"  VerticalAlignment="Top" Foreground="White" Checked="Btn6_Checked"/>
       </StackPanel>

And:
<textbox x:name="tbQ2" grid.column="2" horizontalalignment="Left" height="23" grid.row="5" textwrapping="Wrap" text="" verticalalignment="Top" width="111" background="LightBlue" margin="0,3,0,0" isenabled="True">
AnswerRe: disabling a textbox at intialization in wpf/C# Pin
Richard MacCutchan25-Apr-18 5:04
mveRichard MacCutchan25-Apr-18 5:04 
GeneralRe: disabling a textbox at intialization in wpf/C# Pin
jhoga25-Apr-18 5:15
jhoga25-Apr-18 5:15 
GeneralRe: disabling a textbox at intialization in wpf/C# Pin
jhoga25-Apr-18 5:50
jhoga25-Apr-18 5:50 
QuestionHow to delete row(s) from a database view and two of the linked tables? Pin
Member 1378393524-Apr-18 21:58
Member 1378393524-Apr-18 21:58 
AnswerRe: How to delete row(s) from a database view and two of the linked tables? Pin
Richard Deeming25-Apr-18 1:31
mveRichard Deeming25-Apr-18 1:31 
AnswerRe: How to delete row(s) from a database view and two of the linked tables? Pin
Gerry Schmitz25-Apr-18 6:17
mveGerry Schmitz25-Apr-18 6:17 
Questionabsolute-text-location-multiline Pin
Member 1368201324-Apr-18 19:23
Member 1368201324-Apr-18 19:23 
AnswerRe: absolute-text-location-multiline Pin
BillWoodruff24-Apr-18 22:28
professionalBillWoodruff24-Apr-18 22:28 
QuestionSubscribe to an event through COM GetEvent return null Pin
aymen Tn24-Apr-18 5:45
aymen Tn24-Apr-18 5:45 
AnswerRe: Subscribe to an event through COM GetEvent return null Pin
Gerry Schmitz24-Apr-18 7:34
mveGerry Schmitz24-Apr-18 7:34 
GeneralRe: Subscribe to an event through COM GetEvent return null Pin
aymen Tn24-Apr-18 22:05
aymen Tn24-Apr-18 22:05 
QuestionTransfer and synchronize sqlite db to android device Pin
Member 1053274823-Apr-18 11:14
Member 1053274823-Apr-18 11:14 
AnswerRe: Transfer and synchronize sqlite db to android device Pin
Maciej Los23-Apr-18 20:12
mveMaciej Los23-Apr-18 20:12 
QuestionHow to Get Values from XML in COMBO BOX Pin
Member 1377710422-Apr-18 17:10
Member 1377710422-Apr-18 17:10 
AnswerRe: How to Get Values from XML in COMBO BOX Pin
OriginalGriff22-Apr-18 20:01
mveOriginalGriff22-Apr-18 20:01 
GeneralRe: How to Get Values from XML in COMBO BOX Pin
Member 1377710422-Apr-18 22:14
Member 1377710422-Apr-18 22:14 
GeneralRe: How to Get Values from XML in COMBO BOX Pin
OriginalGriff22-Apr-18 22:27
mveOriginalGriff22-Apr-18 22:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.