Posts by mateusalxd • 2,768 points
68 posts
-
3
votes1
answer3190
viewsA: Open MDI form and close one when opening another?
To do this you can use the property Openforms, which is a collection with open forms, follow an example of how to use: using System.Windows.Forms; public partial class frmPrincipal : Form { public…
c#answered mateusalxd 2,768 -
1
votes1
answer1063
viewsA: How to make a filter using LIKE in int type fields in a Dataview?
In that case you need to convert your column to String, doing so: dv = New DataView(dt, "CONVERT(Pedido, 'System.String') like '%" & txtProcura.Text & "%'", "Pedido asc",…
vb.netanswered mateusalxd 2,768 -
1
votes1
answer287
viewsA: How to retrieve the click on an array of buttons
You can use a single event generated for all buttons and within that event you check who fired it, something like this: private void botoes_Click(object sender, EventArgs e) {…
-
1
votes1
answer220
viewsA: Problem with parameters in Sqlcommand
Probably your problem is here: novoLogin.Parameters.Add(@usuario, SqlDbType.VarChar).Value = usuario; novoLogin.Parameters.Add(@senha, SqlDbType.VarChar).Value = senha; You should use the double…
-
8
votes1
answer5118
viewsA: Define relationship between tables in Mysql
Apparently I saw no problem in your tables, but to do what you want it is necessary to create one more, for example: TABELA LISTAS | id | id_usuario | id_video | Then you’d have something like this:…
-
4
votes3
answers516
viewsA: Column outside the SELECT WHERE condition
Another alternative would be to use CROSS APPLY or OUTER APPLY, both perform a function or query about the result of a select, for example: Consider the tables Tabela Cliente | Id | Nome | | 1 |…
-
8
votes1
answer6038
viewsQ: Implications of using Inner Join and left Join in a single select
I have some stored procedures in a SQL Server 2008 R2 database, these stored procedures have several joins, in some cases I used in it select, Inner Join and left Join, for example: Tabela Pessoa |…
-
1
votes2
answers406
viewsA: Windows form c# identify which Bindingnavigator button was clicked
The component BindingNavigator has several items, these items have individual properties and events, for example if you click on the item that has a + and is on the palette Properties, you will see…
-
20
votes1
answer2918
viewsA: How to translate Android app?
To make your application work with multiple languages, you must create folders in your project values according to the language and region of interest, the languages are identified by two…
androidanswered mateusalxd 2,768 -
1
votes2
answers191
viewsQ: Error Log Generation Aspects by XML
I have an application developed in C# that uses an SQL Server database, this application is made available through a virtualized application server, I do not have direct access to the database nor…
-
3
votes1
answer862
viewsA: Progress bar in windows c#Taskbar
Considering the image you posted, I believe you are using Windows 7, a solution to your problem would be to use the component Windows 7 Progress Bar, downloadable here, It is distributed with…
c#answered mateusalxd 2,768 -
1
votes1
answer4105
viewsA: Calculator using Java Socket
The problem in your code is time to send and receive the data, in the client you are using: dados.writeInt(operacao); dados.writeDouble(num1); dados.writeDouble(num2); And on the server: num1 =…
-
1
votes2
answers243
viewsA: How can I create a Datagridview with Mongodb?
Supposing the name of DataGridView be it grdDados, you can do the following: private void frmListaCli_Load(object sender, EventArgs e) { var consulta = this.getTodosClientes(); grdDados.DataSource =…
-
1
votes1
answer162
viewsA: List non-visual component
As posted in the comments by the author himself, the code below lists all the non-visual components of a form. private IEnumerable<Component> EnumerateComponents() { return…
-
0
votes3
answers5780
viewsA: Form opening another form within a splitcontainer
Note: I know the question is old, but I believe the answer can help other users. Introducing A solution to this question would be to use Events, events allow classes or objects to notify other…
-
4
votes1
answer7292
viewsA: Generate random number when activating spreadsheet in Excel
Each spreadsheet of an Excel file has an event called Activate, that runs when the spreadsheet is activated, you can use that event and generate the random numbers in it. Open your Excel file and…
-
9
votes2
answers1446
viewsA: Remove String Connectors with Regular Expression
You can use the following pattern: String padrao = "(\\w)(\\s+)(e|do|da|do|das|de|di|du)(\\s+)(\\w)"; This pattern was divided into five groups, these follow the order: any letter or number + one or…
-
2
votes1
answer1566
viewsA: Print integer combinations in ascending order
You can solve your problem using recursiveness, follow a class in adapted Java of that link. public class Combinacao { private int numeros[]; private int posicoes; private int resultado[]; private…