Posts by Emerson Moraes • 323 points
20 posts
-
1
votes2
answers1503
viewsQ: Find out what type a CNPJ verifier is
I have a class where I can find out if the CNPJ entered by the user is valid or not. What I’d like to do, and what I’m not getting, is show the user which are the last two valid digits he should…
-
1
votes1
answer450
viewsQ: Block if you just type a word into a Textbox
I work with C# - WPF and have a field where the client can enter his full name. I’d like to validate where it can’t just type the first name if it doesn’t open a blocking message. I mean, he would…
-
3
votes1
answer369
viewsQ: First letter of menu underlined for shortcut - WPF
I am trying to put a shortcut on my system menu in WPF. In Windows form, just change the text property by putting the "&" before, but in WPF does not use "text" but "content" Somebody help me?…
-
0
votes1
answer49
viewsQ: Form derailed after adding a Scrollviewer
I had a form ready in my VS, After it was ready, I realized that I would need to add a Scrollbar. Searching and saw that to solve my problem was just add a Scrollviewer. When I add, my form gets all…
-
2
votes1
answer276
viewsQ: How to style a WPF application to look like Windows 8 applications (Metro style)
I work in a company where they use a system that is very reminiscent of Windows 8, even though I am on Windows 7 machine. What I needed to do is to develop a desktop system on my computer (Windows…
-
1
votes2
answers187
viewsQ: Doubt about using in Visual Studio
I create a new project but can’t put those using as in this example below. He appears as in the other code below... Help me please =/ using System; using System.Collections.Generic; using System.IO;…
-
-3
votes1
answer61
viewsQ: Starting in the language C#
Guys, I’m starting in C# now and would like to know what I need to do to leave my Desktop systems with the appearance of Windows 8? For example the reference: using Windows.UI I’m expecting some…
c#asked Emerson Moraes 323 -
0
votes1
answer268
viewsQ: Questions under development of Desktop C#
I’m starting to program in c# and I’m having some doubts. I would like to know where to start, for example: I have a desktop system that I use in one company, I needed to develop another in the same…
-
1
votes1
answer758
viewsQ: List more than one table for a single sign-up screen
I have resume registration screen as shown below. What I needed to do is just register, but the problem is that I have three registration on this screen, personal information, phones and emails. The…
-
0
votes1
answer683
viewsQ: Doubt about canvases of a questionnaire (quiz)
I’m making an APP like this from the image below. My question is how to do, for example as we can see, has 35 questions and is the first being answered, in which case has to have 35 Activity? What…
androidasked Emerson Moraes 323 -
0
votes2
answers1610
viewsA: Android with PHP Web Service
Httpclient method which is very simple, I will put an example. It has get methods that does not send any parameters to the Web Service and has the Post that sends parameters, (as many as you…
-
0
votes2
answers85
viewsA: Problems with Insert in an Android project in Java
What Voce needs @wladyband is to just instantiate its Sqlitehelper class and use the getWriteableDatabase method. I’ll put an example The Sqliteopenhelper class provides getReadableDatabase() and…
-
2
votes2
answers548
viewsQ: Pass String array by parameter to tela2
I am following a tutorial on the Internet and I came up with a small doubt that is the following. In the tutorial, I place items from a String array in a listview and in it I can select various…
androidasked Emerson Moraes 323 -
0
votes1
answer143
viewsA: Notificationmanager causes java.util.Arraylist error cannot be cast to java.lang.Charsequence
Try to put it that way: NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); Notification nt = null; nt = new Notification(R.drawable.ic_launcher,…
androidanswered Emerson Moraes 323 -
0
votes2
answers83
viewsA: Networkonmainthreadexception error
I was having the same problem, just implemented it in the onCreate method and ran normally StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();…
androidanswered Emerson Moraes 323 -
1
votes1
answer140
viewsQ: Nullpointerexception on login screen
I have this Nullpointerexception error and I don’t know pq. I have only one login screen, one dao that takes two parameters, email and password: java.lang.NullPointerException at…
-
0
votes1
answer59
viewsQ: Problem in the organization of the data of a Listview - Basedapter
I’m having a little problem organizing the personal data of an external Mysql database. Like, I created a Infopeoplesdapter class inheriting from Basedapter where I pick up name, address,…
-
1
votes1
answer461
viewsQ: Pick up various values and play within a variable
I needed to get all the answers inside Boolean respostas1 and play inside another variable so I can send it to the Mysql database. The way I did, he’s returning me all false. For example, I have 4…
-
2
votes1
answer431
viewsQ: Runtimeexception: Parcelable encountered Ioexception
I can’t understand, let alone run my app.. Someone can give me a light? @Override public void onClick(View arg0) { try{ Intent i = new Intent(Activity_Questionario.this,…
-
1
votes1
answer692
viewsQ: Problems sending data from one Listview to another Activity
Questionadapter public class Questionaadapter extends Basepter Implements Onclicklistener { private List<Pergunta> lista; private Context context; public PerguntaAdapter(Context context,…