Posts by kaamis • 545 points
26 posts
-
5
votes1
answer1247
viewsQ: Start Windows Service automatically
I created a Windows Service test, I have been researching and saw that to start it automatically you need to change the property StartType of the object serviceInstaller for Automatic, that the…
-
-2
votes1
answer331
viewsQ: Send email to different servers
I want my program, done in C# using a web service, to send an email every day with an attachment to some email addresses from different servers. I was watching a tutorial and I had a question. The…
-
2
votes2
answers468
viewsQ: C# system integration with two web services
I have to create an application that plays the role of a "bridge" between two web service that store information. I have to take information from one and send it to the other the way this "other"…
-
1
votes0
answers229
viewsQ: Use C# GDI to customize printing
First of all I posted a question with the same code but the question was different. Anyway, I have this code for printing files (it’s a class derived from the class PrintDocument of C#) it takes a…
-
1
votes0
answers435
viewsQ: Edit doc file through C#
I have a program that generates barcodes, inserts them in a file . txt and prints this file. What I want is for those barcodes to be inserted into a file doc with a paper label template (in this…
-
2
votes1
answer385
viewsQ: Class derived from Printdocument class C#
I have a class to print labels (Cprint), this class is derived from the class PrintDocument. It takes an image calling a method contained in the class Form1.cs. Follow the code of the class…
-
10
votes1
answer3855
viewsQ: Receiving data via serial connection C#
I need to do a program that has to send a command to a radio connected via serial port and this returns your ID. The connection to the port and the sending of data is ok, when I send something the…
-
1
votes0
answers590
viewsQ: Printing of picturebox contents c# in thermal printer (zebra) by serial connection
I received a request at work to print barcodes on the printer you have here (Zebra QL320 plus 1). The first step is done, I was able to adapt a code to generate the barcode; this is inserted in a…
-
0
votes1
answer532
viewsQ: Resize c# generated bitmap for better visualization
I have a program to generate bar code of the type Interleaved 2 of 5. I got the code from this one website but as it was posted in 2007 I did not get answer to my question. The program generates a…
-
1
votes0
answers446
viewsQ: Layout does not appear when program runs
I’m testing a code and I put a button and a picture box in the windows form however, when I will perform is not shown the button and picture box I placed. I checked and the property Visible is as…
-
1
votes2
answers1431
viewsQ: Make a program in c# that runs online
Hello, I’m a beginner in programming and I’ve touched a little with c# but very little! In my work was put a proposal for me to make a program in c#, html or java to store the release of company…
-
0
votes1
answer35
viewsQ: Class call without success
I have done practically the same way, changing only the names of the variables in another file of the same project. However, when arriving on the line to call the application class to and gives…
-
2
votes1
answer73
viewsQ: Method call within a class
I have this part of my code where I call a class to add '0' to a character group that must have 4 characters. StringTokenizer frase = new StringTokenizer(IMEIstring,"."); String first =…
-
3
votes1
answer477
viewsQ: IF condition is true but does not execute related code
I have my program that displays a message and in that same message the user must enter a code. I’m trying to validate whether he typed something or not, so I use the code: AlertDialog.Builder alert…
-
4
votes1
answer118
viewsQ: Class creation that returns a String
Hello guys I’m beginner in Java Android and I’m having a little problem, I’m trying to create a class that returns a String. I create the file .java and paste my code but gives the following error…
-
1
votes1
answer422
viewsQ: Insert hyphen ("dash" -) automatically while user type
Is there any way while the user type in a EditText insert hyphen (-) every 4 characters typed? In the same way some licenses work the dash (-) is already inserted automatically.
-
1
votes0
answers52
viewsQ: I installed Virtualbox on my Fedora 21 but every time I open a machine my note crashes completely
After many problems I managed to install Virtualbox in its latest version in Fedora21 also with its latest version of the kernel but when I open some virtual machine my note crashes totally and only…
-
1
votes1
answer889
viewsQ: Insert values from an array of bytes into an int array without converting them
I have this vector int: int[] vetor = new int [dataRegCodeToCompare.length]; and that byte vector : (which receives the "Digest" of another byte array) byte[] dataRegCodeToCompare =…
-
0
votes0
answers161
viewsQ: How to calculate the hash value of a specific byte array
How I calculate the hash value of a specific byte array? I’m using MD5 encryption and the code to calculate what I’m using is this: byte[] dataRegCodeToCompare = md5.digest(toHash); The variable…
-
0
votes2
answers871
viewsQ: How to check if the user has typed a special character in Edittext?
How can I check if the user has entered any special character (*, /, +, &, etc.) other than by if(srt.contains("@") || srt.contains("!") || ... ? Is there any more practical way? And if he…
-
3
votes1
answer1989
viewsQ: Change the theme of Activity
I try to change my theme to @android:style/Theme.Holo.Light in Androidmanifest but when the app runs on an emulator it stops working. I followed a video lesson and it’s exactly the same. I don’t…
-
3
votes3
answers500
viewsQ: How can I separate a string for example 36529874 from two to two without having any separation carcter for example 36.52.98.74
I’m taking the IMEI of the phone and I have to divide it into groups of 2 characters for me to convert them to hexa later. This string comes without separator, the numbers come together, for example…
-
0
votes1
answer1743
viewsQ: Use a variable in an Activity declared in another Activity
In my application I have a Sharedpreference variable that stores an int value for me. This value has to decrease as the user performs some actions, as if it were a counter. Let’s say that each time…
-
1
votes1
answer343
viewsQ: Error sending an int parameter through an Intent
Guys I’m making an app that gets a user code and it’s in hexadecimal. I convert it to decimal and insert it into Shared preference. So far so good. At the time he will send the parameter to the…
-
0
votes2
answers1481
viewsQ: Projects do not appear in Eclipse Package Explorer
My Android projects do not appear in Eclipse Package Explorer. What must I do to make them appear?
-
3
votes1
answer1919
viewsQ: Perform an action only when the app starts for the first time after installation
I’m making an android app that needs to show a message when starting for the first time. For example: the user installs my app and runs it. In this run, the app shows a message for the app to get a…