Click here to Skip to main content
15,905,325 members
Home / Discussions / C#
   

C#

 
QuestionHow to retrieve SQL Server CE toolbox in Visual Studio 2019? Pin
Alex Dunlop5-May-21 6:51
Alex Dunlop5-May-21 6:51 
AnswerRe: How to retrieve SQL Server CE toolbox in Visual Studio 2019? Pin
Gerry Schmitz5-May-21 8:24
mveGerry Schmitz5-May-21 8:24 
QuestionGet the value from a checklistbox Pin
Luis M. Rojas5-May-21 6:35
Luis M. Rojas5-May-21 6:35 
AnswerRe: Get the value from a checklistbox Pin
Gerry Schmitz5-May-21 8:19
mveGerry Schmitz5-May-21 8:19 
GeneralRe: Get the value from a checklistbox Pin
Luis M. Rojas5-May-21 11:01
Luis M. Rojas5-May-21 11:01 
GeneralRe: Get the value from a checklistbox Pin
Gerry Schmitz5-May-21 11:18
mveGerry Schmitz5-May-21 11:18 
GeneralRe: Get the value from a checklistbox Pin
Richard MacCutchan5-May-21 21:16
mveRichard MacCutchan5-May-21 21:16 
AnswerRe: Get the value from a checklistbox Pin
Alan N6-May-21 4:06
Alan N6-May-21 4:06 
GeneralRe: Get the value from a checklistbox Pin
Luis M. Rojas7-May-21 3:30
Luis M. Rojas7-May-21 3:30 
QuestionHow convert SQL Server Pivot functionality in C# uisng LINQ Pin
Mou_kol3-May-21 5:45
Mou_kol3-May-21 5:45 
QuestionRe: How convert SQL Server Pivot functionality in C# uisng LINQ Pin
Eddy Vluggen3-May-21 6:10
professionalEddy Vluggen3-May-21 6:10 
AnswerRe: How convert SQL Server Pivot functionality in C# uisng LINQ Pin
Mou_kol3-May-21 6:50
Mou_kol3-May-21 6:50 
GeneralRe: How convert SQL Server Pivot functionality in C# uisng LINQ Pin
Eddy Vluggen3-May-21 6:57
professionalEddy Vluggen3-May-21 6:57 
GeneralRe: How convert SQL Server Pivot functionality in C# uisng LINQ Pin
Gerry Schmitz3-May-21 7:49
mveGerry Schmitz3-May-21 7:49 
GeneralRe: How convert SQL Server Pivot functionality in C# uisng LINQ Pin
Eddy Vluggen3-May-21 11:23
professionalEddy Vluggen3-May-21 11:23 
GeneralRe: How convert SQL Server Pivot functionality in C# uisng LINQ Pin
Gerry Schmitz3-May-21 21:56
mveGerry Schmitz3-May-21 21:56 
GeneralRe: How convert SQL Server Pivot functionality in C# uisng LINQ Pin
Pete O'Hanlon3-May-21 23:18
mvePete O'Hanlon3-May-21 23:18 
GeneralRe: How convert SQL Server Pivot functionality in C# uisng LINQ Pin
OriginalGriff4-May-21 1:34
mveOriginalGriff4-May-21 1:34 
QuestionBinding Textblock Text and Textbox Text Pin
mnkdrt3-May-21 4:09
mnkdrt3-May-21 4:09 
Hello,

I am teaching myself xaml and C# and have a question which is probably trivial but I cannot find a resource that is pointing me in the correct direction. If I have a simple app with a copy button, a textblock and a textbox is there a way to bind the textblock text to the entered textbox text? In other words the textblock text is predefined and will not change, once the user enters something in the textbox and hits copy the string copies to the clipboard with the textblock text and the entered textbox text i.e.:

What is your age:(this is the textblock static text) 14 years old (entered text in textbox)

XML
<Grid>
        <Button x:Name="button" Content="Copy" HorizontalAlignment="Left" Height="39" Margin="10,10,0,0" VerticalAlignment="Top" Width="110"/>
        <Grid HorizontalAlignment="Left" Height="287" Margin="138,10,0,0" VerticalAlignment="Top" Width="370">
            <TextBlock x:Name="textBlock" HorizontalAlignment="Left" Height="22" Margin="10,10,0,0" TextWrapping="Wrap" Text="Enter your age:" VerticalAlignment="Top" Width="87"/>
            <TextBox x:Name="textBox" HorizontalAlignment="Left" Height="22" Margin="113,10,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="247"/>
        </Grid>

    </Grid>


C#
public partial class MainWindow : Window
   {
       public MainWindow()
       {
           InitializeComponent();
       }

       private void button_Click(object sender, RoutedEventArgs e)
       {
           // I can achieve this with 2 list and a zip then easily building the stringbuilder or string.
           // Trying to see if a more efficient way to bind the textblock text and textbox entered text in xml
       }
   }

AnswerRe: Binding Textblock Text and Textbox Text Pin
Gerry Schmitz3-May-21 8:07
mveGerry Schmitz3-May-21 8:07 
QuestionDebug decompile - urgent project restore Pin
Ahmedtsadek2-May-21 19:05
Ahmedtsadek2-May-21 19:05 
AnswerRe: Debug decompile - urgent project restore Pin
OriginalGriff2-May-21 19:32
mveOriginalGriff2-May-21 19:32 
AnswerRe: Debug decompile - urgent project restore Pin
Kuolung19673-May-21 0:48
Kuolung19673-May-21 0:48 
AnswerRe: Debug decompile - urgent project restore Pin
Gerry Schmitz3-May-21 7:42
mveGerry Schmitz3-May-21 7:42 
GeneralRe: Debug decompile - urgent project restore Pin
Richard Andrew x643-May-21 10:32
professionalRichard Andrew x643-May-21 10:32 

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.