Posts by Emerson • 456 points
22 posts
-
0
votes1
answer45
viewsQ: How to shrink a large query - Postgresql
In Visual Studio, we have the possibility to shrink a large code, IE, visually decrease the size, as a way to facilitate reading, example: #region Seu código aqui... #endregion I would like to do…
-
0
votes2
answers132
viewsA: Permanent focus on a field - WPF
Using the function PreviewLostKeyBoardFocus textedit. private void textNome_PreviewLostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) { if (e.NewFocus != null &&…
-
0
votes2
answers132
viewsQ: Permanent focus on a field - WPF
I have an application with several fields, but I would like to leave the focus only on one specific and not allow the withdrawal of the same in any situation. Force the focus always in this field,…
-
2
votes1
answer159
viewsQ: Output of a method or event - C# / WPF
I am using a return to be able to leave the event textEstado_Validate. The problem is that when he leaves this event, he enters the textEstado_KeyDown. How can I make sure he doesn’t enter any other…
-
0
votes1
answer81
viewsQ: Run something after an animation - WPF
I have the following animation when I start my project: public ConfigInicial_Empresa() { InitializeComponent(); brush = (Brush)bc.ConvertFrom("#444"); window.Background = brush; DoubleAnimation…
-
0
votes0
answers43
viewsQ: Selecteditem no evento Mousedoubleclick
I have the following situation. A Usercontrol where I can choose a company to work, when I choose, I send it to the application title. My problem is that I can only choose the company with just one…
-
4
votes1
answer4227
viewsQ: Removing part of a string - C#
How can I remove my last characters from a string before reaching a certain character? For example: string url = "www.google.com/test"; I needed to remove the test word until I reached the "/"…
-
1
votes1
answer49
viewsQ: No automatic component alignments in Visual Studio
You know when you drag, for example, a textbox to one location and another to another location, and Visual Studio ends up automatically aligning for you, so that the form get more organized? I use…
-
2
votes1
answer153
viewsQ: Add selected lines from Gridcontrol to Observablecollection
I am trying to add my grid items to my Observablecollection but I am unsuccessful. I have a column that has the Checkbox that I put through the property ShowCheckBoxSelectorColumn. I have the…
-
0
votes2
answers215
viewsQ: Ignore dot in a Query
I am trying to run the following Query: select codigo from cliente where codigo ilike '%99.999.999%'; I thought by putting the ilike, he would ignore everything, points and accents but I was wrong.…
-
3
votes2
answers280
viewsQ: Help with Textbox / string parameters
I have this method where I would like to bring the IBGE. When I put Textbox as a parameter, it usually brings it, but the problem is that I am using a Library and cannot import Textbox. So I…
-
2
votes1
answer90
viewsQ: Information on Title - WPF
I have an application where the user can select the company to be worked on. When he selects, I would like this information to go to the Application Title... This is possible? The attribute Title is…
-
1
votes1
answer561
viewsQ: Information from a User Control to the Parent Window
I’m trying to send some information from my User Control to the title bar of the main screen that would be the parent window. The information I’m trying to send is the company selected from a…
-
2
votes1
answer755
viewsQ: Change the color of a line and take the selection of a Datagrid
I have a method where I can change the color of a line in my Datagrid. I followed through this link: Link The problem is being like taking out the selection from when it is painted. Type, go back to…
-
0
votes1
answer49
viewsQ: Error while clearing a Datagrid
After I saved my items that are on Datagrid in a database, I would like you to clean up. So I used it as follows: dg.Items.Clear(); But from there comes that mistake: Operation is not Valid while…
-
0
votes1
answer657
viewsQ: Select Rows from a Datagrid and send to an Array
I have a WPF application where I have a DataGrid with various information. I wish the user could choose multiple lines and store the line information in one array (or not) for me to send to another…
-
3
votes1
answer90
viewsQ: Problems with Message Dialog in the Key Down event
I put an event KeyDown in a field TextBox for when the user presses Enter, there must be some action. In this action, I’ve asked for a message to appear Dialog, but the problem is that if the user…
-
2
votes4
answers504
viewsQ: Filter numbers not yet registered via SQL
I’m trying to find the numbers that haven’t been entered in the bank yet. I have a client table, in it I have the fields codigo and nome. When the user registers the client, he puts the code…
-
1
votes1
answer197
viewsQ: Added multiple items in a Datagrid by List<>
I have two textbox. One for email and the other for notes. When the user clicks on the add button, it should be adding to my datagrid, but without success! How can I do this? As the user clicks on…
-
2
votes1
answer359
viewsQ: Better performance in a WPF system
How to leave a system in high performance? Follow a MVVM project pattern? I have the following XAML, but when I run it hangs in time to pass the focus to others textBox. Why? My system is too slow,…
-
5
votes1
answer129
viewsQ: Multiple component events in one method
I have several events of my textbox, the problem is that I have about 30 in my form. I wonder if there is any way for me to improve my code, reduce it by creating only one method to control all…
-
1
votes0
answers299
viewsQ: Binding in Textbox with Datagrid (WPF)
I have a Textbox where you get the customer id and I also have a Datagrid where he has some personal information. Well so far so good, what I’m not getting is to connect the two in the following…