43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for EmpK

So far i have a code that only allows you to enter numbers but how do i limit the value from 0 - 9999. Also how would i be able to display a message label if the user is doing something illegal. Right now i have the messagebox setup but …

Software Development vb.net
Member Avatar for EmpK
0
748
Member Avatar for KeesA

Hallo, I have a Java book from before Oracle took over Sun. In the chapter about pictures for buttons etc., the writer suggest to download a free to use icon set from java.sun.com/developer/techDocs/hi/repository Ofcourse this place does not exits anymore and the Oracle site is not clear to me where …

Software Development gui java oracle
Member Avatar for KeesA
0
216
Member Avatar for hwoarang69

String query = "create table emails " + "(ID int, " + "To varchar(20), " + "From varchar(20), " + "Message varchar(50))"; this java statment looks right. but getting a syntax error.

Software Development java sql
Member Avatar for hwoarang69
0
87
Member Avatar for ibthevivin

So let's take "banana", what happens when the program gets to if (ch <= 'd')? My understanding is the 'b' is < 'd' so it moves to the else. Am I wrong or right? If I'm right, then what happens at return 1 + g(s, index + 1); public class …

Software Development java
Member Avatar for ibthevivin
0
191
Member Avatar for Wh1t3gh0st

Hi, I am having trouble when I read in an integer from the keyboard and I try to display it to the screen back as the same integer. It pops out as an ASCII character. Am I doing this wrong or is there a way to read it as an …

Software Development assembly
Member Avatar for Wh1t3gh0st
0
105
Member Avatar for kedxu

**Background**: I have some experience in programming, but it's not a lot and not very good. I'm taking my first Java class this year, but because the pace is so slow I decided to just learn with the aid of the internet. This is how I have learned most of …

Software Development audio java
Member Avatar for kedxu
0
391
Member Avatar for HiHe

Seconds since epoch should be zero, but are not: '''timetuple1.py create a time tuple for epoch 1/1/1970 00:00:00 however, seconds since epoch does not give 0 ''' import time timetuple = time.strptime("01/01/1970 00:00:00", "%m/%d/%Y %H:%M:%S") print(timetuple) print('-'*40) # seconds since epoch 1/1/1970 00:00:00 secs = time.mktime(timetuple) print(secs) '''my result >> …

Software Development python
Member Avatar for HiHe
0
391
Member Avatar for savedlema

Why do I get an error creating a temporary table with something even as simple as this:"CREATE TABLE #Results"? But this "CREATE TABLE Results" works. I thought we put # when we need to create temporary tables (Access), its like I've once done that. Help on that please? Thanks!

Software Development vb.net
Member Avatar for savedlema
0
392
Member Avatar for sobias

Hi Guys, There's something bugging me in the past 2 days. In Doubly Linked Lists, when will a Node get comepletely deallocated? is it when both **Next** and **Previous** references points to **NULL**? forget about the class and the method **remove()** and such. Let me make an example so you …

Software Development java linked-list
Member Avatar for sobias
1
231
Member Avatar for G_Waddell

Hi, I'm updating an application to .net from VB 6.0. It uses crystal reports to display reports but we get issues around versioning and having to have the client install Crystal so we would prefer not to depend on Crystal. I was originally going to use an XMLReader object to …

Software Development asp.net dataset vb.net visual-studio
Member Avatar for G_Waddell
0
505
Member Avatar for FUTURECompEng

This was in the game development section and I think I accidently put it there (or an admin moved it, if so then next time can you let me know, thanks). So I am posting it here (java forum community is of higer quality when giving responses) , I hope …

Software Development java legal puzzle
0
202
Member Avatar for anukavi

Hi, I have got an integer as 0010000001. I need to remove the last 4 digits ie 0001 and the remaining digits is 001000(this is expected) The truncation of last 4 digit is standard. ie the size of last digits is always 4. can anybody help me to code this …

Software Development c++
Member Avatar for Lucaci Andrew
0
1K
Member Avatar for belber

hallo all.. i have question about connecting barcode scanner to vb6 how to connecting barcode scanner to vb6... i use usb barcode scanner... did i must set port or some code in vb6..??? or it works automatically..??? i need some code reference plsss...

Software Development visual-basic
Member Avatar for ChrisPadgham
0
1K
Member Avatar for Morbs

I keep recieving an error on lines of code 77-80 and I'm not really sure what I'm doing wrong. They're all the same error and goes as follows: ----jGRASP exec: javac -g Program5.java Program5.java:72: error: cannot find symbol adultTickets = adultTicketPriceTextField.getText(); ^ symbol: variable adultTicketPriceTextField location: class Program5.buttonListener Program5.java:73: error: …

Software Development gui java java-swing
Member Avatar for Morbs
0
626
Member Avatar for jamesperkins0

Hi guys, so my task is as follows. A. Develop an application that reads your listings.txt file, analyzes the property listed per agent, and outputs a report to an agentreport.txt file. Your application should do the following: 1. Prompt the user for the name of the input file (listings.txt). 2. …

Software Development file-system java
Member Avatar for jamesperkins0
0
469
Member Avatar for jamesperkins0

hi Guys, I am currently coding for a GUI based program that delivers the amount of time a tutor works in minutes and the amount they go paid total, giving them details on the amount of time work total, and wage per hour and if it is below, minimum, or …

Software Development gui java java-swing
Member Avatar for jamesperkins0
0
393
Member Avatar for kaizen202

Hi All, Is there any event to catch the column visibility change of datagridview? I am using a custom datagridview. I need to update the horizontal scrollbar maximum value whenever the column visibility is changed. Please provide some idea. Thank you.

Software Development vb.net
Member Avatar for kaizen202
0
473
Member Avatar for Everlight

Hello, I have the following code: `#include <iostream.h> void main() { double test=3.46578953218549; cout.setf(ios::dec); cout<<test; }` I understand that iostream.h is outdated and Microsoft Visual Studio has iostream. However, When I remove the ".h" the setf, ios, etc, line 6 has multiple errors. So, my question is: How do I …

Software Development c++ ios visual-studio
Member Avatar for Everlight
0
3K
Member Avatar for gelmi
Member Avatar for challarao

Hi all, A question asks me to write overloading functions to square,circle ,rectangle and triangle.... But since the square and circle have only one parameter I had to change the parameter of area of circle to double...... Is this the only way to accomplish this..... Are there any other ways …

Software Development java
Member Avatar for stultuske
0
204
Member Avatar for rahul.ch

import java.util.*; public class Elway { public static void main(String r[]) { ArrayList[] ls = new ArrayList[3]; for(int i=0; i<3; i++) { ls[i] = new ArrayList(); ls[i].add("a" + i); } Object o = ls; do3(ls); for(int i=0; i<3; i++) //insert code here } static Object do3(ArrayList[] a) { for(int i=0; …

Software Development java
Member Avatar for rahul.ch
0
292
Member Avatar for gelmi
Member Avatar for PriteshP23

I need your urgent help. Please help me to solve it out. Thanks a lot in advanced for your time. error: java.lang.StringIndexOutOfBoundsException: String index out of range: 150 Lines of code in this place there: if (text.length ()> 150) { text.replaceAll summary = ("<[^>] *>", ""). substring (0, 150) …

Software Development java
Member Avatar for PriteshP23
0
187
Member Avatar for Dili1234

I used this code delete recods from table ............ in VBP is database name Sell-is a table name The DELETE statement conflicted with the REFERENCE constraint "FK_Sells_Product_Details". The conflict occurred in database "VBP", table "dbo.Sells", column 'P_Id'. The statement has been terminated. Dim check As Integer Dim cmdproduct As New …

Software Development dataset vb.net
Member Avatar for Dili1234
0
131
Member Avatar for ponnu

GIVEN below is vbscript to connect to acess database and insert records into the table using forms Private Sub Command1_Click() Set rs = cn.Execute("insert into employee values('txtempname.text',txtempid.text,txtssn.text) ") rs.Close cn.Close End Sub Private Sub Form_Load() datafile = "C:\mas.accdb" With cn .Provider = "microsoft.ACE.OLEDB.12.0" .ConnectionString = datafile .Open End With End …

Software Development vbscript visual-basic
Member Avatar for pradipkar
0
2K
Member Avatar for thewilf

Hi All, Got an issue that I know is quite common and read through lots of guides but cant see where I am going wrong. Got the code below which when form is loaded goes and grabs user from a table of usernames and puts them against a combo box …

Software Development dataset vb.net
Member Avatar for thewilf
0
294
Member Avatar for alastair1008

basically my program runs like this 1. open up configure GUI 2. get congiguration 3. close configure GUI 4. open up main GUI now when I am testing in netbeans, this works perfectly however, as soon as I compile and try to run the jar file outside of netbeans the …

Software Development gui java java-netbeans java-swing
Member Avatar for alastair1008
0
222
Member Avatar for UKnod

Here is what I am trying to do: From VB.net open a word template --- Done Populate it from a database ------Done Have word report back with the saved file name so as I can add it to the database history ----Not done. I know is has something to do …

Software Development microsoft-office vb.net
Member Avatar for UKnod
0
157
Member Avatar for Jsplinter

I have the following lines of code, where an if statement compares two strings: string strFound = @"Testing"; string strTest = @"Testing"; if (strFound.Equals(strTest)) { ++iCount; // This line executes when strFound == strTest as expected } if (!(strFound.Equals(strTest))); { ++iCount;// Surprisingly this line always executes even when strFound == …

Software Development asp.net
Member Avatar for JOSheaIV
0
217
Member Avatar for anisha.silva

Hi i have a checkboxcolumn in a datagridview, once i check one of the checkboxes in that column, how do i make that other checked boxes to be unchecked? i was doing sothing as below foreach (DataGridViewRow row in dgvEmerContact.Rows) { if(!string.IsNullOrEmpty(row.Cells[0].Value.ToString())) dgvEmerContact.Rows[0].Cells[0].Value = bool.Parse(dgvEmerContact.Rows[r].Cells[0].Value.ToString()); } didn't work appreciate a …

Software Development
Member Avatar for JOSheaIV
0
230
Member Avatar for SQLpower

My Insert statement is not working for some reason and I cannot figure out why. Any help would be highly appriciated. Imports MySql.Data Imports MySql.Data.MySqlClient Public Class frmCreateUser Dim connectionstring As String Dim dbCon As MySqlConnection Dim strQuery As String = "" Dim SQLCmd As MySqlCommand Dim DR As MySqlDataReader …

Software Development mysql vb.net
Member Avatar for SQLpower
0
272
Member Avatar for zachattack05

Greetings again friends! It's been a while since I've visited. I had to take a while off from working because of family issues, but things are getting better and I'm starting to work again and that means I get to come back and exchange Q&A with the best programming web …

Software Development gui web-design
Member Avatar for zachattack05
0
702
Member Avatar for zarifin99ska

hello, i'm doing a searching form, here is my code [CODE] Dim con As New OleDbConnection Dim cmd As New OleDbCommand Dim rd As OleDbDataReader con.ConnectionString = ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Bengkel\Project\db.mdb") cmd.CommandText = "SELECT * from Book where authorName like '%" & textsearch.Text & "%'" cmd.Connection = con con.Open() rd = cmd.ExecuteReader …

Software Development display listview open-source vb.net
Member Avatar for sinsarith
0
2K
Member Avatar for Matigo

Hello everyone Is there any way to kill the python.exe in Task Managaer "On Windows" using visual basic The Problem is that i do open more than 1 python file at the same, But on task manager it's hows me something like this Python.exe python.exe python.exe python.exe I have got …

Software Development python visual-basic
Member Avatar for Lardmeister
0
1K
Member Avatar for oateye

I am working on a minesweeper project and everything is working fine EXCEPT for when you click on a cell and it contains a 0 (no mines around it) and it is supposed to open all the other "0" cells around it using recursion. Right now, I keep on getting …

Software Development java
0
295
Member Avatar for Bowdown28

Hello, I am new to using windows form application in c++ and i am having a problem with making my program work. I have three textBars and one button. The first textBar is for the user to input a double. When the button is pressed i want it to perform …

Software Development c++ microsoft
Member Avatar for Ancient Dragon
0
341
Member Avatar for funtoosh

I'm trying to load an image in an Applet.The code goes fine and the Applet Window starts but it just gives a blank window instead of showing the image.I put the html file,.class file and the image file in the same directory.Can u figure out where I went wrong?? Here's …

Software Development image java
Member Avatar for shanker31
0
1K
Member Avatar for crownedzero

I see this example frequently and thought I'd give it a shot but I've got something unexpected happening with my Queue. I have multiple threads utilizing my producer class but the output doesn't show that it is being written to by each thread. protected Queue<ProductMessage> prodQueue = new ConcurrentLinkedQueue<>(); @Override …

Software Development java multithreading queue
Member Avatar for ~s.o.s~
0
284
Member Avatar for xcindiix

Hi everyone... im using C++ Microsoft visual studio and would appreciate if you can help me out here. Ive been trying to do this the whole day ... and canttt figure it outtt PLEASEE HELPPP !! I am a total beginner so sorry if i have very stupid mistakes. #include …

Software Development c++ visual-studio
0
114
Member Avatar for WDrago

All, I am working on a simple program that reads temperature, humidity, and dew point from a sensor and logs the result to a .csv file. I am using netbeans and using alt-enter to surround code with try-catch whenever netbeans suggests. The result is pretty ugly and I can't imagine …

Software Development developer-tools java java-netbeans
Member Avatar for WDrago
0
1K
Member Avatar for shihab2555

I have created a table named student including column stu_id, stu_name & Blood_group.I created a delete button to delete rows and I used the following code when delete button is pressed.I take input using jtextfield.But this can only delete by taking input in stu_id.But now i also want to delete …

Software Development java mysql sql
Member Avatar for shihab2555
0
240
Member Avatar for tingwong

Hello all. For my project I have to create a snack machine with mints and cookies. So far I have gotten an array of cookies with the code below. However an interesting problem I'm having is my output: OATMEAL cookie LEMON cookie null CHOCOLATE_CHIP cookie OATMEAL cookie LEMON cookie null …

Software Development java web-browser
Member Avatar for JamesCherrill
0
1K
Member Avatar for tingwong

Hi everyone, I have a little problem with my code right now. For a project, we are to create a snack machine with cookies and mints using a GUI. We are given nickels, dimes, and quarters to enter in. The problem is when I enter in 1 nickel and 6 …

Software Development gui java
0
133
Member Avatar for tingwong

Hello all. So I have a little problem with my school project. We are to create a snack machine with cookies and mints and interact with it using a GUI. We click the add Mints or Cookies button to add to the 'Snack Machine' and then click buy to purchase …

Software Development gui java
Member Avatar for tingwong
0
279
Member Avatar for Fuzzies

Hello! I just started learning C a few weeks ago and I'm having a problem with a program I'm writing The program has to prompt the user for a certain number of values defined as NUM_VALUES, and then calculate the mean and standard deviation of the numbers. Here's what I …

Software Development c
Member Avatar for Fuzzies
0
273
Member Avatar for adams161

I have a Java application i've written, it's a chess client that i've done as a hobby project, and it has a main applicatoin window and all the windows are contained in that. I've had a number of requests from mac users that they'd like to see it converted to …

Software Development java
Member Avatar for JamesCherrill
0
244
Member Avatar for mitch_oso

Hi everyone I'm new in VBA and I have a problem with my code, if someone can help my I will be grateful. I have this part of code in Excel VBA an work fine Dim NumeroArchivo As Integer Dim conta As Integer Dim ListArchivAbierto As String NumeroArchivo = Workbooks.Count …

Software Development visual-basic
Member Avatar for Nutster
0
226
Member Avatar for Neethaa

Sub empno() ComboBox2.Items.Clear() sql = "select empno from tbl_empinfo" If rs.State = 1 Then rs.Close() rs.Open(sql, conn) Do While rs.EOF = False ComboBox2.Items.Add(rs(0).Value) rs.MoveNext() Loop End Sub how do i write this for an access connection???

Software Development vb.net
Member Avatar for xerohomicide
0
128
Member Avatar for vindom

Hi! I'm writing little software just to get some practice in c#. I have listview in form 1 where program displays first name and last name form access database. When admin selects name/surname in listvioew and press show usercard(form2) I have a label in form2 and I want it to …

Member Avatar for vindom
-1
1K
Member Avatar for Neethaa

Actually I'm doing a project to maintain the company info, here i wanted to write a code to check whether the company id already exists or not. that is if the id 123 is already present in the access database then it shuld show the msg that it already exist. …

Software Development vb.net
Member Avatar for Neethaa
0
125

The End.