132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for clouds_n_things

So I'm writing a personal bank tracker for myself, and I'm having a bit of trouble with a line of code. The ID_Pin method below is equal to 0000, however when i try to create an instance (any instance of the Account class), it returns the "Access Denied" bit that …

Software Development python
Member Avatar for clouds_n_things
0
177
Member Avatar for jovstudios

Hello Guys Help Me To Count The Item in Listview and Update it. Scenario.. Customer Buy 3 Milk and 2 Nescafe then the Cashier Punch it Item-----------------Qty Milk-------------------2 Nescafe---------------2 The Cashier Forget to Punch the 1 Milk. the Cashier should Punch Another One Milk..But My Code This is What Happen …

Software Development listview visual-basic
Member Avatar for jovstudios
0
158
Member Avatar for chdboy

CODE: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con = New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Danial\documents\visual studio 2010\Projects\ESI_PF_Payroll_V1\ESI_PF_Payroll_V1\Pay.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True") Dim adaptor As New SqlDataAdapter Dim dataset As New DataSet con.Open() con.Close() con.Open() cmd = New SqlCommand(str, con) cmd.Connection = con cmd.CommandText = "SELECT Firstname FROM …

Member Avatar for chdboy
0
176
Member Avatar for carrl00

i need to make the Print JMenuItem to open a printdialog box when clicked but i dont know how to make it can u help me pls p.addActionListener(new ActionListener() heres the code can u add the printdialogbox i searched but i cant put it on the program import javax.swing.*; import …

Software Development java java-swing
Member Avatar for M4trixSh4d0w
0
152
Member Avatar for Mz. Jackee

I need to write a console-based program that accepts a user's message and determines whether it is short enough for a social networking service that does not accept messages of more than 140 characters. I don't know anything about console-based programs and really need some help.

Software Development
Member Avatar for Mz. Jackee
0
208
Member Avatar for NidhiSree

I have created a custom combo box(Text box, button and List View). While typing in the text box, cursor disappears. How can I disable "Hiding cursor while typing" in my application. I goggled and found that it is the system behavior called SPI_SETMOUSEVANISH. It can be turned off but it …

Software Development
Member Avatar for NidhiSree
0
1K
Member Avatar for dan.gerald

I am trying implementing a vector ADT by means of an extandable array used in circular fashion. So now I want to apply the doubling strategy to double the current size of array Wheenever the full exception happens, by using a template to make the vector work here are my …

Software Development c++
Member Avatar for deceptikon
0
568
Member Avatar for vivek.vivek

Hi, I need to print lines if it appears more than 3 times in a file looking only at the second column. I have written the below code. But it will look for the complete words in a line. #!/usr/bin/perl use strict; use warnings; my $file = 'file.txt'; my %seen …

Software Development perl
Member Avatar for 2teez
0
197
Member Avatar for piyush09

While Executing the XSL trasnformation got following error: (Location of error unknown)XSLT Error (javax.xml.transform.TransformerConfigurationException): javax.xml.transform.TransformerConfigurationException: XML-22108: (Error) Invalid Source - URL format is incorrect. Exception in thread "main" java.lang.RuntimeException: javax.xml.transform.TransformerConfigurationE xception: XML-22108: (Error) Invalid Source - URL format is incorrect. at org.apache.xalan.xslt.Process.main(Process.java:1126) Can anyone please tell the cause of such …

Software Development apache xml
Member Avatar for Mike Askew
0
351
Member Avatar for jakeezakiel

Dim conn As New OleDb.OleDbConnection Dim ds As New DataSet Dim dt As New OleDb.OleDbDataAdapter conn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\admin\Documents\Visual Studio 2010\Projects\office software\office software\bin\Debug\Office1.accdb;Persist Security Info=False; " Try cmd.Connection = conn conn.Open() cmd.CommandText = "insert into Office Values('" & CInt(TBID.Text) & "','" & TBSupplierName.Text & "', " & TBProductName.Text & "," …

Member Avatar for pritaeas
0
309
Member Avatar for pwolf

I'm new to c# programming, and I am a little stuck on how to make a variable available across multiple forms. I read that i should make a public static class, however, my code is as follows: private void btnLogin_Click(object sender, EventArgs e) { accountNo = txtBoxAccntNo.Text; valid = validate(); …

Software Development asp.net c c# c++
Member Avatar for ddanbe
0
346
Member Avatar for joejodre

plz i need a pascal prog which input 2 values,call dem A and B.print the value of the largest variable. (2)modify the prog above to accept 3 values A,B,C and print the largest.tanx.

Software Development pascal
Member Avatar for pritaeas
0
157
Member Avatar for sonyj
Member Avatar for Lethugs
0
323
Member Avatar for dude1

i have a problem im trying to solve in python but I'm not sure if its possible ive got lists of data one line that is the full name Eg. name:John Doe and the line below is a the user ID Eg. userID:jdoe i have both of those being made …

Software Development python
Member Avatar for Lucaci Andrew
0
297
Member Avatar for DevilDog22

So we are working on loops right now, I got the first portino of my program up and running how I want, took some messing around with but I finally got it. Here is my assignment: > Credit Card Number Check. The last digit of a credit card number is …

Software Development algorithm java
Member Avatar for stultuske
0
810
Member Avatar for danielgr

Hi, I have a webservice which needs to be serialized. At the moment I can call the webservice as: Call10.Process("field_a","field_b") and the function looks like this: Public Function Call10(ByVal User As String, ByVal Password As String) As String If User = "user" Then MsgBox("Correct User") End If If Password = …

Software Development vb.net
Member Avatar for danielgr
0
185
Member Avatar for slpefanis

Hi All, i am not sure if this is the right forum, but i couldnt find a SQL section. I am writing an application to log data from our PLC system to a SQL database. I would like to write a record every second. I have it all working fine, …

Software Development sql vb.net
Member Avatar for Reverend Jim
0
135
Member Avatar for RawrInYoMouth

//Hello(apologize for any formatting errors) //I am trying to finish this program that is supposed to act as a club bouncer. Only letting a max amount of people (125) in at one time. Naturally people leave throughout the night, so I was trying to //implement that with the random variable, …

Software Development java java-swing
Member Avatar for IIM
0
186
Member Avatar for MRehanQadri

http://libraryofcprograms.blogspot.com/2013/03/initializing-character-array-structs.html Is there any other way to initialize a chararcter type array in structs?

Software Development c++
Member Avatar for MRehanQadri
0
102
Member Avatar for anisha.silva

HI, I have a class Customer and Vehicle. Fist a customer needs to be added to the application. when a vehicle is being added the customer id needs to be added also so i wrote the code as below @Override public void addVehicle( String make, String model, String year, String …

Software Development java
Member Avatar for anisha.silva
0
368
Member Avatar for HankReardon

Hello, What is the best way to check my code? I have written a program that counts the swaps required to sort an integer array using the Bubble, Selection, Insertion and Quick sort methods. How can I be absolutely certain that my swap counts are correct? Will someone take a …

Software Development java
Member Avatar for HankReardon
0
3K
Member Avatar for asifalizaman

who learn java with me if any one then ask me question ???????????????????

Software Development java
Member Avatar for <M/>
0
215
Member Avatar for bornwith

I am trying to change a computer's IP address from inside a VB project using netsh. I can get the cmd prompt to open but it doesn't pass the arguments. Any thoughts? Thanks Private Sub BtnTest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnTest.Click Dim IPmsg As String Dim …

Software Development lan-wan vb.net
Member Avatar for bornwith
0
3K
Member Avatar for alwayslearn

i have a problem when updating database. i need to update stock value in other table and count it and update to another table again. here the code : 'in every row on 'SalesDetailBindingSource' For Each SalesDetailData In SalesDetailBindingSource MsgBox("SalesDetailData : " & SalesDetailBindingSource.Count) 'dim use to take parameter Dim …

Software Development vb.net
Member Avatar for lolafuertes
0
350
Member Avatar for StefanRafa0

hello guys i want to make progress bar in netbeans i trying with this code but the progres bar doesnt work property just showing 100% when finish and doesnt have animation of doing that progress: public final class Music extends javax.swing.JFrame { public static class Start implements Runnable { @Override …

Software Development java java-netbeans java-swing oracle
Member Avatar for mKorbel
0
286
Member Avatar for Papa_Don

Hi Group! I need to write the data from multiple TextBoxes (which I've moved to individual string names) into one text file (miscflds.txt). These individual strings will need to be written one on top of the other. To be clear, it will need to look like this: Item A Item …

Member Avatar for TnTinMN
0
618
Member Avatar for welshly_2010

how can i add data to a label that i have and keep updating it based on the folder selected here my code so far def listDir(): dirname = tkFileDialog.askdirectory(parent=root,initialdir="/",title='Please select the file you would like to scan') myvar.set('Current Folder Selected is: ') label = Label(root, width = 30, height …

Software Development python tkinter
Member Avatar for vegaseat
0
169
Member Avatar for MRehanQadri

Let f1 and f2 are two user defined functions. main(){ int *p; f1(&p) } f1(**p){ f2(&p);//If I've to pass the pointer by reference again in another function, will I've to do something like this? } f2(***p){ **p = NULL; }

Software Development c++
Member Avatar for MRehanQadri
0
183
Member Avatar for asifalizaman

#include <iostream> #include <conio> #include <windows> void main() { int opt; cout<<"\t\twhich type of window you have\n\t\tEnter one for shoutdown for windows xp\n\t\tEnter 2 for windows 7\n"; switch(opt) { case 1: system("C:\\WINDOWS \\System32\\shutdown-s-t-0"); break; case 2: system("C:\\WINDOWS \\System32\\shutdown/s/t 0"); break; } getch();} using borland execute that program and shutdown your …

Software Development c++
Member Avatar for deceptikon
0
465
Member Avatar for krystosan

why does this gives error `print "module {0}".format(key)` , i hope this is nt the python version problem...

Software Development python
Member Avatar for vegaseat
0
345
Member Avatar for needhelp88

Hi everyone, I have created an implementation of the game Tic Tac Toe using a board array that is 3 x 3. It reads in a turn from the user via the keyboard, and then the computer returns a move. I have written the computer AI to basically do the …

Software Development algorithm java
Member Avatar for needhelp88
0
372
Member Avatar for maytham

Private Sub Command1_Click() Dim a, b, cc As Integer Dim p(3), d(3), e(3), t(3), h(3), w(3), c(3), f(6) As Integer If Text4.Text <> "" Then strfile = Text4.Text Open strfile For Input As #1 For i = 1 To 3 Input #1, p(i), d(i), h(i), w(i) Next i Close #i …

Software Development visual-basic
Member Avatar for maytham
0
269
Member Avatar for JavaGr33nh0rn

import java.io.*; import java.util.*; import java.util.Scanner; public class cooperativeCanteen60 { static Scanner console = new Scanner(System.in); static Scanner sc = new Scanner(System.in); public static void main(String[]args) { //throws java.io.IOException { Scanner in = new Scanner (System.in); int type; int discountRange; int discount; int customerType; int number; int rtotal; int vtotal; …

Software Development java
Member Avatar for JavaGr33nh0rn
0
262
Member Avatar for peymankop

Hi! I'm working on a notepad project and like original notepad i want the form title set by the name of the file that has been openned so how can i do that?! thanks...

Software Development java
Member Avatar for JamesCherrill
0
125
Member Avatar for jeansantos

I have not found any answer on Daniweb neither on the web. What I need is a winform that send an e-mail using the Exchange Server on the local network are and authenticate with the current domain user without entering credentials. It is possible? I have this code? Can anyone …

Software Development email vb.net
Member Avatar for tinstaafl
0
321
Member Avatar for rev_ollie

Hi, I'm doing some more work on my sensor program - and it now has a GUI and graph which I'm happy with. I'm having a look at a WX python tree - which looks like a good control for what I'm looking for. The question I have is this …

Software Development gui os-x python
Member Avatar for rrashkin
0
221
Member Avatar for Tinnin

Hi All, I'm trying to save an incoming email as a .txt document but I'm having some trouble with the VBA. My procedure is as follows: Sub ConvertToPlainAndSaveAs(Mymail As MailItem) Dim strID As String Dim objMail As Outlook.MailItem strID = Mymail.EntryID Set objMail = Application.Session.GetItemFromID(strID) objMail.BodyFormat = olFormatPlain objMail.SaveAs "C:\Users\Me\Documents\path\to\Test.txt", …

Software Development session visual-basic
Member Avatar for Tinnin
0
144
Member Avatar for firebird102085

Hello All, First - I am just a beginner at this (just started studying C++ this semester) so I am lost somewhat sometimes and I think I am making good headway with my first array, but, I can not get it to return any output in my console window. I'm …

Software Development c c# c++
Member Avatar for mrnutty
0
1K
Member Avatar for Lin2013

Question is Write a modular program (function) for problem given below. This program will let you enter the initial balance for the month, followed by a series of transactions. There is no limit on the number of transactions the program can process. A transaction takes the form of two input …

Software Development c++
Member Avatar for otengkwaku
0
141
Member Avatar for Ashenvale

Hi! I tried creating a log-in screen that is connected to a database from the examples I've seen on the net. The thing is, I wanted to put a function where the user can only log in if the account is not yet expired. for that, I've put a datefield …

Software Development vb.net
Member Avatar for Ashenvale
0
142
Member Avatar for iciaguevara

Someone try my code. And help me with the txtQty TextField. import java.awt.*; import java.awt.event.*; import java.applet.*; import java.text.*; import javax.swing.*; public class Cashier extends Applet implements ActionListener, KeyListener { private final double applePrice = 15.75, orangePrice = 13.50, pomeloPrice = 95.25; Panel topPanel, eastPanel, westPanel; Label lblTitle, lblQty, lblTotal; …

Software Development java java-swing
Member Avatar for edensigauke
0
198
Member Avatar for AzizTitu

Is it possible to declare an array with a variable as its index value, so that the user himself/herself can enter the exact number of items required....??

Software Development c
Member Avatar for deceptikon
0
244
Member Avatar for akasekaihime

Hello, Good evening! I am trying to validate my atachments in my system. In my program, there is an upload button, what I am trying to do is to validate it by not copying and saving the upload file once it already exists in the database..... HERE IS MY CODE: …

Software Development file-system vb.net
Member Avatar for Reverend Jim
0
249
Member Avatar for thewilf

Hi All, Hopefully a quick one but I don't think it will be :( I have a piece of software which is a data logger and plays sounds when users have been inactive for a period of time etc... The software also plays a type of audio file upon a …

Software Development audio vb.net
Member Avatar for thewilf
0
245
Member Avatar for Papa_Don

Group, The SQL Server (I'm using the edition that comes with Visual Studio 2010 Express) is different in every aspect form the database(s) that existed in the UNIX based program I work with over the last 15 years. There is much to learn and understand. With that said, I've connected …

Software Development sql unix vb.net visual-basic visual-studio
Member Avatar for Reverend Jim
0
183
Member Avatar for IT_Techno

Hi every one, I need to use System.Windows.Documents & System.Web.UI.WebControls namespace in my visual studio Windows Form c# project, they do not found in my refrance. i serched for long time on internet no more satisfactory in results. can any one helpe me Best Regards, IT_Techno

Software Development visual-studio
Member Avatar for Ketsuekiame
0
214
Member Avatar for Ralphael

I am trying to play an mp3 file using the JMF java library and an mp3 codec with the following code but i am getting an error and don know the source package source; import java.io.File; import javax.media.Format; import javax.media.Manager; import javax.media.MediaLocator; import javax.media.Player; import javax.media.PlugInManager; import javax.media.format.AudioFormat; import javax.media.*; …

Software Development audio file-stream java
Member Avatar for stultuske
0
974
Member Avatar for waqas.zafar.125

hey guys ! i have been given an assignment as pasted below : You will be given two files. Grid.txt will contain a grid of letters (as shown below) j q v r l k u v e r s i o n l d v k e r n …

Software Development c++ printer
Member Avatar for ravenous
0
155
Member Avatar for <M/>

I have a snippet of code and for some odd reason I can not print it. int[] answer = new int[15]; for (int i = 0; i < answer.Length; i++) { answer[i] = Console.ReadLine(answer); } It says that I can not do `Console.ReadLine(answer);`. How would I get this snippet of …

Software Development
Member Avatar for tinstaafl
0
224
Member Avatar for iciaguevara

This is the output: https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-prn1/541619_462450913826230_932486202_n.jpg This happens when I input "1" in the quantity textfield. (The quantity textfield turns null after inputing a value) But when I put "1" in the quantity textfield and click Oranges, it overwrites the Apples. https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-ash4/299813_462450910492897_2137805386_n.jpg WHat i wanted to happen is that it'll tally …

Software Development java java-swing
Member Avatar for ~s.o.s~
0
246

The End.