Posts by Amadeu Antunes • 3,331 points
161 posts
-
0
votes1
answer56
viewsQ: How to change the text of the BACK button in Xamarin.Ios
I wanted to change the Text that is on the BACK button on IOS What I tried to: public override void ViewDidLoad() { NavigationItem.BackBarButtonItem = new UIBarButtonItem { Title = "Teste" };…
xamarin.iosasked Amadeu Antunes 3,331 -
1
votes3
answers124
viewsA: How can I use or name constants for response type fields?
Constants These are fields that cannot be changed, and function only as reading variables. Example public const double PI = 3,14; The use of Enum is usually used when it comes to closed response…
-
0
votes2
answers101
viewsQ: How to create events in C#?
I have two classes one that has a list and I would like to have an event that every time that list was changed that event was called. public class Exemplo { List<string> lista = new…
-
0
votes2
answers247
viewsA: How to use values from each entry in Xamarin?
//Guarde as Entry Dentro de uma Lista List<Entry> entry = new List<Entry>(); entry.Add(new Entry() { Text = "Calcular", TextColor = Color.White, BackgroundColor = Color.Green,…
-
0
votes3
answers84
viewsA: What are the good practices of MVC with Entity Framework?
Yes I would put in Models. Or in a class library if it is common to more than one project
-
1
votes2
answers661
viewsA: Back to previous page - mvc page Razor
try this way or so return Redirect(ControllerContext.HttpContext.Request.UrlReferrer.ToString()); return Redirect(Request.UrlReferrer.ToString()); return…
-
2
votes3
answers282
viewsA: How can I do "Inner Join"
Using Linq from t1 in db.equipamento join t2 in db.tipo_indicador on t1.field equals t2.field select new { t1.field2, t2.field3}
-
0
votes1
answer84
viewsA: Two Touches on Listview - Xamarim Forms
I would use: The first time you make Itemtapped triggers a "timer" when you click again stops the "timer" and calls another method that you can even call Double Click 1º Tapgesturerecognizer - start…
-
2
votes2
answers173
viewsQ: How to Consume Less Memory in C#Runtime?
What I’d like to know is what are the most efficient ways to consume less memory in Runtime. Use of variables "Static" ? Create object with instants or a static class? Use of the Dispose() to free…
-
1
votes1
answer118
viewsQ: Is it possible to use the Entity framework from a class library?
Normally I use the Entity framework in an MVC project but I would like to know if I can use it from a class library project
-
2
votes1
answer44
viewsQ: How to add a span to an htmlhelper?
I have this helper <li>@Html.ActionLink("Registar", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink"})</li> I wanted to add this <span…
-
-2
votes3
answers578
viewsQ: How to put two action with HTTPPOST
How to put two controllers with HTTPPOST [HttpPost] public ActionResult Index(string Nomel, string Utilizador, string Password, string PasswordC) { } [HttpPost] public ActionResult Index(string…
-
1
votes1
answer722
viewsQ: Is it necessary to pay something to use Asp.net?
I heard that . Net is not free and I have to pay for Microsoft if I publish an application . net Is that true? If I want to install the technology on a web page server I have to pay something ?…
-
0
votes1
answer41
viewsA: Submitchanges() does not update data in Linq
The problem was in the database. Although no error occurs in visual studio the problem is that it did not have the updated model with that of the database.
-
0
votes1
answer41
viewsQ: Submitchanges() does not update data in Linq
internal bool AlterarCargo(string login, string Categoria) { db.Log = Console.Out; //tentei ativar para ver se encontrava o erro mas não ajudou nada. var categoria = from x in db.Categorias where…
-
3
votes3
answers2171
viewsA: Update page automatically?
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Expires" content="0">…
-
0
votes2
answers3844
viewsQ: How to delete commits from gitlab
You can delete commits from gitlab using git commands? I have tried through the visual studio of option > Team Explorer but without success
-
0
votes4
answers2882
viewsA: How to extract data from an SQL query in C#
using System.Data.SQLite; SQLiteConnectionm_dbConnection = new SQLiteConnection("Data Source=../../sqLite/" + "NomeBaseDados" + ".sqlite;Version=3;"); SQLiteCommand sqCommand =…
-
4
votes2
answers683
viewsQ: How to run INSERT only if the record does not exist?
I’d like to wear something like sqlite insert into table (column) values ('')if not exist;…
-
1
votes1
answer64
viewsQ: How to get the result of two sqlite tables
What I want to get is Currencies that belong to a particular country Name. Parents, code.Currencies, name.Currencies, Symbol. Currencies SELECT * FROM moedapais where alpha2Codes = 'AL'; SELECT *…
sqliteasked Amadeu Antunes 3,331 -
0
votes0
answers52
viewsQ: How do I access threadmain elements in other threads?
I’m with this mistake Threaded operation not valid: 'Lblcheck' control accessed to from a thread other than the thread where it was created. Task tarefa = Task.Run(() =>{ } .ContinueWith(t =>…
-
0
votes1
answer75
viewsQ: How to change Backgroundimage location in windows Forms
I have a Picturebox object that has an image set and behind it I put a background but I can’t change the background position pb.ImageLocation = Directory.GetCurrentDirectory() +…
-
0
votes2
answers124
viewsA: What’s wrong with this loop?
FtpWebRequest request = (FtpWebRequest)WebRequest.Create(new Uri(serverPath)); request.Method = WebRequestMethods.Ftp.DownloadFile; request.Credentials = new NetworkCredential(userName,…
-
1
votes0
answers70
viewsQ: How to get the server response efficiently?
I am creating a Client/Server application Acts as a chat so the server can send messages to the client and vise-versa. To send messages I use an event private void btnsend_Click(object sender,…
-
2
votes1
answer532
viewsA: How to check if an item has already been entered in a list in c#
if(turmas.Any(t => t.Text == text)) { }
c#answered Amadeu Antunes 3,331 -
0
votes0
answers46
viewsQ: What is the most efficient way to place objects within a list contained in another object?
public turma(string nomeTurma) { this.nomeTurma = nomeTurma; listaAlunos = new List<aluno>(); } public aluno(string nomeAluno, string dataDeNascimento, string nomeTurma) { this.nomeAluno =…
c#asked Amadeu Antunes 3,331 -
-3
votes1
answer532
viewsQ: How to check if an item has already been entered in a list in c#
There is the list classes Inside that list I put objects like gang Each object has (string)nameTurma.Text & a numerical value (int)numericUpDown1.Value I use the method addTurma to place objects…
c#asked Amadeu Antunes 3,331 -
4
votes1
answer264
viewsQ: How can I insert these characters into C#
How can I insert these characters into c# ┍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍┑ │ │ │ │ │ │ │ │ │ │ └╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍┚ I wanted to use them to create menus on…
c#asked Amadeu Antunes 3,331 -
0
votes1
answer171
viewsA: Image Responsive HTML
In bootstrap add to class img-Responsive <img src="cinqueterre.jpg" class="img-responsive" alt="Cinque Terre" width="304" height="236"> This class will apply max-width: 100%, height: auto, and…
-
1
votes2
answers18628
viewsA: How to insert a video into HTML?
<video width="320" height="240" controls> <source src="caminho para o video/movie.mp4" type="video/mp4"> </video>
htmlanswered Amadeu Antunes 3,331 -
7
votes2
answers90
viewsA: Does the unit of measurement "in" change on each device?
MS is a typographical measurement unit. Its name is related to the letter "M", where the base size of this unit derives from the width of the letter M in uppercase. They say 1 in equals…
-
8
votes3
answers4235
viewsA: Difference between Console.Write() and Console.Writeline()?
Console.Write() //Escreve o texto na mesma linha por exemplo: Console.Write("Olá "); Console.Write("Mundo"); Hello World Console.WriteLine() //Escreve o texto e logo a seguir quebra para a linha…
c#answered Amadeu Antunes 3,331 -
0
votes1
answer42
viewsA: How to color meta tags in PDF?
I blocked the PDF on roboots.txt I created another file .php And I put the following code: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;…
phpanswered Amadeu Antunes 3,331 -
0
votes1
answer42
viewsQ: How to color meta tags in PDF?
I have some links to PDF’s on my website and I checked that on google the information does not appear correct. So the question is: Can I set the meta description and title in PDF? With some search…
phpasked Amadeu Antunes 3,331 -
1
votes2
answers1578
viewsQ: How to change position of all matrix elements by changing the row number by the column?
I tried this algorithm but the result is the same after this exchange int[,] array = new int[10,10]; for (int l = 0; l < 10; l++) for (int c = 0; c < 10; c++) { int temp = array[l, c];…
-
2
votes2
answers346
viewsA: Assign function to variable?
I am not sure if this is what you are looking for but I need a little more detail to get a more detailed answer function file_name(){ $pg = $_SERVER["PHP_SELF"]; return pathinfo($pg,…
phpanswered Amadeu Antunes 3,331 -
3
votes2
answers9527
viewsA: Set Difference and Get in object-oriented programming
The method (GET) serves to recover a data and the method (SET) is used to modify a data In fact, there are many good reasons to consider using methods (getters and setters) instead of directly…
-
8
votes3
answers1793
viewsQ: How to divide integers and get value with decimal part?
I am trying to divide the following values into c#: Double media = 0.0; int soma = 7; int cont = 2; media = soma / cont; Is returning 3.…
-
0
votes1
answer117
viewsQ: How to copy the validation rules in vba?
If Range("L9") > (Range("I9") + Range("J9")) Then Range("B8:O8").Interior.Color = RGB(255, 0, 0) here i want to copy the validation rules if this happens End If…
vbaasked Amadeu Antunes 3,331 -
3
votes2
answers161
viewsQ: What utility has this way of accessing variable values
<?php $Bar = "a"; $Foo = "Bar"; $World = "Foo"; $Hello = "World"; $a = "Hello"; $a; $$a; $$$a; $$$$a; $$$$$a; ?> In what sense can I take advantage of this way of accessing php variables value…
-
0
votes1
answer53
viewsA: How to pick up the strings by picking up the line and changing the column
The problem was in the concatenate operator answer = Msgbox("Was found in :" + rgFound.Row, vbYesNo + vbExclamation, "incorrect stock") it must be so: answer = Msgbox("Was found in :" &…
-
0
votes1
answer53
viewsQ: How to pick up the strings by picking up the line and changing the column
Set rgFound = Range("B1:B1000").Find(Sheets("FormAluguer").Range("E10")) If rgFound Is Nothing Then resposta = MsgBox("Não encontrado.", vbYesNo + vbExclamation, "stock incorrecto") Else Dim mrange…
-
3
votes2
answers4786
viewsA: how do I remove some numbers after the comma in PHP
This would be a solution You use the function round which in the first parameter receives the number and in the second receives the optional number of decimal digits to round with the default being…
-
3
votes2
answers904
viewsQ: How to access properties of an object that is inside another object?
Deep down I want this output Console.WriteLine(cidade1.casas.dono); returns João using System; namespace arrayteste { public class cidade { public string nome { get; set; } public object casas {…
-
5
votes1
answer27154
viewsQ: Is it possible to comment several lines at once in VBA?
There is the equivalent of /**/ of c# to comment on vba instead of using plicas on each line 'Function Prodcet30(a As Double, b As Double) As Double 'If a = 0 Then ' MsgBox ("Por favor introduza o…
vbaasked Amadeu Antunes 3,331 -
14
votes2
answers861
viewsA: What is the best practice of styling an Email body?
Using linked CSS is easier to change colors and background if you keep the same extrusion. Linked CSS is the recommended model, because in this template all the code CSS is in a separate file and…
-
1
votes1
answer3134
viewsA: How to call another PHP page inside a PHP page
If I understand your question this should be your solution // Obter os recursos de cURL $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL =>…
phpanswered Amadeu Antunes 3,331 -
-4
votes1
answer1487
viewsQ: How I can access the command terminal android
How I can access the command terminal android I need to run commands on android but have no idea how to access the terminal
androidasked Amadeu Antunes 3,331 -
4
votes2
answers1008
viewsQ: How to transform this text into an array with name and description?
I have a.txt file. It has the name of the images and the description about them. So I wanted to do it this way: nome:descrição imagem1.jpg:"descrição exemplo 1"; I know how to read the php file. Now…
phpasked Amadeu Antunes 3,331 -
2
votes2
answers883
viewsA: Browse variable type php array
I tried it this way and it seems to work $json= '[ {"Nº da Parc":"1","Data do pagamento":"06/04/2017","valor a pagar":"R$ 50,00"}, {"Nº da Parc":"2","Data do pagamento":"06/05/2017","valor a…