132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Nation

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
Member Avatar for Nation
0
125
Member Avatar for Trle94

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
Member Avatar for Reverend Jim
0
132
Member Avatar for Trle94

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 …

Software Development assembly vb.net
Member Avatar for Trle94
0
201
Member Avatar for pars99

I expected there to be one, especially on a site as popular as this one.

Software Development objective-c
Member Avatar for pars99
0
224
Member Avatar for techfreak

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
Member Avatar for woooee
0
238
Member Avatar for Papa_Don

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, …

Software Development unix vb.net
Member Avatar for Papa_Don
0
754
Member Avatar for aseel.jaradat.9

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
Member Avatar for aseel.jaradat.9
0
192
Member Avatar for slavica.k

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
Member Avatar for slavica.k
0
688
Member Avatar for Jeon_1

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
Member Avatar for Jeon_1
0
156
Member Avatar for Stacy_1

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
Member Avatar for harshchandra
0
202
Member Avatar for trishtren

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
Member Avatar for trishtren
0
1K
Member Avatar for ramyking
Member Avatar for أحمد_9
0
864
Member Avatar for COKEDUDE

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
Member Avatar for JamesCherrill
0
617
Member Avatar for rafiakhan492

why we use "<< " thes signs in cout function?

Software Development c++
Member Avatar for Rafiii
0
168
Member Avatar for lyons18

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.

Software Development c google ubuntu
Member Avatar for vegaseat
0
283
Member Avatar for avishekh.bharati

I am familiar with java. but now i want to learn either of these. so which would be better to learn??

Software Development c c# c++
Member Avatar for vegaseat
0
193
Member Avatar for CharAmel

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
Member Avatar for vegaseat
0
258
Member Avatar for it@61@sec

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++
Member Avatar for L7Sqr
0
523
Member Avatar for Lacrecen

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
Member Avatar for Lacrecen
0
188
Member Avatar for Vahid_1

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
Member Avatar for Vahid_1
0
5K
Member Avatar for ali11

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
Member Avatar for Taywin
0
131
Member Avatar for reminem

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
Member Avatar for ddanbe
0
243
Member Avatar for Triple_7

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
Member Avatar for Santanu.Das
0
311
Member Avatar for apkrieg

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
Member Avatar for apkrieg
0
357
Member Avatar for Transcendent

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
Member Avatar for rubberman
0
243
Member Avatar for Android_2

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 …

Software Development android apache image java json open-source
0
119
Member Avatar for suliman.kh

hi guys Iwant a programm to creat tree and calculate the sum ant count it and max and min

Software Development c++
Member Avatar for Ali_45
0
80
Member Avatar for tinased

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
Member Avatar for Duoas
0
744
Member Avatar for mark103

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
Member Avatar for mark103
0
443
Member Avatar for George.Storm

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
0
153
Member Avatar for nitin1

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++
Member Avatar for rubberman
0
255
Member Avatar for Mubeshier

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++
Member Avatar for rubberman
0
292
Member Avatar for Triple_7

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
Member Avatar for Triple_7
0
309
Member Avatar for cppgangster

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 …

Software Development android google java
Member Avatar for JamesCherrill
0
200
Member Avatar for Nation

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 …

Software Development java pdf
Member Avatar for Nation
0
5K
Member Avatar for JOSheaIV

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
Member Avatar for tinstaafl
0
235
Member Avatar for Nation

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
Member Avatar for JamesCherrill
0
209
Member Avatar for agrbinoo.albaker

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++
Member Avatar for Moschops
0
131
Member Avatar for anujavionics

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
Member Avatar for rubberman
0
115
Member Avatar for CharAmel

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
Member Avatar for rubberman
0
140
Member Avatar for Greyhelm

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
Member Avatar for Greyhelm
0
345
Member Avatar for jean_5

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
Member Avatar for gusano79
0
2K
Member Avatar for Nancy 92

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 …

Software Development python tkinter
Member Avatar for HiHe
0
12K
Member Avatar for EdJones

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 …

Software Development c c# c++ pdf python
Member Avatar for tabanpanoam
0
278
Member Avatar for CodeWarrior14

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
Member Avatar for Taywin
0
2K
Member Avatar for nitin1

**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
Member Avatar for Moschops
0
200
Member Avatar for tapananand

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
Member Avatar for mike_2000_17
0
195
Member Avatar for no.promises.908
Member Avatar for 良红
0
214
Member Avatar for sydoggs

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 …

Software Development android java
Member Avatar for rubberman
0
415
Member Avatar for masterinex

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
Member Avatar for rubberman
0
651

The End.