132,726 Archived Topics
Remove Filter ![]() | |
Hello everyone, I have my code that is supposed to append an empty row to a table at runtime when a user presses the enter button. The code is working fine. here is the code if it helps: table.addKeyListener(new KeyListener() { @Override public void keyPressed(KeyEvent e) { if (e.getKeyCode() == … Software Development java | |
Hey is there any way to write out example: a b c.. aa ab ac.. ba bb bc.. ca cb cc... and like that for every character from keyboard To .txt file? Software Development vb.net | |
Okay hello everyone, so I'm using this class to protect app from user using hotkeys while form is running: Imports System.Runtime.InteropServices Imports System.Reflection Public Class KeyboardJammer Private Delegate Function HookCallback(ByVal nCode As Integer, ByVal wParam As Integer, ByVal lParam As IntPtr) As Integer Private Shared HookDelegate As HookCallback Private Shared … | |
I expected there to be one, especially on a site as popular as this one. Software Development objective-c | |
Hey all. I'm facing a bit of a challenge and and having a hard time trying to figgure out how do do this. Basically I have two computers (Raspbery Pi's) that I'm using. One (Pi A) is acting as a remote and sends a request to the receiver (Pi B). … Software Development file-system python | |
Group, I'm now having to merge several of these text files together. At the end of each of the text files is a line that says "End of Report". I need to eliminate this line completely. This code does the merge for me: RestranName = getRestranName(0) RestranName2 = getRestranName(1) System.IO.File.AppendAllText(RestranName2, … | |
im trying to make a simple example in threading this error msg can anyone help me to solve it ? Cross-thread operation not valid: Control 'cmb1' accessed from a thread other than the thread it was created on. Imports System.Threading Public Class Form1 Inherits System.Windows.Forms.Form Dim th1 As Thread Dim … Software Development vb.net | |
is there a way to search database viwable in datagrid view by selecting rows through a combo box, values trough a text box and display resoult in label? here is the code that doesnt work: Private Sub Command1_Click() 'populate datagrid trough textboxes DBGrid1.Columns(0).Text = Text1.Text Text1 = "" DBGrid1.Columns(1).Text = … Software Development seo vb.net visual-basic | |
i couldn't edit my previous post or can't delete. so i open new. sorry again i have two text file one is a.txt and another is b.txt content of a.txt is a b c d content of b.txt is 1 2 3 4 5 6 7 8 9 i want … Software Development vb.net | |
I have made a WPF application, it has a button to move some files attached to the column cells from one column to another column. The moment when i press button it shows a nice animation and moves all files to the next column cells. But my real problem is … Software Development | |
Hi, I have been trying to create a game loop that is paused when a certain key is pressed. This seemed to work ok in Swing but in javafx the loop locks up the UI, even if i create a seperate thread. @FXML public void setPaused(KeyEvent e) { if (e.getCode().compareTo(KeyCode.P) … Software Development java java-swing | |
this is suppose to be infix to postfix converter | |
I have seen these two methods of using ItemListener. I am curios which is better and why. What are the differences? ItemListener a; Choice ce = new Choice(); ce.addItemListener(a); ItemListener itemlistener = new ItemListener(); itemlistener.handle = checkboxmenuitem; checkboxmenuitem.addItemListener(itemlistener); Software Development java | |
![]() | There is any way to create a program in C which will be able to translate words using google translate or bing translator? I've already downloaded curl library (Ubuntu 14.04), but don't know exactly how to start in pure C. I'm beginner programmer. Thanks for help. |
Hi everyone! I am making a program in C where the user will input a month then the program prints out all the names of files created in that month. Right now I'm having trouble in printing the names of files. Here's a portion of my code. Can you help … Software Development c | |
How can I find the width of a command line window from a GNU C++-program ? I'll use this information to display a progress bar when copying files, so I need to know the width to be able to display the progress bar correctly. Software Development c++ | |
hello guys and happy new year!~ let me be the first to ask a question this 2015.. huehue is it possible to start with the same recordset when going to the next form? i have a textbox for name in form1 when i go to form2 i want to display … Software Development visual-basic | |
Hi, Let's say I have an array of 10 elements. I want user to enter 9 numbers so that they fill arrays 0 to 8 (9 numbers). Now I shift the arrays +1. so array[0] is now array[1] and so on. Now I ask user to enter 10th number (fills … Software Development c | |
JMenuItem mItem[] ={copy,paste}; for(int b=0;b<mItem.length;b++) { mItem[b].addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e) { String mItemCommand = e.getActionCommand(); JTextArea copypaste = new JTextArea(scr.getText()); if(mItemCommand=="Copy"){ copypaste.select(0,scr.getText().length()); copypaste.copy(); } if(mItemCommand=="Paste"){ copypaste.setText(""); copypaste.paste(); String num =copypaste.getText(); try{double n=Double.parseDouble(num); if(num.indexOf(".")!=-1) isDecimal = false; isFirstDigit = false; if( n-((long)n)>0.0) // I just didn't understand codes starting … Software Development java | |
Hello Everybody, I'm stuck with my little project. I want to select multiple days in a monthcalendar and count the days and display this in a textbox. I looked at different sites, but keep getting the error When converting a string to DateTime, parse the string to take the date … Software Development | |
VB.NET 2010 Is there a way to restrict a Masked Text Box to accept only *certain* letters? I know how to restrict for all letters. For example, the user should only input the letters "P", "R" or "N" ( or can be blank) in a particular Masked Text Box. I … Software Development vb.net | |
Okay, so this is my current code: #include <stdlib.h> #include <stdio.h> #include <stdint.h> struct Display { int width; int height; char **array; }; struct Display *display_create(int width, int height) { struct Display *display = (struct Display *) malloc(sizeof(struct Display)); display->width = width; display->height = height; display->array = (char **) malloc(sizeof(char) … Software Development c | |
What IDE do you use for C++ development and what is the best in your opinion? I'm using eclipse but sometimes I get errors when there shouldn't be errors. For example: I would have errors on eclipse but when i use code::block, everything works fine. I'm thinking of switching to … Software Development c++ ide visual-studio | |
Hi friends, Here is my code for selecting datas from myql database with the help of php.All i want to do is i want to pass and display image through intent from Activity 1 to Activity 2.im new in android so please help me. **Activity1** import java.io.BufferedReader; import java.io.ByteArrayOutputStream; import … | |
hello. I have to use a function in my phonebook program to sort the names alphabitcally here is what i have done so far.but what's wrong with it? void showAllContacts() { char t[40]; list *head; if(head == NULL) { puts("There are no contacts to display!"); } else { printf("\nAll contacts:\n"); … Software Development c++ linked-list | |
Hi guys, I need some basic help with my code, I've created a empty list to appending the controls to a list to add the controls when I pressed on the down arrow button of the keyboard. I'm trying to appending another controls to a list to add the controls … Software Development python | |
Hi, As above, I'm using directshownet for the first time, trying to create a program to perform some real-time video processing. At the moment I'm aiming to create two video renders (in the same window) side by side, one showing the original video and the other showing an edited version. … Software Development | |
Please tell me the difference between these three. I know the basic meaning but don't know exact meaning of all of them. Please explain a very good example if possible. Thanks in advance. Software Development c++ | |
This programe is made for biggners in c++ to made programe efficently and hide your prevate data form the user of your programe.This programe is made with the use of this pointer and also use the operator overloading. I will share this programme with others to understand it. //this programme … Software Development c++ | |
Hello -- When using the PrintForm component in VB.Net 2010 I would like to change the back color of the form from black to white just prior to printing to preview. Then once the print preview window is closed the back color returns to black. Here is the code I … Software Development vb.net | |
Hi there, Has anyone know to use voice commands on Android phones? I am developing a clock that is capable of displaying numbers and words. I would like to extend my project and to add GSM module so it is capable of receiving msg. I would like to use Android … | |
I am developing a Java application that uses a JTable. I want to allow the user to enter data in a JTable that can later be printed or saved as PDF file. The issues is: Suppose the user has entered some data and the cursor is on the last cell … | |
Hello Everyone, I recently came up with a really nice little piece of code that allows me to merge images quickly (by merging I mean fade in and out). The only problem is, the tests worked fine on small scale (like small images), but once I started to go larger, … Software Development | |
hello everyone, i am developing a quotation generator application using Java. I am using a JTable to capture user input(this input is taken from a database i.e. each cell of the tale will have a combobox where the user can select an input value). when the user is done he/she … Software Development java | |
Write a class that implements a vector of integers with the following template: Class IntVector{ private: // all member variables public: IntVector( int n); // create a vector with size n ~IntVector(); // releases any memory allocated by the vector Int getElement(int i); //returns the element i in the vector; … Software Development c++ | |
Hi, I am writing an application in vc++ 2008, where I am required to send the video data (320x240x3) information through the VGA port of my laptop. Is there any functions or class that can help me to accomplish the same ? Thanks Software Development | |
Hey! I'm a beginner and I am making a code about getting the directory of a file, but I have something that I don't understand. What's the meaning of "./" in `DS = opendir ("./");` I have searched a lot of sites about C programming, but nothing gave me a … Software Development c | |
I am trying to get character matching when comparing two strings. The result would display the two words side by side with the matching (and non-matching) characters displayed. This would be similar to mastermind. Example: (test word) - HALE (sample word) - HELP This would be displayed as: H?L? HELP … Software Development python | |
Hello, what can i do to convert a date that is dd/mm/yyyy to yyyy-mm-dd? public static Paginacao<Solicitacao> PaginarParaLote(int paginaAtual = 0, int itensPorPagina = 20, int? TipoId = null, long? ProtocoloId = null, int? StatusId = null, DateTime? DataSolicitacaoInicio = null, DateTime? DataSolicitacaoFim = null) { StringBuilder strWhere = new … Software Development | |
Hi. I am not exactly new to python but I have never done anything related to time and I don't know how. I want to make a count down timer that starts when I start a program and then either closes when I close the program or when it counts … | |
What's a good book to learn C if you already know Python and are comfortable with computer science terminology? I'd like a book that is downloadable as a .pdf free of charge but an html book viewable online free of charge would be fine. Also, is there an advantage to … | |
I'm writing some custom encryption code in Java for my server. The only problem is that in my encryption I'm using XOR. The data gets encrypted fine, but when I decrypt it doesn't decrypt correctly. I am not sure what is cuasing this problem. Here is my code that I … Software Development encryption java | |
**With a 2^32 address space and 4K ( 2^12 ) page sizes, this leave 2^20 entries in the page table. At 4 bytes per entry, this amounts to a 4 MB page table, which is too large to reasonably keep in contiguous memory. ( And to swap in and out … Software Development c operating-system | |
Whenever we talk about open source we only talk about big coding projects with contributions from aound the world. An openly available source code and all. I was wondering going with the spirit or the philosophy of open source aren't freely available books also part of open source. I also … Software Development open-source | |
| |
hi, I am creating an android app that is supposed to retrieve data from a remote database (Mysql) I'd like to pass the parameter to my php file using url and get the result that I'll display in the apps can someone have an idea of how to proceed? thank … | |
why this code not work ?? # include <stdio.h> void get_values(float *r, float *v); float do_calculations(float resistance, float voltage ) ; void display_answer(float current); main() { float resistor; float volts; float current; //explain_program(); get_values(*r, *v); current = do_calculations(resistor, volts); display_answer(current); } void explain_program() { printf("This program calculates the current in … Software Development c |
The End.