132,723 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for churva_churva

/** * @(#)List2.java * * * @author * @version 1.00 2010/8/26 */ import java.util.*; public class List2 { private int [] arr; private final int MAX = 10; public List2() { //allocate memory to arr arr = new int[MAX]; } //accept 10 numbers public void accept(){ Scanner console = new …

Software Development java
Member Avatar for NormR1
0
324
Member Avatar for becky007

my coding to ignorecase isn't working but the else statement does. I have system.using regular expressions allready. it runs without errors but it dosn't ignore capitals. [CODE] private void checkBox1_CheckedChanged(object sender, EventArgs e) { if (checkBox1.Checked == true) { Regex word = new Regex (wordtextBox.Text, RegexOptions.IgnoreCase);// dosn't work } else …

Software Development regex
Member Avatar for Momerath
0
119
Member Avatar for extemer

guys i trying to run simple applet program but getting the same error that "START:APPLET NOT INTALIZIED".i save both of files in the same folder "bin" but yet the same error.can any one help me.here is my code[ [code]import java.applet.*; import java.awt.*; public class move extends Applet{ int x_pos = …

Software Development java
Member Avatar for NormR1
0
136
Member Avatar for Sunshineserene

Hi, I have this program that part of it is hard coded. Instead of hard coding it, I need to do a file read instead. Meaning, the hard coded part must be changed to reading the info I need from a txt file. May I know how to do that? …

Software Development algorithm file-system java java-swing
Member Avatar for NormR1
0
485
Member Avatar for toomuchfreetime

Hey I'm trying to get a splash screen going for my application but having a problem in finding the image once the splash screen is called it returns a null. I'm trying to use the java standard 6 way where the splash screen is displayed before the jvm is started …

Software Development java java-swing
Member Avatar for rahul4/69
0
475
Member Avatar for steveh000

Hi I wonder if someone could point me in the right direction, I have two class`s in my program one is a search thread the other is the swing gui. I want to send updates and info from the thread to my gui but have not got any idea on …

Software Development gui java java-swing
Member Avatar for steveh000
0
105
Member Avatar for fr0styh3rb

Hello all, can someone take a look at my inventory program code for part 3 of the program mod. The program outputs, but I am still experiencing a few errors. If someone could take a look and let me know what to change I would greatly appreciate it. This is …

Software Development gui java
Member Avatar for tong1
0
151
Member Avatar for dgzo_08

Hi. I'm building an app (in VS2005) in which I have a datagridview with a combobox column that needs to be databounded. I use the dataSet designer to add a dataset and then add to the combobox column datasource the dataset I just added (make a reference) and then I …

Software Development dataset vb.net
Member Avatar for StephenFoong
0
1K
Member Avatar for techie1991

I have just started writing C code in dev-c++. The programs are running fine, but each C program shows me the following warning: [QUOTE] [Warning] command line option "-fno-access-control" is valid for C++/ObjC++ but not for C[/QUOTE] The test program I used was: [CODE] #include<stdio.h> int main(){ system("pause"); return 0; …

Software Development c c++ microsoft-access
Member Avatar for Kanoisa
0
573
Member Avatar for the b

I'm making a rock paper scissors game, and in this game there is a nested for loop so that the players challenge each other, the outer loop is supposed to loop through all the players starting with player 1, while the inner loop starts at the last player and moves …

Software Development java
Member Avatar for masijade
0
235
Member Avatar for silaj

Hi. Can anybody teach me c# step by step?

Software Development
Member Avatar for ITchimes
0
74
Member Avatar for kinvieb

I am developping an user interface in VBA to manage an MS access database. I am confronted with a task that consists to open any document file store on a computer using a VBA command. I can do that that for any MS office document but failing with other document …

Software Development pdf user-interface visual-basic
Member Avatar for AndreRet
0
244
Member Avatar for AncieV

hi..i wanted to know how to set focus from form2 to say a desired textbox in form1.. Problem tht i face is if i give a setfocus() in form2 it gives me an "Invalid procedure call or argument error"....i have already set the focus in the form load event of …

Software Development visual-basic
Member Avatar for AndreRet
0
102
Member Avatar for Dhilip.S

[B]I ve added windows media player in the form. and i can add a audio file in it..but i want to add more than one audio files in a playlist and from tat playlist i want to retreive duration of each n every file and store it seperatly in an …

Software Development audio vb.net
Member Avatar for Dhilip.S
0
80
Member Avatar for Seba Sama

Hi I'm trying to send some text to LPT1 port. [url]http://www.logix4u.net/[/url] this seems to work but there is nothing happening on my printer. can anyone tell me how to do it? thx

Software Development printer visual-basic
Member Avatar for AndreRet
0
433
Member Avatar for rexona

hi, i'm having trouble taking say the input of the user and converting it to the right type of format i need in order to compare them. An example is say I have the number 1234 and that is assigned to the variable x and the string value of that …

Software Development python
Member Avatar for vegaseat
0
113
Member Avatar for nssltd

Hey i was just wondering if anyone had any good idea of how to make an application tell the user that it needs updating! kind of like the update dialog in hyper cam. the way hyper cam updates is by a small yellow box popping up and saying its ready …

Software Development c#
Member Avatar for nssltd
0
85
Member Avatar for Naveed_786

Here is my code it gives me error "IsAdminuser is not member of PMS" what should i do now to resolve this problem. [CODE]Module GlobalStuff Public Function IsLoggedIn(ByVal PassUserName As String, ByVal PassPassword As String) As Boolean Dim ReturnBool As Boolean = True Dim cnString As String = "Data Source=ITS;Initial …

Software Development open-source vb.net
Member Avatar for GeekByChoiCe
0
111
Member Avatar for skyzer

Hi, i would be grateful for a solution or some explaining. My example is that i have a controlled spaceship. here is userinterface: 3 - planet from which is starts, 0.5 and 0.5 the speed of the ship [CODE=java]public void handleBtnLaunchFPSpaceShip() { this.controller.launchFPSpaceShip(3, 0.5, 0.5); }[/CODE] my controller class: [CODE=java]public …

Software Development java
Member Avatar for skyzer
0
233
Member Avatar for debuitls

Hey guys, Trying to learn python. Anyone have any idea why this prints score_value first? ie this is the output {'score_value': 3.0, 'score_type': 1}{'score_value': 3.0, 'score_type': 4}{'score_value': 3.0, 'score_type': 5} [CODE] scores_for_bulk = [] for i in range(4): if not score[i] == 0: self.response.out.write({"score_type":SCORE_TYPES[types[i]], "score_value": score[i]}) [/CODE] Any help would …

Software Development python
Member Avatar for TrustyTony
0
86
Member Avatar for mysybet

Hello ! i have created an application , and i need to send emails to different adresses.I want to do this inside my application without automating email software like outlook etc. I have used CDO , and different activex like ostrosoft , chilkat etc .But is the same problem : …

Software Development email vb.net
Member Avatar for rajeevbhatt17
0
134
Member Avatar for boiishuvo

Hi, I wrote a simple program that should display the text (with specific fonts), one color background and drawing. I tried to run the program but it didn't work. Any suggestions? What is the method of Graphics that allow you to draw within the program? eg java.awt.Graphics but I don't …

Software Development gui java java-swing
Member Avatar for tong1
0
151
Member Avatar for lanhlung696

Please help me. My project to display like window explore from any client's ip address. If i used command line, i can set ip & post listen for server by code: start java TestWEImplServer -ORBInitialPort 1050 -ORBInitialHost localhost & java TestWEImplClient -ORBInitialPort 1050 -ORBInitialHost localhost but went i use eclipse …

Software Development client-server java
Member Avatar for lanhlung696
0
176
Member Avatar for D boss

hi guys, i am working on a new java program, the program consists of a ball, bouncing around the applet, i have created button to control the ball, one to stop the ball bouncing, another to resume the ball boucing and another to reverse the direction of the ball bouncing, …

Software Development java
Member Avatar for jadhav vijay
0
2K
Member Avatar for TrueVb.NetNoob

Hi Everyone! I have made form 5 to become a simple storage system to check for item stocks plus adding, and started to code with arrays. heres what I have so far. [CODE]Public Class Form5 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckButton.Click Dim item(2) As …

Software Development storage vb.net
Member Avatar for TrueVb.NetNoob
0
99
Member Avatar for helpme87

so i am trying to write a program that reads some data in from a text file and performs an operation on that data. the text file is as follows... [CODE] 611111 5 765676 4 876787 4 987897 2 611111 4 [/CODE] now i want the program to read that …

Software Development c++
Member Avatar for mrnutty
0
149
Member Avatar for BboyRodimus

I got stuck at this error: [B]cannot find symbol symbol: variable BankAddress location: class Bank bankAddress = BankAddress;[/B] [COLOR="Red"]<------pointing at BankAddress;[/COLOR] I'm trying to instantiate an object of Address, calling the constructor of the Address class to create an object of Address. I'll post both classes, Bank and Address [B]Address …

Software Development java oop
Member Avatar for coil
0
143
Member Avatar for DemiSheep

Question of the century? I basically want to know which would be more efficient if I wrote this code as several different variables or if I used small arrays. [code=c] int x = 34; int y = 28; int z = 293; [/code] vs [code=c] double coordinate[3] = {34, 28, …

Software Development c
Member Avatar for jon.kiparsky
0
192
Member Avatar for Naveed_786

I am using date and time picker to get current date but when i get date from date and time picker first time it gives me current date and time i save the record and when i try to get date and time second time without unloading the form it …

Software Development vb.net
Member Avatar for pritesh2010
0
89
Member Avatar for TrueVb.NetNoob

Hi Everyone! I have been experiencing problems in displaying my varibable Gcoins in form3 from form1. here is what i have in my form3 code. [CODE] Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim frm1 As New Form1 Dim points As Integer gcoinsamount = Val(frm1.Label2.Text) …

Software Development vb.net
Member Avatar for TrueVb.NetNoob
0
260
Member Avatar for vegaseat

Compress and decompress files using the popular pkzip format and the Python module 'zipfile'. [B][COLOR="Red"]Concept Error! This code just does archiving into a zip file, no compression![/COLOR][/B] To compress and archive files it is best to use module tarfile, see the snippet at: [url]http://www.daniweb.com/code/snippet216860.html[/url]

Software Development python
Member Avatar for tudza
0
871
Member Avatar for CJX3711

I'm trying to send variables from a program in C++ to php for it to process. Then I want to be able to get the output of the php code. Is there any way to send variables from C++ to PHP and back? Maybe using something like POST variables? I …

Software Development c c# c++ flash php
Member Avatar for CJX3711
0
137
Member Avatar for vishalonne

Dear All I am tring to do 1 simple job but some where I am missing something I designed 1 GUI in Netbeans 3 jTextFields, 2 jButtons (design attached) Step 1-> Input any number in 1st text field 2 Step 2-> Input any number in 2nd text field 2 Step …

Software Development gui java
Member Avatar for vishalonne
0
92
Member Avatar for The_Prince

Hi, I have a problem which has been puzzling me for a few days. i have been trying it with vectors and characters but will not work for me. Imagine an "ON" "OFF" binary sequence. I want to compute all combinations of that sequence of length N say. e.g sequence …

Software Development c++
Member Avatar for Lerner
0
112
Member Avatar for bomko

[CODE]from PIL import Image, ImageDraw from random import randint picture = Image.new("RGB", (600, 600)) artist = ImageDraw.Draw(picture) for i in range(100): x1, y1 = randint(0, 600), randint(0, 600) x2, y2 = randint(0,600), randint(0,600) color = (randint(0, 255), randint(0, 255), randint(0, 255)) width = randint(2, 20) artist.line([x1, y1, x2, y2], color, …

Software Development python
Member Avatar for bomko
0
2K
Member Avatar for cac186

Hi I'm trying modify an application to read in text files and collect pieces of data from them to use as input for an application. The data I need to collect from the individual files include doubles, int, and strings of varying lengths depending upon individual text files. There is …

Software Development java
Member Avatar for NormR1
0
191
Member Avatar for glenak

This isn't a problem, just a curious question. I'm using the password text field in my gui and basically, this: [CODE] String pin = new String(passwordField.getPassword()); Person p = new Person(); p.setPassword(Integer.parseInt(pin)); [/CODE] leads to a number format error, despite that I didn't enter a text. But this: [CODE] String …

Software Development gui java
Member Avatar for NormR1
0
130
Member Avatar for djbhoco

I need help with this Java program for school. I have to add loops so that each loan will loop and show the payment made, the int payment made, and the loan balance for each month of the entire loan. There are three different loans, 7 year, 15 year, and …

Software Development java
Member Avatar for coil
0
485
Member Avatar for bettybarnes

help me guys.. how do i add picture? [CODE] Private Sub NavigateRecords() txtPersonnelID.Text = ds.Tables("Personnel").Rows(inc).Item(0) txtFirstName.Text = ds.Tables("Personnel").Rows(inc).Item(1) txtLastName.Text = ds.Tables("Personnel").Rows(inc).Item(2) txtMiddleName.Text = ds.Tables("Personnel").Rows(inc).Item(3) txtGender.Text = ds.Tables("Personnel").Rows(inc).Item(4) txtAddress.Text = ds.Tables("Personnel").Rows(inc).Item(5) txtContactNo.Text = ds.Tables("Personnel").Rows(inc).Item(6) txtEmailAdd.Text = ds.Tables("Personnel").Rows(inc).Item(7) txtBday.Text = ds.Tables("Personnel").Rows(inc).Item(8) txtDept.Text = ds.Tables("Personnel").Rows(inc).Item(9) txtPosition.Text = ds.Tables("Personnel").Rows(inc).Item(10) txtHiredDate.Text = ds.Tables("Personnel").Rows(inc).Item(11) txtRenewalDate.Text = …

Software Development vb.net
Member Avatar for lolafuertes
0
119
Member Avatar for Roger101

I have a series of data (x,y) as below. I want to use this data to create a bell curve (normal distribution) with perl. How can I do this? x y 1 2 2 50 3 40 4 300 5 70 6 80 7 8 8 10 9 25 10 …

Software Development mathematics perl
Member Avatar for d5e5
0
989
Member Avatar for glenak

Hi, let's say I have a program in my external hard drive and there's a code in my app that references a picture or a file in that hard drive, how do I make it so that when I take my external hard drive to another computer, even though the …

Software Development hard-drive java
Member Avatar for glenak
0
64
Member Avatar for TheSecOrg

How can I make a C++ timer?:confused:

Software Development c++
Member Avatar for TheSecOrg
0
248
Member Avatar for tyalangan

Hello Everyone, I've been desperatly trying to teach myself C and I've come along quite nicely. I wanted to start making my own programs (not from internet tutorial/Cd Rom). I want to make a program that will display two dates that the user inputs then calculate the number of days …

Software Development c display
Member Avatar for Davish
0
279
Member Avatar for Anon17

Okay, so I've been trying to create a UDP Server (I've got the TCP one done but I need both for my project). However, whenever using the following code: [code] UdpClient whatever = new UdpClient(11000); [/code] I always get a SocketException with any port number (not just 11000), unless I …

Software Development tcp-udp
Member Avatar for Anon17
0
228
Member Avatar for TheSecOrg
Member Avatar for peter_budo
0
103
Member Avatar for James0l9l

I want to create a list which will list coordinates on a 50 by 50 grid. I have been able to set the x-value from 0 to 49, while maintaining the y-value as 0. When I try to reset the x-value back to 0, and increment the y-value by 1- …

Software Development python
Member Avatar for peter_budo
0
177
Member Avatar for dre-logics

I use Visual Basic 8.0 and Windows 7 Prof. and Deskjet 720c To print a document i use [COLOR="Green"]PrintDocument component [/COLOR] I want to Check status of local printer My problem is, if de printer if [COLOR="Red"]offline[/COLOR] of [COLOR="Red"]not connected [/COLOR]every print job is then automatically sent to the print …

Software Development printer vb.net visual-basic
Member Avatar for lolafuertes
0
656
Member Avatar for James0l9l

I want to create a list which will list coordinates on a 50 by 50 grid. I have been able to set the x-value from 0 to 49, while maintaining the y-value as 0. When I try to reset the x-value back to 0, and increment the y-value by 1- …

Software Development python
Member Avatar for griswolf
0
261
Member Avatar for mgorecki

Hello, I'm new to VB .Net and I've searched for this info in the help files, but couldn't find it. When I save a project it automatically saves it to "C:\Documents and Settings\[I]username[/I]\Local Settings\Application Data\Temporary Projects\[I]filename[/I]". I want to be able to set this path ahead of time to where …

Software Development vb.net
Member Avatar for mgorecki
0
118
Member Avatar for gerard4143

Hi, I'm looking for a book on C++...now before you flame me I did read the sticky "Read Me:C++ Books" and found the list interesting but for me uninformative...Why? I'm not really sure what C++ level I'm at currently. Let me elaborate...Here's my experience with the C family of languages.. …

Software Development c c# c++
Member Avatar for DAlexNagy
0
232

The End.