43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Papa_Don

Hi group, I'm starting a test to see if I can automate some tasks. In this first test, I'm using System.Diagnostics to open a specific version (I actually have two versions on my computer - both are needed). After that's open, I want to open a specific file within that …

Software Development vb.net
Member Avatar for Papa_Don
0
233
Member Avatar for Dark_1

I'm building a board game. The game is played on a 4 by 4 grid in pairs, one player at a time. I would really appreciate if you could help me with this. Please help me. I'm new to Visual Basics. It has been only 1 month since I started …

Software Development user-interface vb.net
Member Avatar for Reverend Jim
0
214
Member Avatar for Toby14

I have been trying to see what I did wrong in my code, but I counldn't find out. This is my second java program after the "Hello World". Could anyone help me to find out why I did not get the right answer for this. For example, if we enter …

Software Development java
Member Avatar for Toby14
0
143
Member Avatar for James_43

Does anyone know if it's possible to intercept the button presses off a presentation remote, just like we are able to listen for keyboard strokes? In this case, the buttons on the remote don't appear to be linked to a keyboard button.

Software Development
Member Avatar for James_43
0
122
Member Avatar for James_43

Hi there, I have two WPF windows. The first (Window1) has a timer that moves an item down a list, then passes the new current selection to a global variable I defined in App.xaml.cs Window 2 then has another timer that is set to .1 of a second after the …

Software Development
Member Avatar for James_43
0
268
Member Avatar for sirlink99

Hello All. I am having 2 problems here with my code. I will start off with the video code first. The video code should capture 20 seconds of the screen at 50fps, however, when I generate it, it generates a 1 minute 7 second video, and I am not sure …

Software Development audio java video
Member Avatar for sirlink99
0
1K
Member Avatar for Erald

No ERRORS query is executed perfectly but no data stored what could be wrong? my database is employee with id, first_name, middle_name, last_name fields id is auto number the rest is short text I'm using ms access. Imports System.Data.OleDb Public Class AccountReg Dim dbProvider As String Dim dbSource As String …

Software Development microsoft-access open-source vb.net
Member Avatar for Erald
0
167
Member Avatar for salesman91

hi this is my code and I am trying to write a simple code to generate total and grand total. I have **id,name,quantity,price,total,grand total** 'total' works perfectly,but I am having problem getting GT to work. here is the code.... the error I am getting is "Input string was not in …

Software Development
Member Avatar for hdojms
0
251
Member Avatar for mjayyy

I have to display the mortgage payment amount and then list the loan balance and interest paid for each payment over the term of the loan but my output isn't changing. import java.text.DecimalFormat; import javax.swing.JOptionPane; public class MortgagePmt { public static void main(String[] args) { int term; //Term in years …

Software Development java java-swing
Member Avatar for mjayyy
0
1K
Member Avatar for divinity02

hi I am trying to build this game. what i have been trying to build for a long time now. it is a multiplication java game that need random numbers to generate it goes like this difficulty level-easy: this difficulty level easy has 3 rounds. the student must be tested …

Software Development java
Member Avatar for divinity02
0
423
Member Avatar for newcoder310

I have a class where there are a few `static final String` variables that have few values that repesent color values. The class is basically used to get the color values. Is it better to convert this to enum? public class Color{ public static final String GRAY50 = "#808080"; public …

Software Development java
Member Avatar for newcoder310
0
232
Member Avatar for Brandon Hatch

I have a problem with a project i'm working on, and I was wondering if it was possible to do what i'm thinking. Basically I have a simple mathematical GUI. I want it to take 2 inputs multiply them and output the answer. I am doing this all through the …

Software Development gui java java-swing user-interface
Member Avatar for Brandon Hatch
0
235
Member Avatar for James_43

Could someone please explain to me the purpose or reasons for using Dispatcher.Invoke? I am getting the error: *The calling thread cannot access this object because a different thread owns it. * and a quick Google search suggested that was due to not using Dispatcher.Invoke (they also said it was …

Software Development
Member Avatar for JOSheaIV
0
142
Member Avatar for James_43

Hi there, I've created a new C# WPF project. The first MainWindow displays a listbox of images within a folder and displays them inside a larger image object. I am trying to get Window1 to open a fullscreen version of the selected image, that changes depending on what image is …

Software Development open-source
Member Avatar for JOSheaIV
0
329
Member Avatar for Erald

Im making a simple login form for my project and I faced this annoying database connection problem. The problem is I can't connect to "MSACCESS2013" it directs me to my errorhandler but I'm pretty sure my datasource is correct. I already created a datasource and I'm using its connection string. …

Member Avatar for Erald
0
2K
Member Avatar for zelrick

Hi everyone; I got no idea how to start this and if it is possible; I have a text file (.txt) that have lot of lines and I want it to transfer it in Excel (.xlsx / CSV) But not all will be transfer in excel, only a specific number …

Software Development c++ file-system microsoft-office
Member Avatar for zelrick
0
2K
Member Avatar for Joe_10

I have a C# table that displays sql database. It has the Id,Name and Location as fields.When the program runs it shows the name place for both name and location. here is the code public static void AddPat(string id,string name, string location) { string insStmt = "INSERT INTO PATIENT (Id,Name,Loation) …

Software Development sql
Member Avatar for Joe_10
0
178
Member Avatar for James_43

Hi there, trying to do something I thought was pretty basic, but can't get around this error. I have a ListBox, List (AllImages) full of image paths, and two image elements. Image 1 displays the selected item, Image 2 displays selected item + 1 I have: `int inx = Convert.ToString(ImageList.SelectedIndex);` …

Software Development
Member Avatar for James_43
0
3K
Member Avatar for boomtifier

I have my instructions in the top of my code. But for some reason when I input a decimal and then return my error message like it is supposed to then I input a valid amount it prints everything twice, once for the valid input then once for the valid …

Software Development algorithm python
Member Avatar for boomtifier
0
3K
Member Avatar for James_43

Hi all, I'm very new to software development. My main area is HTML/PHP/JavaScript, but have done a bit of C# before. I don't believe the idea I have is suited for a web development option, so am looking for ideas / a starting point for a solution to the below …

Software Development video
Member Avatar for James_43
0
181
Member Avatar for Curious Gorge

I'm working on a simple encryption program (for school). It is not currently "homework" just FYI, I'm just practicing the examples in the book. It uses a Caesar's Cipher method (an alphabetical shift). I have not tested this code very much. If something is wrong with it I probably don't …

Software Development display encryption java
Member Avatar for Curious Gorge
0
240
Member Avatar for mbowenitj

I need help. I have a search button and 2 textboxes.Textbox1 should diplay the employee id when the search button is clicked (and it works fine).But I need to automatically see the employee name in textbox2, based on the employee id on textbox1.I'd really appreciate your help. Below is my …

Software Development cybersecurity display vb.net
Member Avatar for mbowenitj
0
232
Member Avatar for Charite

Hi everyone! So I am really new to C++ and am currently taking this computer science class in school. We use Visual Stuio 2013. Tomorrow I have 3 programs due and I have only finished 1 so far. Everything I read in my textbook and what the teacher says confuses …

Software Development c++
Member Avatar for Moschops
0
264
Member Avatar for Tanner_1

I need to fix a minor error in my assignment. The prompt is: Assignment #2 will be the construction of a program that reads in an unspecified number of integers from standard input, performs some calculations on the input numbers, and outputs the results of those calculations to standard output. …

Software Development java
Member Avatar for JamesCherrill
0
197
Member Avatar for zachattack05

I am trying to programatically create and dispose of file system watchers, but I am running into an issue when trying to dispose of them. When I try to use the code: // dispose of any existing watchers. foreach (FileSystemWatcher fileWatcher in this.Controls) { fileWatcher.Dispose(); } I am receiving a …

Software Development
Member Avatar for zachattack05
0
420
Member Avatar for divinity02

hi james/anyone/stultuske I am again trying and practicing my java. I am doing this payroll program which include doing methods and array and have no idea where I have gone wrong again i have debug it but inno me, cant find the error and it is there somewhere anyway here …

Software Development java
Member Avatar for divinity02
0
193
Member Avatar for SoftBa

Hi, I have started this project and come to the point where I can't figure out how to finish it. First Want to say that I'm noob for VB6 and programming in general, but I saw some examples and make it work this part of job I need. I will …

Software Development visual-basic
Member Avatar for dageci
0
1K
Member Avatar for jigglymig

I downloaded visual studio 2013 and added xna to it so that I can run a game I made in vs2010. However I am having an issue in which it is not allowing me to start debugging or start without debugging. The xna I downloaded is from here https://mxa.codeplex.com/releases/view/117230 if …

Software Development visual-studio
Member Avatar for jigglymig
0
220
Member Avatar for djrico8

Hello there, iam new to this forum but iam also new with retrieving data from a mysql database to an label in vb.net. Iam using vb 2010 and my mysql is hosted on a server. Here is my code: Imports MySql.Data.MySqlClient Imports System.Data.Sql Imports System.Data.SqlClient Public Class Gamefrm Dim con …

Software Development mysql vb.net
Member Avatar for djrico8
0
305
Member Avatar for naz1234

Hi, from the result in my "for" loop, have stored four value. How to extract that value to show the value(sprintf) ? Kindly refer to the attached the image file. Thanks Regrads, nazif

Software Development c programming-construct
Member Avatar for naz1234
0
231
Member Avatar for deshazer.jad

I'm working on a website that uses System.Runtime.MemoryCache to cache information from a SOAP service that's running on another server. I'll start out by saying that I don't know a lot about the application or how the cache works, the issue however is that I just finished migrating the application …

Software Development web-server
0
192
Member Avatar for ddanbe

I'm referring to my snippet [Inheriting the stack class](https://www.daniweb.com/software-development/csharp/code/498828/inheriting-the-stack-class) After looong loong searches and many tries and tests, I finally came up with a version that works as I wanted to. Stacker can now handle any type of object, even with arethmetic methods in place. The virtual way as proposed …

Software Development
Member Avatar for JOSheaIV
0
279
Member Avatar for srider1969

Thank you in advance. I believe the items below should give a whole view. .Net 4.5.1 / x86 When using a SqlAdapter with new SqlParameter() { SqlDbType = SqlDbType.DateTime, ParameterName = "@FromDate", Value = "09/01/2008" }, I get the error "Conversion failed when converting date and/or time from character string" …

Software Development dataset
Member Avatar for srider1969
0
336
Member Avatar for Ajay Negi

what are the things a new developer should keep in mind while writing a program? please reply.

Software Development java
Member Avatar for stultuske
0
235
Member Avatar for Saran_1

Here is the CSV file that I am working with: `"A","B","C","D","E","F","G","H","I","J" "88",18,1,"<Req TID=""34"" ReqType=""MS""><IISO /><CID>2</CID><MemID>0000</MemID><MemPass /><RequestData><S>[REMOVED]</S><Na /><La /><Card>[REMOVED]</Card><Address /><HPhone /><Mail /></ReqData></Req>","<Response T=""3"" RequestType=""MS""><MS><Memb><PrivateMembers /><Ob>0-12-af</Ob><Locator /></Memb><S>[REMOVED]</S><CNum>[REMOVED]</CNum><FName /><LaName /><Address /><HPhone /><Email /><IISO /><MemID /><MemPass /><T /><CID /><T /></MS></Response>",0-JAN-10 12.00.02 AM,27-JUN-15 12.00.00 AM,"26",667,0 "22",22,1,"<Req TID=""45"" ReqType=""MS""><IISO /><CID>4</CID><MemID>0000</MemID><MemPass /><RequestData><S>[REMOVED]</S><Na /><La /><Card>[REMOVED]</Card><Address /><HPhone /><Mail /></ReqData></Req>","<Response …

Software Development python xml
0
202
Member Avatar for vinaya

can u plz tel me how to retrive only date from DateTime in C#. ex: 06/03/2008 12:00:00 i need only date 06/03/2008 in my application.

Software Development c#
Member Avatar for ddanbe
0
11K
Member Avatar for samantha2015

Advice please: Which of these 2 methods looks better ? like professional code? Both methods are doing the same thing(simpleUpdate). Except the way am passing the parameters are different. The method manageJob is used to call the method simpleUpdate to update the status in DB. public <T> void manageJob(Class<T> entityClass,String …

Software Development java
Member Avatar for jwenting
0
213
Member Avatar for Imam_3

Hi All Masters I'm trying to create a form with multiple labels from mysql database, im confused to add newlabel text from records here's my code Dim str As String str = " Select koderoom from room " da = New MySqlDataAdapter(str, conn) ds = New DataSet da.Fill(ds, "room") For …

Software Development dataset mysql vb.net visual-studio
Member Avatar for Imam_3
0
1K
Member Avatar for cambalinho

i'm getting flickers on windows. the windows have CW_USEDEFAULT size and i use the WS_CLIPCHILDREN. on WM_PAINT i use my image class with client rect size. it's big. but not more big than screen. the WM_PAINT: case WM_ERASEBKGND: { return (LRESULT)1;; } break; case WM_PAINT: { PAINTSTRUCT ps; BeginPaint(inst->hwnd, &ps); …

Software Development c++ microsoft
Member Avatar for cambalinho
0
723
Member Avatar for shahera.arafat

hii ^_^ I have a problem which is I have to delete a book when( I enter it's name and then press the delete button) and that book has been saved as an object in an array of list, and then written to a (txt )file.. once I press the …

Software Development java java-swing
Member Avatar for shahera.arafat
0
223
Member Avatar for shahera.arafat

hi :))) I want to ask about sth wich is > I have to write a programme using netbeans ..which I'm new with it ! that programme should let the user to enter the book name ,serial num. ,price ..etc in text fields , and I have buttons that let …

Software Development java
Member Avatar for JamesCherrill
0
277
Member Avatar for newcoder310

Is it better to log `exception` or `exception.getMessage()`while logging an info log or an error log. I'm pretty sure that is related to the context but I'd like to know from a technical perspective on which would be better for any application or if its all the same.

Software Development java
Member Avatar for JamesCherrill
0
2K
Member Avatar for guest7

Hi, I wish to compare partial bits of two one dimensional vectors. I know how to compare the two vectors completely. [ICODE]int main () { std::vector<int> vector1; std::vector<int> vector2; int out; vector1.push_back(100); vector2.push_back(101); vector1 == vector2 ? out = 0 : out = 1; printf("out = %d \n", out); return …

Software Development c++
Member Avatar for Dasun_1
0
31K
Member Avatar for New Jack

My program is to solve the simple problem in the Link[http://codeforces.com/problemset/problem/143/A] #include <stdio.h> #include <cstring> #include <math.h> #include<set> #include<iostream> #include<algorithm> #define MAXN 25 #define INF 100000000 using namespace std; struct _point { int L;int r; bool operator<(const _point &a)const{ return (this->L<a.L); } }; set<_point> up,down; int r1,r2,c1,c2,d1,d2; void solve(){ _point …

Software Development algorithm c++
Member Avatar for Moschops
0
201
Member Avatar for Daniel_46

I'm trying to compile an old project in Borland C++ Builder 4. I have a working exe and the source files for that, therefore someone must have managed to compile it earlier. However, when I open the project, check if the project has all the necessary files in the resources …

Software Development c++ open-source
0
333
Member Avatar for mdavis28

Hi, I have recently started working with SQL databases of which I have 0 previous experience. I have added the datasource to my project using the Visual Studio wizard and the DataSet appears in my solution explorer. Everything that I have read thus far has shown connecting to the SQL …

Software Development dataset sql visual-studio
Member Avatar for JOSheaIV
0
161
Member Avatar for Cap'nKirk

Hi, I am attempting to iterate through all image files in a folder and it's subfolders to check for the EXIF property of DateTimeOriginal. For the life of me I cannot seem to work out how do this, I can work it fine by just entering a single Path in …

Software Development file-system
Member Avatar for AleMonteiro
0
223
Member Avatar for ogsirus

Hi Guys I ran into a bit of a problem with some code I am writing. I am trying to store all possible combinations of a set of numbers which are current being stored in List. Problem is my code run into an out of memory exception, heres my code: …

Software Development motherboards-cpu-ram
Member Avatar for ogsirus
0
2K
Member Avatar for newcoder310

I recently faced a problem when I was trying to run a junit test in eclipse. I was getting a ClassNotFoundExcpetion. So, I googled a bit and tried out a solution where I had to move the JRE System Library below the rest of the jars and it worked!!! But …

Software Development java
Member Avatar for peter_budo
0
265
Member Avatar for Aditya0025

hi, i want to attach a handwritting pad(ivista tablet) to my java project. Any suggestion or any method how to make it possible. I tried the google but doesn't find any help

Software Development java tablet
Member Avatar for rproffitt
0
234

The End.