Posts by Marcelo Nascimento • 403 points
16 posts
-
1
votes1
answer69
viewsQ: Timespan: count occurrences at a specific time
How could I assemble this method that counts the occurrences of a specific set of times in a period? public static int OcorrenciasDeHorarios( DateTime Inicio, DateTime Final, params string[]…
-
1
votes1
answer213
viewsQ: My app that has Listview with Arrayadapter is closing when creating the list
I’m looking to make a product listing, where each line contains more than one information per line. The problem is that the app throws exception (I believe) and closes when I click the button that…
-
1
votes1
answer89
viewsQ: Listview error with Arrayadapter and Custom View
I’m looking to make a product listing, where each line contains more than one information per line. The problem is that the app throws exception (I believe) and closes when I click the button that…
-
4
votes4
answers6318
viewsA: How to display combobox-related value in the textbox?
I’m guessing multiple items, so you better work with one List and for each item create an object. Class example for items: private class Item { public string Autor {get; set;} public string Editora…
-
0
votes0
answers701
viewsQ: Which encoding to use for CMD script?
Windows Command Prompt uses an ASCII table different from ours, which even I don’t know what it is. So much so that a batch with special characters when printed on the screen looks weird: Opção de…
-
2
votes1
answer465
viewsQ: How to play a stream streaming mms on ASP NET?
I use the Microsoft Encoder to transmit a video via protocol MMS. The video is streamed by streaming. It is the footage of an event being streamed synchronously to the network (for the time being…
-
3
votes1
answer965
viewsQ: How to simplify a foreach by a Linq expression - Lambda
Performance is not an issue in my project, I want to know a simpler and readable replacement for my foreach using Linq and Lambda (if possible). // 'DiscoVirtual' é uma classe // 'this.HDs' é um…
-
1
votes1
answer225
viewsQ: What is the best way to get the Radiobutton that was chosen by the user?
My program has 5 RadioButton in one of Panel that I didn’t rename and so it was Panel1, then only one can be chosen. I created a list of all the RadioButtons, after clicking on a button I tried to…
-
1
votes2
answers653
viewsA: Manipulating event button in various formats
In fact T_Agendamentos is not in, is in front of T_Principal, so much so that it has the close buttons, minimize. If you open T_Agendamentos.ShowDialog() it will not let you click on the back window…
c#answered Marcelo Nascimento 403 -
2
votes1
answer103
viewsQ: My program has performance issues
I made this program with the help of the ramaral user. It is a Windows Forms program and has to run another console. The point is that I need that instead of this other program to open the console,…
c#asked Marcelo Nascimento 403 -
3
votes1
answer247
viewsQ: Error reading from XML
I am wanting to read XML nodes and my code below is generating exception: XmlDocument arquivo = new XmlDocument(); arquivo.Load(@"Z:\Área de Trabalho\Windows XP.xml"); // Esta linha abaixo gera a…
c#asked Marcelo Nascimento 403 -
3
votes1
answer688
viewsQ: How to capture text that another console program writes on the screen
My Windows Forms program runs another console program. This second one writes messages on the screen while running. I want to know if you can prevent the execution of the other program from opening…
-
2
votes1
answer1489
viewsA: What command to delete partial in c++?
Specifically deleting already written texts has no way. But you can replace the content of what has already been written on the line where the cursor is. The tag " t" returns the cursor at the…
c++answered Marcelo Nascimento 403 -
3
votes1
answer201
viewsQ: How to use string in C++?
I’m having trouble dealing with string. #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <iostream> using namespace std; bool ArqExiste(string Arquivo) {…
-
1
votes2
answers157
viewsA: Does not display string, in C
If showing only one character of the sequence is "printf("%c", str2[n])". But if you want to display all the text of the array is "printf("%s", str2)".
-
2
votes1
answer601
viewsQ: XML Editing: How can I get the value of a property
I have a question to read and edit an XML in C Sharp. I need to get the value of the attribute "uuid" of the "Machine" node, this one is in the "Virtualbox" node. I also want the "Location" and…
c#asked Marcelo Nascimento 403