43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for tararakeane

I'm working through a book and my code is exactly the same as the book but not working correctly. Basically it's a typing game. System adds letters to a listbox which should disappear when I type them. Instead they're highlighting as I type them but are not being removed. I've …

Software Development
Member Avatar for itzmesurya
0
886
Member Avatar for riahc3

Hey I want to control a textbox to only allow numbers, backspace and a certain length. Ive tried with the IsNumeric function but I cant seem to get it to work. Thanks.

Software Development vb.net
Member Avatar for princenathan
0
4K
Member Avatar for krejar

My problem here is that I am trying to get the getBigJackpot() to correctly woork. If I were to win say 10 coins, it would store in an int, but if I were to win 5 coins, that 10 would stay and disregard the 5 coins won. If I were …

Software Development java
Member Avatar for krejar
0
121
Member Avatar for Rock_IT

im a beginner wid vb .net and need to clear the air wid connecting a database file created on sql server 2008r2 wid vb.net 2008 for a project..plz nebody help from scratch regardng retriving,insertng n modifyng data using vb.net code..awaiting....

Software Development sql vb.net
Member Avatar for princenathan
0
223
Member Avatar for rfrapp

I'm writing a program that is supposed to search an array between the values of -1000 and 1000, as well as sort it using the 3 different sorts (bubble, insertion, selection). I have the searching part done, but my bubble sort isn't working right. It seems right in my head, …

Software Development c++ storage
Member Avatar for DeanMSands3
0
178
Member Avatar for scheppy

I know that .bat isnt java, but I dont know were else to place this thread So ive finished my program, has sounds, images and other junk all in a folder on my desktop. as soon as you open the folder you can see the file program.java and also folders …

Software Development file-system java
Member Avatar for DavidKroukamp
0
306
Member Avatar for jigglymig

my problem is the Point plus(Point). how should I declare it and all that. [CODE]// point.h -- This creates a point with both x and y of type integer #include <iostream> using namespace std; template<typename T> class Point { private: T x; T y; public: Point(T,T); Point(); void set_x(T); void …

Software Development c++
Member Avatar for jigglymig
0
110
Member Avatar for mallikaalokam

[CODE]import java.io.*; import java.util.*; import java.lang.*; class Login extends Thread { public void run() { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); Scanner s=new Scanner(System.in); while(true) { System.out.println("Enter username:"); String h=br.readLine(); System.out.println("Enter password:"); String d=s.nextLine(); } } } class Display extends Thread { public void run() { while(true) { System.out.println("ur username is:"+" "+h); …

Software Development java
Member Avatar for DavidKroukamp
0
145
Member Avatar for shanki himanshu

i am using 'atof' function to convert string into double but it shows the correct value if the string length is 17(max). is ther any function if string length is more than 17?

Software Development c
Member Avatar for DeanMSands3
0
150
Member Avatar for skran

Hi all I m trying to filter a sql db with many filter criteria which inert the user in textboxes .. i ve tryed this query [CODE]query = "Select * from T_INCIDENTS1 where IFF (txtPostcode.text is notNull) then Incident_Postcode='" & txtPostcode.Text & "') and iff (txtDMA.text is notNull) then Incident_DMA='" …

Software Development vb.net
Member Avatar for skran
0
228
Member Avatar for wallet123

this is the code that i did: [CODE]import javax.swing.JOptionPane; public class MidtermExam { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int x; int y; int z; int count = Integer.parseInt(JOptionPane.showInputDialog(null,"Enter any Number:")); for(x=1;x<=count;x++){ for(y=x;y<=count;y++){ System.out.print(x+""); } System.out.println(); } } } [/CODE] …

Software Development java java-swing
Member Avatar for stultuske
0
189
Member Avatar for Wolxhound90

Hey all, I'm trying to show some concatenated data in a CheckedListBox so that users are able to select the data for use later on. Here is the code I am using currently: [CODE]Dim con As New MySqlConnection Dim theQuery As New MySqlCommand Dim theTables As New DataTable Dim theAdapter …

Software Development mysql vb.net
Member Avatar for Wolxhound90
0
257
Member Avatar for wallet123

My assignment is to create a program that accepts a list of exam scores (ranges from 0-100) and output the total number of grades and then the number of each in letter grade.. but my problem in the beginning of doing my program is: [CODE]public class Grades { /** * …

Software Development java
Member Avatar for wallet123
0
351
Member Avatar for furqanishaq

hiya i need to create these if statements please can someone show me how to create them i have attached an image alongside this thank you so far i have this public class Logic2 { int Val1, Val2, Val3, Result1, Result2; // creating 1,2,3 integers public void Calculations (int Val1,int …

Software Development java
Member Avatar for rushikesh jadha
0
145
Member Avatar for furqanishaq

How do we write something to square these calculations Result1 = Val3-Val1sqaured; Result2 = Val3-Val2; i need to square these calculation how would i do it so it meant to look like Result1= Val3-Val1sqaured; i cant get the squared bit thank you

Software Development java
Member Avatar for JamesCherrill
0
95
Member Avatar for gingank

Hi guys i need help i want to move the existing data from table 1 into table 2 how i need to write the query. I tried the select into statement but it did not work at all. So how to do it . Please help i doing this on …

Software Development sql visual-basic
Member Avatar for asad al
0
283
Member Avatar for strRusty_gal

Hi Everyone, I have a gridview [CODE] <asp:GridView ID="grid" runat="server" AutoGenerateColumns="false" DataKeyNames="Id"ShowHeaderWhenEmpty="true"> [/CODE] inside the gridview there is a column with checkbox and another label. [CODE] <Columns> <asp:TemplateField> <ItemTemplate> <asp:CheckBox runat="server" ID="Retrieve" /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField> <ItemTemplate> <asp:Label ID="lblName" runat="server" Text='<%# Eval("Name") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> [/CODE] My question is how …

Software Development
Member Avatar for strRusty_gal
0
917
Member Avatar for Gsterminator

I need to know how to create methods to compare two sets of singly linked lists. The only problem is that I can't put a linkedlist inside the method parameters. Please help [CODE]import java.util.*; public class SLinkedList { protected Node head; // head node of the list protected Node tail; …

Software Development java linked-list
Member Avatar for Gsterminator
0
195
Member Avatar for biojet

Hi all , I have some data with a lot of colums but I just want to put out some colums in the diffirent file. I find in forum that have the question [url]http://www.daniweb.com/software-development/perl/threads/377421[/url]. I used that to solve my problem but it is not seccesfull. I can put out …

Software Development perl
Member Avatar for biojet
0
122
Member Avatar for rfrapp

For part of a programming that I'm writing, I want to generate random numbers between the range of -1000 and 1000. My teacher never spent much time on the rand function, and I'm not quite sure how to specify a range like that. Any help would be greatly appreciated. Thanks!

Software Development c++
Member Avatar for skorm909
0
2K
Member Avatar for scheppy

ok, so i have lots of audio in my program that only plays once, and that all just works fine and perfect This is what i do to play music [CODE] try { InputStream a = new FileInputStream ("Sounds-Music/MainTheme.wav"); theme = new AudioStream (a); } catch (java.io.IOException z) //catching the …

Software Development audio java
Member Avatar for scheppy
0
895
Member Avatar for droneerror

I am trying to create a prime factorization c++ program, and halted immediately by this "else" error. I would really appreciate some assistance with my coding. I am new to c++, so I am just getting used to the rules. Here is what I have so far: [CODE]#include <iostream> using …

Software Development c++
Member Avatar for frogboy77
0
3K
Member Avatar for venomlash

:-/ Is there any function in MouseListener that returns the x- and/or y-coordinates of the cursor relative to the origin of a JPanel which currently has the focus? ¡Ayúdenme, por favor!

Software Development java
Member Avatar for 117
0
7K
Member Avatar for vic s

hi, my name is vic...i got one problem cannot fix....output for the number of times each of the tasks has been invoked...i run 3 times each of the tasks but the output always is this program has run 1 times..... [CODE]#include<stdio.h> #include<stdlib.h> void doTaskA(){ printf("Start of Task A\n\n"); int input_1, …

Software Development c++
Member Avatar for Labdabeta
0
153
Member Avatar for collin_ola

Hi, I seem to be having a problem with displaying data in a second form. I've created a linear search algorithm which works just fine - it locates the records from the database. I now want to be able to display the record in another form, I've attempted this using …

Software Development algorithm dataset display open-source vb.net
Member Avatar for collin_ola
0
265
Member Avatar for jehlaipixy

HELP ME PLEASE. I AM A 1ST YR COLLEGE STUDENT :/ Define an interface Filter as follows: public interface Filter { boolean accept(Object x); } Modify the implementation of the DataSet class to use both a Measurer and a Filter object. Only objects that the filter accepts should be processed. …

Software Development dataset java user-interface
Member Avatar for jehlaipixy
0
453
Member Avatar for dos_killer

im trying to make my own kernel.... my kernel is loaded through grub... i tried creating the gdt and idt for myself... i dont know how to test the gdt and as far as the idt is concerned it failed to capture the division by zero error ... source code …

Software Development c github
Member Avatar for dos_killer
0
183
Member Avatar for long89

[CODE] class Circle { private double radius; private String colour; Circle() { } Circle(double r, String c) { this.radius=r; this.colour=c; } public void display() { System.out.println("Radius of circle is "+this.radius); System.out.println("Colour of circle is "+this.colour); } public String getColour() { return (this.colour); } } [/CODE] how calculate and display the …

Software Development java java-swing
Member Avatar for long89
0
154
Member Avatar for PhoenixInsilico

I am trying to parse an html file. But unable to remove spaces using \s (matching character for whitespace) [CODE]use strict; use warnings; open(FILE,"<paragraph.txt")|| die "Can't open para.txt"; my @file = <FILE>; my $all = join("",@file); $all =~ s/\n/ /g; $all =~ s/\./\. /g; $all =~ s/\s\s*/ /g; open (FIL,">paraone.txt")||die …

Software Development perl
Member Avatar for histrungalot
0
120
Member Avatar for jonnyboy12

Hello all . I have just started using the gcnew instead of new for the public ref class, that i have needed to learn for windows forms. I have a problem that shouldn't be as difficult as it is. I have a class that i made called vector2 . It …

Software Development c++
Member Avatar for thines01
0
175
Member Avatar for Amiet Mhaske

Hey guys Hello, I am new a programmer. I am learning C, C++ and C#. But in future I am planning to make some serious applications using C#. Those applications would be based on LAN environment. So which books should I start to read for network programming using C and …

Software Development
Member Avatar for syd919
0
169
Member Avatar for ForceStr

Hello, can anyone explain me why I'm still one step behind with this code? [CODE]private void jTextField1KeyPressed(java.awt.event.KeyEvent evt) { try { DefaultTableModel model=(DefaultTableModel)jTable1.getModel(); model.setNumRows(0); String Name=jTextField1.getText(); String sql= "SELECT * FROM APP.Workers WHERE First_Name LIKE'" +Name+ "%'"; rs= stmt.executeQuery(sql); while (rs.next()) { String d1=(rs.getString("First_Name")); String d2=(rs.getString("Last_Name")); String d3=(rs.getString("Job_Title")); String d4=(Integer.toString(rs.getInt("ID"))); …

Software Development java
Member Avatar for ForceStr
0
180
Member Avatar for long89

how to write code include a try-catch statement to handle exception of this code. In the catch() statement, will provide a proper alert to the user on the error occurred. [CODE] import java.io.*; import javax.swing.JOptionPane; class TestArray { public static void main (String []args) { double a; double w; double …

Software Development java java-swing
Member Avatar for rushikesh jadha
0
429
Member Avatar for Kjeks

Hey! I got a Java Project which runs fine when i call the Main class with the java command. Made it into a -jar file with: jar cmfv manifest kort.jar * the manifest file contains [code] Main-Class: src.KortBord [/code] with the line break at the end when i try to: …

Software Development java ubuntu
Member Avatar for JamesCherrill
0
386
Member Avatar for cubicbox

Hi everyone, I'm now nearly finished with my project which tells us to write a PASCAL program for entering the information of the employees. However, I came across a BIG problem is that I've got no idea on how to edit records in the text files or delete unwanted data …

Software Development file-system pascal
Member Avatar for pritaeas
0
3K
Member Avatar for dejanc

Hello, I'm need to create a small report to be send automaticliy from VB.NET Windows application. I have wrote below code which is workin on my private PC, and with Gmail settings, such as username + password + smtp.gmail.com, etc... But with, my work informations, like my proxy ID + …

Software Development email vb.net visual-studio windows-server
Member Avatar for dejanc
0
1K
Member Avatar for bhagawatshinde

Hi Guys, Can you have any idea about randomly shuffle the questions in database without affecting questions id. Let i will explain little bit more ...... read carefully 1) I have a table containing 5 questions like this que_id que 1 abc 2 bcd 3 efg 4 hij 5 klm …

Software Development
Member Avatar for bhagawatshinde
0
101
Member Avatar for jasbun

how to allow the user to select different pen thickness for the lines, eg. triangle, circle, square?

Software Development
Member Avatar for hericles
0
100
Member Avatar for kolibrizas

1. I did try without trying to read output or trying to read only first line of the output - both of these were successful. 2. However when I try to display full output, it just gets stuck and does nothing. 3. Even more crazy stuff - when I close …

Software Development
Member Avatar for kolibrizas
0
664
Member Avatar for hamidvosugh

In this string "13 12", I like to find if there is an occurrence of '3', but I am not interested in char '3' which is part of "13". In other word I am looking for number 3 not 13. By using the following code in python I always get …

Software Development python regex
Member Avatar for Gribouillis
0
160
Member Avatar for vb2learn

Hello Once again i need help. I have a webbrowser So once webbrowser is completed then it should add the specified value in [TEX]<input type="file"> [/TEX] value in php. Eg: Webbrowser link is [url]http://tinypic.com/[/url] When webbrowser is completed then this [url]http://screensnapr.com/e/LCgzhP.png[/url] value will be our specified value. I tried using …

Software Development vb.net web-browser
Member Avatar for sean7725
0
509
Member Avatar for chuyauchi

How can I set the [U]Actual rolls[/U] and [U]Expected rolls[/U] to no decimal, and [U]Actual percentage[/U] and [U]Expected percentage[/U] to 1 decimal plus a % symbol ? [url]http://images.plurk.com/a2f077138ef908ce71f46b08909c998d.jpg[/url] [CODE] cout << "Point" << setw(17) << "Number of Rolls" << setw(17) << "Actual Percent" << setw(17) << "Expected Rolls" << setw(17) …

Software Development c++
Member Avatar for mrnutty
0
193
Member Avatar for pritaeas

I am looking to encrypt data (preferably XTEA) on my .Net Micro Framework, send it to a webservice in .Net (Azure) and decrypt it there. I found this [URL="http://www.dmcinfo.com/Blog/articleType/ArticleView/articleId/83/Encryption-Compatibility-Between-NET-Micro-Framework-and-the-Full-NET-Framework.aspx"]blog post[/URL] but I am unable to get it to work. The encryption result on .Net differs from the .NetMF. I hope …

Software Development asp.net encryption
Member Avatar for pritaeas
0
206
Member Avatar for sonicx2218

I can't seem to figure out how to separate the code I wrote into 3 separate methods. 1. The main method, 2. the method that creates the strings i need and sends em back to the main method, 3. and the method that displays the if statement. [CODE]import java.io.*; import …

Software Development java
Member Avatar for stultuske
0
156
Member Avatar for chuyauchi

I'm making a dice program that calculates the statistics such as actual percentage, expected rolls and expected percentage and so on. I'm having a difficulty on the Pseudo random number generation. With two dice, the mim. sum of the dice is 2, not 1. There is something wrong with my …

Software Development c++
Member Avatar for DeanMSands3
0
153
Member Avatar for Labdabeta

I was working on a project when I thought that maybe a ::. operator would look funny in some code. Just for fun I typed that into the global scope area like this: [CODE]::. int main() { //etc...[/CODE] and my code completion software said too many results to display. My …

Software Development c++
Member Avatar for Labdabeta
0
200
Member Avatar for JilMakias

How can i send a file at my e-mail address? I want to write it in my C program. Is there any simple way to do that? I Use Dev C++ compiler. I am not using C# or VB. Thanks in advance for answering.

Software Development c
Member Avatar for DeanMSands3
0
6K
Member Avatar for zekstein

I need a sample code to retrieve the source code of a page . Ex : I have [url]www.blahblahblah.tld/file.ext?id=blah[/url] I want to retrieve in a char the source code of that site. Thanks

Software Development c++
Member Avatar for thines01
0
415
Member Avatar for badboy11

Looking for an equivalent container class that matches to C#'s Arraylist collections class. Is there anything that comes close to a container that can provide index based enumeration as well as hold multiple data types. I am trying to create an vector that can hold multiple data types. For example: …

Software Development c c# c++
Member Avatar for badboy11
0
1K
Member Avatar for jpsider

Hi all, I'm working on a school project and I am running into a problem, possibly more... This is my first post, so I am sorry if it ends up ugly. Here is a description of the project: This project focuses on demonstrating your understanding of classes and objects. Before …

Software Development java oop
Member Avatar for Philippe.Lahaie
0
9K

The End.