43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for GoldenDrago

I had posted earlier requesting help with my code, but I quickly cleared up my issues. I am almost complete with my work, but I was just wondering if I could get some help on fixing some code which may cause my program to crash or not function properly. [CODE]public …

Software Development java
Member Avatar for javaAddict
0
83
Member Avatar for Ecliptical210

Hi guys, I'd really appreciate it if someone could look over my code and tell me why my JComboBox isn't working. I've got 3 Classes, 2 for the GUI, one for the standalone which the array is contained in. [CODE]import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JFrame; import javax.swing.JComponent; import javax.swing.SwingUtilities; import …

Software Development api gui java java-swing windows-api
Member Avatar for javaAddict
0
160
Member Avatar for wingers1290

First off thanks to all the members of daniweb for all there help and support, they've been fantastic. I'm on the last stage of my program and i need a little more help. I am using binary serialization to save information, i don't want to use xml because frankly it …

Software Development c c# c++ seo xml
Member Avatar for wingers1290
0
172
Member Avatar for TommyTran

I have an assignment that asks me to create an application that lets the user enter a word or phrase, then displays the number of vowels found in that word or phrase. Here's what I have so far: [CODE]Dim mystring As String = Me.txtenter.Text Dim chars As Char() = mystring.ToCharArray() …

Software Development vb.net
Member Avatar for apegram
0
1K
Member Avatar for Lukezzz

I have created a completely new new Windows Form application and are trying to add this namespace: [code] #include "stdafx.h" #include <ctime> #include <iomanip> #include <iostream> #include <fstream> #include <sstream> #include <string> #include <vector> #include <cmath> #include <algorithm> #include <limits> #include <ios> #include <cstdio> #include <numeric> #include <cstdlib> #include <ctype.h> …

Software Development algorithm c++ ios
Member Avatar for Lukezzz
0
207
Member Avatar for TommyTran

I have an assignment that asks me to do the following things: 1. Create a textbox to get the student's first and last name (ie: John Ark) 2. If the student's "first letter of his last name" (which is "A" in John Ark) ranged from A to I, then puts …

Software Development vb.net
Member Avatar for apegram
0
107
Member Avatar for scranton

This is new for me so I'm not really sure how to do this... I'm trying to create a base class that I can inherit from but there are some fields that I need to ensure each inheriting class specifies a value for. How do I do that?

Software Development
Member Avatar for scranton
0
125
Member Avatar for PcPro12

So I have a question about timers and need some help... I'm still learning VB.NET programming, so I'm a beginner here...but so far, with timers and all, I've been able to do them well. My last assignment dealing with timers went very smooth...one of the things was to create timers …

Software Development vb.net
Member Avatar for jenphoenix
0
253
Member Avatar for Acegikmo

[B]This has been solved! Look at the end of this post.[/B] Hello! I'm having some trouble here with polymorphism, as I need to access methods in a subclass from an array of superclass objects. This method is called parseCommand(Command c); The method exists in the superclass and is overridden in …

Software Development java oop
Member Avatar for masijade
0
276
Member Avatar for dre-logics

I Use visual Basic 8.0 and Mysql 5.0 I have two exactly the same Tables: Table1: RecordID , Integer = primary key auto_increment NOT NULL Articlenr , Integer Articlename, Char(20) Table2: RecordID , Integer = primary key auto_increment NOT NULL Articlenr , Integer Articlename, Char(20) Table1: has [COLOR="Green"]two records[/COLOR]: RecordID, …

Software Development vb.net visual-basic
Member Avatar for dre-logics
0
214
Member Avatar for fadia

Hello guys.. I'm working on a project. There are 3 classes. Two are inherited from one. This is the implementation of the main class. There's an error. I have no idea how to debug it. Would you please check it?! [CODE]# include <iostream> # include <string> # include "MainMenu.h" using …

Software Development c++ visual-studio
Member Avatar for CJesusSaves
-1
115
Member Avatar for Nikhar

I have been studying graphs currently and came across a way to implement it. [code] #include<iostream> #include<vector> #include<string> #include<map> #include<functional> #include<cstdlib> using namespace std; struct vertex; struct edge { vertex *dest; double cost; edge(vertex *a=NULL, double b=0) { dest=a; cost=b; } }; struct vertex { string name; vector<edge> adj; vertex(string …

Software Development c++
Member Avatar for Nikhar
-1
110
Member Avatar for adam291086

Hello, i am trying to add a keyboard event listener to my Jpanel. But i am having no sucess. This is my [B]board.java[/B] [CODE]package snake; import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.awt.geom.*; import java.awt.image.ImageObserver; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.ImageIcon; import javax.swing.JComponent; import java.awt.Image; import javax.swing.JPanel; import java.awt.event.ActionEvent; import …

Software Development java java-swing
Member Avatar for thomas_naveen
0
1K
Member Avatar for makymakaru

can anybody explain what the difference between the 2 codes below? i'm using visual basic 6 and i'm connecting access dbase. and one other thing, i'm trying to connect access 2007 with my vb6 but i can't remember the code, i know the code below works with access 2003 and …

Member Avatar for codefixer
0
157
Member Avatar for chathuD

[CODE]private void button1_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection ("Data Source=.\\SQLEXPRESS;Initial Catalog=test1;Integrated Security=True"); SqlCommand cmd = new SqlCommand("dbo.get", con); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.AddWithValue("@userName", textBox1.Text); try { con.Open(); SqlDataReader read = cmd.ExecuteReader(); read.Read(); if (read.HasRows) { textBox2.Text = read["password"].ToString(); Form2 fr2 = new Form2(); fr2.Show(); con.Close(); } else …

Software Development open-source
Member Avatar for Geekitygeek
-2
95
Member Avatar for checho

hi i have the next problem i have an array or arraylist from class Student which has firstname, lastname and grade. How can i sort them by grade (value) - ascending and descending? [CODE]package zadacha_1; import java.awt.List; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; public class Zadacha_2 { /** …

Software Development java
Member Avatar for Andreas Hollman
0
490
Member Avatar for mwitu

Hi, i'm trying to take the last list from a list of lists, use that as a start point, then iterate through the list of lists and find the closest match, then use that matched list as a base and iterate through the remaining lists for the closest match to …

Software Development python
Member Avatar for Gribouillis
0
1K
Member Avatar for Israelsimba

im facing a challenge here peple. i will give as much detail as i can. i am trying to come up with code such that when a button is clicked it runs through a field "copiesremainng" in my subscription table and subtracts 1 from every record in that field. this …

Software Development open-source visual-basic
Member Avatar for codefixer
0
152
Member Avatar for asenteni

Hi guys, I would like to know if there is any way that I could disable a datagridview row and make it unselectable. I need to do this because I have clients in the grid of which some are active while others have been disabled but i am still displaying …

Software Development
Member Avatar for asenteni
0
16K
Member Avatar for filch

Hi, I am trying to get a perl script that a contractor created for me but I am having some issues with it. I am NOT a perl programmer and I know just enough about it to be dangerous. I am more of a PHP/CSS guy. Anyway, the purpose of …

Software Development client-server perl
Member Avatar for filch
0
227
Member Avatar for cmpt

search(l, key): if len(l) == 0: return False elif l[0] == key: return True else: return search(l[1:], key) I was just wondering if there is any way that i can get rid of "elif" statement. The function is suppose to return False if the key is not in the list …

Software Development python
Member Avatar for ptirthgirikar
-1
161
Member Avatar for cooldude9509

I'm new here at DaniWeb, and my english suck. Does anybody know how to make a form open [B]itself[/B], just in a new window? I want to make a form, that haves a button in it. when i click the button, it opens up a "copy" of itself (the old …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
2K
Member Avatar for tqmd1

Dear Experts SqlServer Table1 has data as follows Sno-------date 1------01/01/2010 8------01/01/2010 1------02/01/2010 5------02/01/2010 2------18/01/2010 9------18/01/2010 3------18/01/2010 1------03/01/2010 6------03/01/2010 My questions are: 1) I want to display the SMALLEST Date into textbox1 which is 01/01/2010 2) I want to display the BIGGEST Date into textbox2 which is 18/01/2010 3) I want …

Software Development vb.net
Member Avatar for apegram
0
113
Member Avatar for TommyTran

[CODE] Dim InputText As String = Me.txtenter.Text Dim Letters = From c As Char In InputText.ToCharArray Select c & " = " & AscW(c) & " " Me.lblanswer.Text = String.Join("", Letters.ToArray) [/CODE] The above code is to convert each letter in a word or phrase (including the space) to its …

Software Development vb.net
Member Avatar for apegram
0
92
Member Avatar for vivek4020

Hi, I have a structure declared in C# [CODE]public struct myStruct { int x; }[/CODE] I created a 2D array of structures [CODE]myStruct[,] theStruct = new myStruct[3,3];[/CODE] What is the C# equivalent of the following C++ code? theStruct[0][0].x = 50;?? Please Help Thanks in advance

Software Development c#
Member Avatar for sknake
0
1K
Member Avatar for tqmd1

Dear Experts How to make datagridview current row bold? Please help

Software Development vb.net
Member Avatar for kvprajapati
0
212
Member Avatar for tizzo233

Hi. I have a working program that lets you put info about a coupon. and then later on you can search for coupons, display them or remove them from the linked list. My problem is that, we are not supposed to perform input operations from our classes. But the way …

Software Development c++ linked-list
Member Avatar for Agni
0
111
Member Avatar for sathya8819

Hi, I have an application where I have to use two dll files as reference to my project. The thing is, my dll files both have the same name, but are something like different versions. I am not able to add both as references becoz of clash in name. And …

Software Development
Member Avatar for sknake
0
83
Member Avatar for sbanks_charles

Ok, I know that I am missing something due to my lack of knowledge with Binary Serialization and wish I could find better material on it. In the mean time, thanks to one of the moderators help, I have now been able to store an array in my database. Once …

Software Development vb.net
0
63
Member Avatar for DevC++4.9.9.2

Hey, Im using visual studio 2008 trying to make a windows form application that uses a database. Currently The design looks like this a Table BandID -> links to a table of Contacts -> also links to a table of Songs If i have a member of Table BandID with …

Software Development database-design visual-studio
Member Avatar for DevC++4.9.9.2
0
247
Member Avatar for evanguiton

I am currently doing a college project using asp and c#. I have the sql database connected and I am able to write to it but i cant read from the database the way I want. So I have a dropdown list populated by dates from my database and I …

Software Development gui xml
Member Avatar for evanguiton
0
158
Member Avatar for robinotje

Hello everyone, I'm new to C / C++, and just wanted to make a file which can delete an item. The code worked, but when I want to give a path, it doesn't work anymore. Any help? [CODE] #include <iostream> #include <stdio.h> using namespace std; int main() { remove ("c:\users\asus\new.docx"); …

Software Development c++ file-system visual-studio
Member Avatar for robinotje
0
194
Member Avatar for tillaart36

Hello, im trying to implement a template matching algorithm with the use of Python + PIL and I'm trying to follow the code that wikipedia gives for template matching -> [URL="http://en.wikipedia.org/wiki/Template_matching"]http://en.wikipedia.org/wiki/Template_matching[/URL] Basically it loops through all pixels of a search image, and all pixels of a template. The sum of …

Software Development algorithm python
Member Avatar for vegaseat
2
3K
Member Avatar for Jarq

Hi I need to insert a flat text file into a SQL Server table using C#. The text file lines are 500 characters long and I will need to break it up into columns. Column 1 – 6chars, Column 2 – 1chars, Column 3 – 8chars I’ve managed to read …

Software Development sql
Member Avatar for Jarq
0
3K
Member Avatar for bords

Hello everyone...can anyone modify my code below....i have a database named "Database1.accdb" with a table "Applicants"...The columns are ID(auto incremented),Name,and Age.... on this code, i can display the data from my database... My problem is that how can i add a new record to my database...or delete a record... I …

Software Development microsoft-access open-source
Member Avatar for bords
0
136
Member Avatar for JaceDBN

Hi, Im building a database in Access with the use of VB. If I have 2 tables, both of which will be used as a subreport/form: 1 - Invoice Details a - Invoice Number : Integer b - Item: String c - Quantity - Number d - Rate/Cost/Wateva - Currency …

Software Development visual-basic
Member Avatar for enelra
0
316
Member Avatar for aszopinski

I am relatively new to C++ and am currently taking a course for it. One of my assignments is to make a calculator for hourly wages and figure gross and net pay based on a fixed percentage for taxes. I am able to compile the code if I change the …

Software Development c++ visual-studio
Member Avatar for Rajesh R Subram
0
184
Member Avatar for 21KristianN

Dear freinds, I have a big issue which I have been struggling with for days now. I have a richtextbox where users Can input text and print it. My problem is that i don't want to allow more than one page to be printed so i need to prevent the …

Software Development vb.net
Member Avatar for 21KristianN
0
175
Member Avatar for java..

i want to set some initial level parameters before calling main method... how to do... within main i can set it first but it have no effects...

Software Development java
Member Avatar for java..
0
93
Member Avatar for plusplus

Is there a way to use a progress bar on a message box?

Software Development visual-basic
Member Avatar for ankush.mukherje
2
162
Member Avatar for SteveyD

Greetings again. I'm encountering an error with the following section of my script. If I include the commented section my program returns the following error; "(Router -Startup) the URL cannot be empty. Parameter name : url" With it commented out like below, the .dll functions correctly. [code] public List<Form> Startup() …

Software Development c c# c++
Member Avatar for SteveyD
0
818
Member Avatar for Dudesup

Not sure if this is the right place to put this as it's my first post, so if it's not I apologize. I'm wondering if there is a way to put an image into the background of my applet. I've searched all over the place and just can't seem to …

Software Development html-css image java
Member Avatar for Dudesup
0
125
Member Avatar for SasseMan

Hi! I'm writing a java app with a swing gui. The problem is the following. I am developing on a mac, where it runs fine. but when I run it on Windows Posready09 (Windows XP), which is the platform the app is intended for, or Windows7, half of the window …

Software Development gui java java-swing
Member Avatar for SasseMan
0
216
Member Avatar for JohnPhilipps

Hello, I have a VB form with 2 comboboxes and a textbox in which a user can type into. I would like my mouse cursor to move from my 2nd combobox selection directly over to the textbox that I have on a VB form. 2nd comboboxe name: "CodeComboBox" Textbox name …

Software Development vb.net
Member Avatar for JohnPhilipps
0
402
Member Avatar for RoyMicro

Hello My application creates and reads files from the same folder. So I am using appliaction.startuppath property to get the current path so far. Now I have included a open file dialog box to browse and load another file from other folder. But after this dialog loads the file from …

Software Development
Member Avatar for sknake
0
501
Member Avatar for Bagleys

Hi i am trying to delete a file(s) from a checked list box, when i click a button. This is the code i have: [code] Dim item As IO.FileInfo For Each item In CheckedListBox1.CheckedItems Try item.Delete() Catch : End Try Next item [/code] But i get the error: Unable to …

Software Development vb.net
Member Avatar for Bagleys
0
194
Member Avatar for gedas

hey guys, im working on a little program that would ask the user to input file name and would ask the user again to specify the output file so the contents of file one would be transferred in to the file 2. i have been working on it for few …

Software Development c file-system
Member Avatar for gedas
0
181
Member Avatar for campkev

I know how to use System.Web.Mail to send emails. Anybody know how to send encrypted emails?

Software Development email
Member Avatar for Lam4
0
162
Member Avatar for BoB3R

Hello, I am trying to do a program that is reading for example a.txt file that have 5 lines and i want him to show me for example line #3 only, i know i need to use fgets but i rly dont know how to start it a.txt [CODE]1;27.01.1957;8;12;31;39;43;45; 2;03.02.1957;5;10;11;22;25;27; …

Software Development c
Member Avatar for Dave Sinkula
0
128
Member Avatar for deonis

Hello ! I am trying to make a little program, which would go through the string content, find some keywords inside of it and return their position in the text. Unfortunately my program does not work for the duplicated words like "AFIX" or "CONF" (see example bellow). Is there simple …

Software Development python
Member Avatar for deonis
0
138

The End.