Posts by Brewerton Santos • 470 points
33 posts
-
1
votes2
answers146
viewsA: Error concatenating string from path
About Error CS0029: The compiler requires an explicit conversion. For example, it may be need to convert a value r to the same type as a value l. Or, you must provide conversion routines to support…
-
1
votes1
answer39
viewsA: how to make two inwords in php
You only need a connection string, in case the $sql will look like this: $sql = "insert into produtos ...; insert into preco ...;"; mysqli_multi_query($conexao, $sql); Your error was referring the…
phpanswered Brewerton Santos 470 -
1
votes2
answers31
viewsA: Error in condition return
Hello! I suggest that while learning the language carefully follow the form but simple, see the example below: #include <stdio.h> int main (void) { //variaveis int dia, mes, ano; //inicio…
-
0
votes3
answers125
viewsA: Save or remove accent on a Textareafor
Consider checking the settings related to character globalization, see the solutions below: 1 - In your html, check if there is a tag related to character conversion, as in the example below:…
-
4
votes1
answer57
viewsA: Make the program return to the beginning of a conditional if the condition is not true
Change the signs < for >= in the first condition. Then change the location of the exits and within the condition change the value 60 for 59 since minutes count from scratch. Your structure…
c#answered Brewerton Santos 470 -
-1
votes1
answer497
viewsQ: virtualapp/didlogical - What is it?
Hello, I was researching on other ways to manage credentials of the programs I use (github for example), I found and was editing on Windows Credentials/Generic Credentials, found a Redential of…
-
0
votes3
answers95
viewsA: If counter in a text file
Hi, change the size of str to 4 and the result will be as expected. #include <stdio.h> #include <stdlib.h> #include <string.h> void main() { FILE *arq; char str[4]; int count = 0;…
-
0
votes1
answer107
viewsQ: Error generating bar graph: 'height' must be a vector or a Matrix
Hello! When building a bar chart on R Language using the RStudio I came across the following mistake: Error in barplot.default(database$results, main = "EvasionChart", xlab = rotulo[1], : 'height'…
-
0
votes1
answer107
viewsA: Error generating bar graph: 'height' must be a vector or a Matrix
Analyzing the line below we will see that the error code is pointing out that the xlab and ylab that are being populated with the data contained in database$curso and database$results has no…
-
2
votes4
answers2171
viewsA: CSS, Bootstrap4 Cards Side by Side
Hello!! So... At first we need to understand how html works: html works in a schema that displays one element per line (no css), so by default of it, each control created corresponds to a line and…
-
0
votes1
answer39
viewsA: Get x:Name of control by clicking
Looking at Stackoverflow(American community) I found an answer, a method that gets the name of the element and checks its type, returning its name. C# public static string ObterNome(object sender) {…
-
0
votes1
answer39
viewsQ: Get x:Name of control by clicking
Hello, I have a stackpanel with a sequence of Abels and would like to capture the x:Name of the controller in the Label Mouseup event. XAML: <StackPanel Background="#FF405089"…
-
0
votes2
answers63
viewsA: Error setting a background to a label and placing an image above the background of the label
Look, the way you’re using the image is wrong. For a Background, you will need to define in css that that image is a background (no need to call it in html), you will also need to define the…
-
1
votes1
answer199
viewsA: Port not found - Arduino IDE on Linux Mint
Hello! After researching a little further, I found a solution that falls well for situations where several errors occurred during the installation and the IDE was not installed completely, or, as…
-
0
votes1
answer199
viewsQ: Port not found - Arduino IDE on Linux Mint
Recently I started using Arduino and went through a migration process(windows to linux Mint), I came across a frequent error where the Arduino was not recognized, its port was inaccessible,…
-
2
votes1
answer223
viewsQ: Livechart - Fill Cartesian Chart with Sql Server Query Data
I have a Datacontext set in a Cartesianchart which does not display the data... no error is displayed, just think I’m making wrong use of the Datacontext and I can’t fix it, I’m using the package…
-
1
votes2
answers2068
viewsA: Access localhost
Restore your locahost, you probably read wrong about the SMTP port, it is configured within PHP and not localhost. an example line to configure SMTP in php: $mail->Port = 465; If you have more…
-
0
votes0
answers60
viewsQ: Generate a new control for each listed item
Hello, based on the code below, I would like to know how to generate a new control( in my case a grid) for each existing item in my Listbox... My Listbox: <ListBox Height="380.585"…
-
2
votes2
answers2666
viewsA: Pass values from one Object to another form C#
Hello, I believe that global variables are the solution to this: public class Main { public static string User_ID { get; set; } } a public variable Static(global) can be called in other application…
c#answered Brewerton Santos 470 -
2
votes2
answers171
viewsQ: Delete and relocate index
How should I associate data to have a db SQL Server 2017 with a good performance. I am doing a data association and being new in this area I feel a little lost. I have the following structure as an…
-
0
votes2
answers85
viewsA: Change column data
Instead of using the Update command, it would look something like this: "UPDATE [Nome da Tabela SET [Nome do campo] = [Expressão] WHERE Cadastro = false" So sql will overwrite the field values with…
-
2
votes2
answers85
viewsA: Bootstrap is a CSS?
Yes, Bootstrap is a framework developed in pure CSS. There are no contraindications in this case, it makes use of certain HTML elements and CSS properties that require the use of HTML5 Doctype.…
-
0
votes1
answer196
viewsA: Doubt about Visual Inheritance between Windows in WPF
Hello, here’s an explanation of my view on visual heritage and Wpf User Control. How to create a wpf Visual Heritage It is very simple and fast to make an inheritance within wpf, select the item,…
-
0
votes1
answer125
viewsA: Effect on WPF window opening
Hello, the animation you want can be created from the following structure: <Grid x:Name="Background"> <Grid.Triggers> <EventTrigger RoutedEvent="Grid.Loaded">…
wpfanswered Brewerton Santos 470 -
1
votes1
answer365
viewsQ: Fill Linechart(Line chart) wpf with data from a sql server query
Hello, I’m having trouble finding a solution to fill my linechart with data from a query, my connection class is complete and working, but I don’t know how to apply on Chart, I don’t know how to…
-
0
votes2
answers3424
viewsA: How to clean Listbox
The correct command would be: List.Items.Clear Put your Listbox name instead of List The example you used: lbxResumo.ClearSelected(); clears only the selected item.…
-
1
votes2
answers409
viewsA: Using Dvexpress Gridcontrol
Although confusing the question, I believe you want to get a certain datagrid field value and send it to a textbox, the event is called Row.Selected, I will explain better: Suppose we have a table…
-
1
votes1
answer641
viewsA: Remove border from WPF window
Hello, The feature you intend to manipulate can be called two ways. In Controles Some controls of WPF already own the property Border. Ex: Listbox, Button, Gridview. Controls with this property can…
-
0
votes1
answer45
viewsA: Use variable in Parameters
Your question is totally vague, but try the following: CM.Parameters.Add("@desnome", SqlDbType.Int); CM.Parameters["@desnome"].Value = USU.xdes_nome; for the above example to work, you need to check…
c#answered Brewerton Santos 470 -
0
votes1
answer91
viewsA: How to manipulate data inside pages using tabcontrol
So, based on the information you’ve passed on, suppose we have the aba1 with the following items: gridview - Gridteste; 2 columns - column, column 1; button - send; in aba2: 2 textbox - id, name;…
c#answered Brewerton Santos 470 -
0
votes2
answers111
viewsA: Textboxfor with white spaces
I believe the error is here: [StringLength(80, ErrorMessage = "Informe no máximo 80 caracteres")] you are setting the size of the string, forcing the system to complete the missing amount, try to…
-
0
votes2
answers54
viewsA: Passing values between screens
You can create a publish static string that takes the value and call in the next window, it’s quite simple. example: public class main{public static string name ="";} to call her: string valor =…
-
1
votes1
answer83
viewsQ: Insert data into db sql server
I’m having problems connecting my project to the database, I do not understand the reason, I’ve looked at several tutorials, use sql server 2017, I can access db in an application, but the site is…