43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for moaz.amin.37

if a gui have 2 text fields and there are 10 buttons(0-9) to input numbers in text fields then how it will choose that which field get input. this i problem in my gui i write 2 methods but not working my code is below public void actionPerformed(ActionEvent e){ if(e.getSource()==b1){ …

Software Development gui java
Member Avatar for moaz.amin.37
0
313
Member Avatar for lester2020

Cannot seem to make the message box to not appear when I click cancel. Help please ! Private Sub btnEnter_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEnter.Click Dim input As String Dim total As Single Dim average As Single Dim count As Single Const msg1 As String = …

Software Development vb.net
Member Avatar for Santanu.Das
0
174
Member Avatar for samuel1991

Hi all, my question is as follows: If I use the code as below: text = '中文' #Text is in Chinese, whereby text = 'chinese' with open('file.txt','w', encoding = 'UTF-8') as f: f.write(text) f.close() My file.txt on Windows notepad will show it as saved as UTF-8. However, if the text …

Software Development python
Member Avatar for samuel1991
0
660
Member Avatar for TheGuy831

Hi ive been trying hard to get a img url collection from a textbox.. or how to stop loop on 3rd img url please help me. Thank You.. Heres What ive Got.. URL: https://www.facebook.com/tony.trujillo.3517 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim PageElement As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName(TextBox1.Text) …

Software Development vb.net
Member Avatar for tinstaafl
0
173
Member Avatar for telmo96

Hey ya guys, it's my first topic on DaniWeb, sounds like a good place to find help with programming. :) Today I'm trying to compile a simple code made for PyQt4 using cx_Freeze, but I'm getting an error, I'll show you all the codes: [B]example.pyw[/B] [CODE]import sys from PyQt4 import …

Software Development python
Member Avatar for sneekula
0
3K
Member Avatar for aluhnev

//why the getters declared twice,public,and than protected at the end of this code? And how to assign the copy constructor between this 2 classes? class Person { private: string name; string address; string city; string state; string zipCode; public: Person() {} Person(const string& aName, const string& anAddress, const string& aCity, …

Software Development c++
Member Avatar for rubberman
0
157
Member Avatar for xardoz

Here is a sample of the XML I need to get the <Order Header> Nodes, then loop through the <Order Detal> <Line> Nodes Using xml Reader "Using reader As XmlReader = XmlReader.Create(New StringReader(sFileContects))", i get all the header information, but cant properly parse the Line Iformation Using LINQ "Dim xd …

Software Development api vb.net xml
Member Avatar for xardoz
0
146
Member Avatar for Muzaffer_Ali

for(int i=0;I<20; i++) { `Inline Code Example Here` messagebox.show("the values is " '"+i+"'); } else { messageBox.show("ooops vlues is greater then 20"); }

Software Development c#
0
59
Member Avatar for Chtaylor5201

Can someone give me an idea on how to get started on this program? I have been having problems on this for a week and cannot get started. I understand this in visual logic but cannot get the total amound to print. Can anyone walk me through this or show …

Software Development python
Member Avatar for vegaseat
0
426
Member Avatar for sneekula

I have a tkinter program like the one below (for example) and want to create an executable file using module cx_freeze. I am using Python33 and Windows7. # Tk_circle2.py # draw a circle with given center (x,y) and radius # tkinter normally needs a specified square try: # Python2 import …

Software Development python tkinter
Member Avatar for vegaseat
0
2K
Member Avatar for cbutler7

hi, i am receieving a repsonse from googles json api that has the formatted_address but i want to extract the city and county from either the formatted_address which is displayed in a label (lblAddress.text) or the JSON file Google gave me. so for example: Palgrove Road, Pennywell, Sunderland, Tyne and …

Software Development api file-stream google google-api json vb.net
Member Avatar for J.C. SolvoTerra
0
2K
Member Avatar for fonzali

hi , last night I downloaded pyzo package on my ubuntu 14.04 system , I just do not know how to get it working . any help is appreciated

Software Development python ubuntu
Member Avatar for fonzali
0
346
Member Avatar for Inimitable

i using abstract method , and always prompt out wiv " not abstract and does not override abstract method " tis kind of error ublic abstract class Person { protected Name name; protected String address; protected String hp; protected String eadd; private static int counter; Person(Name name,String address,String hp,String eadd){ …

Software Development java
Member Avatar for Inimitable
0
246
Member Avatar for Slavi

Hello everyone, I am getting NPE, and surprisingly I can't figure out why ... I am calling a method from a client using java rmi. The method on the server side is as follows : public List<String> getPrinters() throws RemoteException { List<String> listPrinters= new ArrayList<String>(); for(int i=0; i<printers.size();i++){ listPrinters.add(printers.get(i).getName()); } …

Software Development java
Member Avatar for Slavi
0
147
Member Avatar for MasterHacker110

I use Delphi 7 to develop programs, but the programs that I make, UI looks outdated. I was wondering if there is an option that I can adjust how to generated UI looks like? Thanks.

Software Development delphi pascal
Member Avatar for Glenn9999
0
659
Member Avatar for moaz.amin.37

i read adapter classes everything is write but i am confuse about Listener Interfaces and Adapter classes concept priblem is that when java create adapter classes it implements corresponding interface and privide defination with empty bodies of all methods that are present in interface this is declaration public class WindowAdapter …

Software Development java oop
Member Avatar for moaz.amin.37
0
553
Member Avatar for mxwarning

Hello, I am supposed to modify my last inventory program. Here is the instructions. Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output should display the information one product at a time, including the item number, the name of …

Software Development java
Member Avatar for zolymo
0
941
Member Avatar for Slavi

Hey everyone, I am facing an implementaton issue here ... hopefully someone can give me a hand .. So I am implementing a client-server communication, where the server has to act as a print server. In other words, the client simulates to be next to a printer and can send …

Software Development client-server gui java printer queue
Member Avatar for Slavi
0
193
Member Avatar for kayleigh0411

I am trying to make a program that will tell how much a ticket costs and what the admission status is for a movie based on the age of the person. For ages 1-4 and 55 and up, it is $0.00 and "Free". For ages 5-12 it is $4.25 and …

Software Development java java-swing
Member Avatar for stultuske
0
163
Member Avatar for MasterHacker110

I remember reading in Java's EULA that you acknoledge not to use it for certain things (real time applications). I did a bit of research on this matter and came to the conclusion that it is due to Java's garbage collector that makes Java slower and thus unfit / or …

Software Development java
Member Avatar for MasterHacker110
0
228
Member Avatar for Slavi

Hey guys, I can't understand why am I not getting anything from the server, it is supposed to return "Hello" to the client ... I have this code implemented for a game I made during the summer and it works perfectly(of course this is just part of the code), but …

Software Development client-server java
Member Avatar for Slavi
0
190
Member Avatar for BleepyE

Hi, im wondering how I could contact my Call of Duty: Black Ops game server's console, through RCon, through an application I have created in VB.net All I want to beable to do is have the ingame console in a textbox or something, it doesnt even have to be live, …

Software Development vb.net
Member Avatar for chris.weisskeiner
0
1K
Member Avatar for psichoman5

I dont know how to convert a matrix of 10x10 into 4 matrices of 5x5, for example: [[10, 11, 12, 13, 14, 15, 16, 17, 18, 19], # matrix 10x10 [20, 21, 22, 23, 24, 25, 26, 27, 28, 29], [30, 31, 32, 33, 34, 35, 36, 37, 38, 39], …

Software Development python
Member Avatar for vegaseat
0
259
Member Avatar for Simon180

Am trying to build xinetd on my solaris system am using sun workshop c++/c to compile the code but I keep getting the following errors error: `sys_nerr` underclared (first use in this function) error: (each undeclared identifier is reported only once error: for each function is appears in.) error: `sys_errlist …

Software Development c++
Member Avatar for NathanOliver
0
1K
Member Avatar for lithium112

I'm needing some LINQ expert advice. I am having to convert a SQL stored proceedure over to LINQ. The SQL statement is structured like below: SELECT SUM((Amt) FROM Table1 INNER JOIN Table2 ON Table1.ID = Table2.ID WHERE Table1.Date < endDate GROUP BY Table2.Name How would I group all of the …

Software Development
Member Avatar for AleMonteiro
0
154
Member Avatar for crodriguez08

Hey there, I'm having trouble getting my program to read every instruction to then execute it, as well as displaying everything correctly. Right now my program displays mainly garbage and for now I simply want it to be able to successfully run a simple addition program, so any advice or …

Software Development c++ mathematics
Member Avatar for CPTSNGR
1
2K
Member Avatar for 2384443

Hi everyone, i need your help.. I want to draw a circle,square and rectangle on Jframe on a click of a button.. This program was asked in my test paper, i couldn't get it right though bt i wanna know what my mistake is.. Plz help me.. import javax.swing.*; import …

Software Development java java-swing
Member Avatar for JamesCherrill
0
346
Member Avatar for kayleigh0411

I need to make this program GradeCalculator.java, and I can't figure out what is wrong with it. I'm really struggling, could someone please help! Thanks!! In the GradeCalculator.java program the user clicks the Enter button. The first input is a JOptionPane that asks the user, “Number of score to be …

Software Development java java-swing
Member Avatar for stultuske
0
187
Member Avatar for PinoyDev

Good day! I have a long list of menus created under menu editor. I need to loop all of its value list and put it in a combo box. I do not know a way on how to do this..? Thank you!

Software Development visual-basic
0
130
Member Avatar for chubbyy.putto

Here is problem: I ask user for how many dogs do you have user enter 5 i go via for loop and add the name into arraylist and now i want to display like 1. Java 2. is 3. fun and so more.... not just 3 after I want to …

Software Development java
Member Avatar for Santanu.Das
0
94
Member Avatar for Freddy Kreuger

So I have a couple of problems with this assignment and I need a bit of help. The first is Went ever I input the name of a college or university that I know is on the list, it causes an infinite loop and repeats the menu forever. This will …

Software Development c++
Member Avatar for NathanOliver
0
269
Member Avatar for kidkardel

OK, hi again and thank you for your continous answering, I cant repay you but I am truly grateful... anyway, I have a datagridview where i manually add 4 columns (A,B,C,D) respectively and has 4 textbox outside (ta,tb,tc,td) respectively. now i have a button where when i push it strings …

Software Development
Member Avatar for kidkardel
0
123
Member Avatar for Daniel_30

I am a student in Computer Science, and am writing a small guide for my fellow students. It will contain a large list of the most commonly used and studied functions in C++ (e.g. Bubble Sort, linear search, file writing, etc.) and the code used to perform each function. I …

Software Development c++
Member Avatar for oboumat
0
131
Member Avatar for Glaven

I need to find the smallest number in my 10x8 array grid fileld with random numbers I know im doing it wrong but I do not know what to do. Please Help! Heres my Code: //ArrayGrid #include <iostream> using namespace std; int main() { int total,average,smallest; int row=0; int col=0; …

Software Development c++
Member Avatar for Glaven
0
622
Member Avatar for Zyxl

I'm about to begin developing an application that requires some basic 3D rendering, so I'm looking into C++, as this seems to be the usual language for this type of thing and I have a book to help me with this project that includes some snippets of C++ code (not …

Software Development c++ opengl
Member Avatar for Zyxl
0
748
Member Avatar for batoolhussain

hi everyone .I have this code to convert color image to grayscale image but the problem is that the image after converting does not display on the picturebox2 . I am using visualbasic.net 2010 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim pic As Bitmap …

Software Development image vb.net
Member Avatar for batoolhussain
0
4K
Member Avatar for teekay309

A certain company wants to improve the rate at which their login system is accessed and you have been tasked to carry out this project. In this project, you will consider the problem of organizing a collection of computer user-ids and passwords. Each time a user logs in to the …

Member Avatar for JamesCherrill
-1
214
Member Avatar for filipgothic

Hello, I need help real fast for my exam matric 3x5 which will multiply with Pi Thanks in advance

Software Development vb.net
Member Avatar for filipgothic
0
113
Member Avatar for Mya:)

I have a huge project to do for my Gr11 PAT(Practical Assessment task) We have to create a project based on Geocaching [Click Here](http://www.geocaching.com) and I need ideas to start planning my Fase 1 - wich constructs of a basic descrption of at my program wil do. I need at …

Software Development delphi pascal
Member Avatar for Deonas666
0
747
Member Avatar for mxwarning

Hello, I am having trouble with how my program displays the items with a $ sign. I do not want a dollar sign and I ma not sure how it got there as I did not put one in. Is there a way to get rid of the $ sign …

Software Development java
Member Avatar for mxwarning
0
123
Member Avatar for rayhaneh

this is my program and every time shows me this error:18 26 :: [Error] statement cannot resolve address of overloaded function:: #include <iostream> using namespace std; int pow(int a,int b); int mabna(int n, int k){ int a,b,s=0 ; for(int i=0;i!=0;i++){ s=(a%b)*pow(10,b); s+=(a/b)*b; return s;} } int main (){ int a1,a2, …

Software Development c++
Member Avatar for Moschops
0
129
Member Avatar for Jack_9

Hello. I'm running injection tests on an SQL database and I found a good script to do so....But it takes command line parameters which I can't execute properly because the command would normally look somthing like this...... python sqlmap.py -u "url.com" --batch. But I can't seem to do that because …

Software Development python
Member Avatar for HiHe
0
3K
Member Avatar for Pyler

Suppose I have the following class in a header file //tray.h #include <vector> #include "Eggs.h" #ifndef TRAY_H #define TRAY_H class Tray{ std::vector<Eggs> dozen; public: Tray(); ~Tray(); std::vector<Eggs> getTray() const; }; #endif And the following class file //tray.cpp #include "Tray.h" #include <string> Tray::Tray(){ } Tray::~Tray(){ } How do I initialize the …

Software Development c++
Member Avatar for rubberman
0
259
Member Avatar for shahera.arafat

#include<cstdio> #include<string> #include "inventory.h" #include "node.h" #include<iostream> using namespace std ; int main (){ inventory*obj1=new inventory(); int size; int id,i; char A[100]; char S_string; cout<<"plz enter the size of the list "<<endl; cin>>size; for(i=0;i<100;i++){ cin>>S_string; A[i]=S_string; } int a=strcmp(A[i],"new"); if(a==0){ for(int j=0;j<size;j++){ cout<<"enter the id"<<endl; cin>>id; obj1->new_id(id); } } getchar(); …

Software Development c++
Member Avatar for sepp2k
0
119
Member Avatar for chubbyy.putto

I trying to understand the ArrayList let say the user input in 1st Person Name : Alex Sex : M Dog Name: Java 2 Person Name: Joe Sex: M Dog Name: Is 3 Person Name: Anna Sex : F Dog Name: Fun in Arraylist how can you separate out from …

Software Development java
Member Avatar for zolymo
0
211
Member Avatar for osama.11

c program to print table of a given number by user defined value

Software Development c c# c++
Member Avatar for osama.11
0
81
Member Avatar for zapman2003

Ok, so I have been trying to google the heck out of this thing to absolutely no avail and I'm really and truly stuck! The assignment, as posed to the class by my operating systems concepts teacher, was to start work on creating a file system. To begin with, he …

Software Development c file-system operating-system
Member Avatar for sharawy
0
916
Member Avatar for zolymo

Hello. Im making an webapp using Eclipse Keppler. REQUIREMENTS: - Eclipse for Java EE (or JBoss Developer Studio 7 o 8) - JBossTools installed on eclipse - JBoss Aplication Server 7.1.1 (not eap) - MySQL connector J 5.33 Structure of project: i use this package structure - persistence and ejbdao …

Software Development data-structure java session
0
89
Member Avatar for kidkardel

hi can u guys help me find what is my error in my line. cmd.CommandText = "SELECT * FROM TblLogin where Username='"+ usr_lgn.Text +"'and Password = '" + pswr_lgn.Text + "'where STAFFSTATUS="+"ACTIVE"+""; im having an error saying incorrect syntax near the word where. thank u

Software Development sql
Member Avatar for vijay.soni
0
124
Member Avatar for samuel1991

Hi all, actually I have a requirement to remove all non letter character. (Numbers, Punctuation, symbols, non printing characters etc.) string.punctuation does a good job, but it does NOT remove any non English punctuation (Like '。' which is a full stop in Chinese) So I come accross such code: import …

Software Development legal python
Member Avatar for Gribouillis
0
324

The End.