Posts by Camadas • 143 points
10 posts
-
0
votes1
answer45
viewsA: C# How do I prevent composite name from saving more than one space?
You can always do it this way. Having a private string to store the value, and when doing the set immediately remove the extra spaces. private string _name; [Required(ErrorMessage = "O nome completo…
-
1
votes0
answers43
viewsQ: SQL and xp_cmdshell
Good people, I have this little code in SQL: DECLARE @StringRTF VARCHAR(MAX), @Posh VARCHAR(8000) SET @StringRTF = (select traduçao from artigos where Cod_Art='01010066') select @StringRTF SET @Posh…
-
0
votes0
answers196
viewsQ: Convert RTF to String via SQL?
Good staff I have a small problem, I was asked to do it through SQL to convert a text made through a Richtextbox (VB 6) to normal string, but is that this Richtextbox also serves to by Chinese…
-
0
votes0
answers55
viewsQ: Textbox.Selectall() works when going through the keyboard, when simulo no
Good staff, I have a way for 3 Textbox to run when they win Focus: private void NumericKeyboardTextBox_GotFocus(object sender, RoutedEventArgs e) { e.Handled = true; this.textBoxForNumeric = sender…
-
0
votes1
answer33
viewsA: WPF Stretch Width does it right but not Height
Well I had to change things a little to make it work the way I wanted it to. Here’s the solution in case someone comes to have the same problems as me. Replaces Stackpanel with a grid, by…
-
0
votes1
answer33
viewsQ: WPF Stretch Width does it right but not Height
Good staff. I have a little problem and I can’t find where the "mistake" is. I’m trying to get the Window responsive, in which the Width keeps track of some window size, now the problem is even the…
-
0
votes1
answer42
viewsA: WPF how to give Focus to previous Window?
Well the situation was resolved, initiating the WindowWaitForWorker in his own Thread try { Thread newWindowThread = new Thread(new ThreadStart(() => { Dispatcher.Invoke(new Action(() => {…
-
1
votes1
answer42
viewsQ: WPF how to give Focus to previous Window?
Good staff, I have a window in Toolbox WindowStyle="ToolWindow" which only serves to give information to the user what is happening on BackgroundWorker But I am having a problem, I for example have…
-
2
votes1
answer46
viewsQ: C# WPF Binding a 2 Radiobuttons as per a Boolean
Good staff. <GroupBox Header="Tipo de operação" HorizontalAlignment="Left" Height="55" Margin="10,70,0,0" VerticalAlignment="Top" Width="296"> <Grid x:Name="gridOperationType">…
-
-1
votes1
answer315
viewsA: Timeout Android Connection and SQL Server using JDBC/JTDS
I don’t know if you’ve found a solution or not for what you wanted, but you could always try this solution given here :…