43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for boywonda1

hey all.. I'm [U]new[/U] to VB.net and i wanted to find out how i could load the names of files(in a specified dir) into a combobox? I knw i should have posted code..but i only have an idea as to what should happen. correct me where i'm wrong. 1. get …

Software Development vb.net
Member Avatar for lolafuertes
0
1K
Member Avatar for singh_soorma94

I making a program. I know most of it just need help with the number generator. I want it to occur the number of times inputted.

Software Development
Member Avatar for skatamatic
0
152
Member Avatar for zachattack05

If I have SQL authentication enabled, and a user (UserA) on a database has permission to delete rows on TableA, but not TableB, and there is a relationship between TableA and TableB, can UserA successfully delete a record on TableA and have the changes (based on relationships set up) cascade …

Software Development sql
Member Avatar for zachattack05
0
118
Member Avatar for jaycastr

Hey guys, I am writing a web application in asp.net using c sharp. I have a web page that lets the user create a program. In this system a program is made up of many applications and an Application can belong to many programs hence a many to many relationship. …

Software Development sql
Member Avatar for jaycastr
0
156
Member Avatar for Srin

I need to instantiate a class during runtime based what a user has selected in a list, but these classes each have their own new specific functions and variables, they use the same named functions, but set different variables, and different numbers of variables. I made an example, since my …

Software Development java
Member Avatar for JamesCherrill
0
297
Member Avatar for sirlink99

I am trying to save an image with this line [CODE]ImageIO.write(image, "JPG", new File(fileDestination.getText()));[/CODE] but it is giving me an error. [CODE] java.io.FileNotFoundException: C:\Users\Adam (Access is denied) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(Unknown Source) at javax.imageio.stream.FileImageOutputStream.<init>(Unknown Source) at com.sun.imageio.spi.FileImageOutputStreamSpi.createOutputStreamInstance(Unknown Source) at javax.imageio.ImageIO.createImageOutputStream(Unknown Source) at javax.imageio.ImageIO.write(Unknown Source) at screenCapture.CaptureScreen.actionPerformed(CaptureScreen.java:111) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) …

Software Development file-stream java java-swing open-source
Member Avatar for NormR1
0
319
Member Avatar for Prankmore

I am trying to take a user input phone number and perform calculations on it as an integer of type long long. I've tried this but it only reads the first 3 numbers then when it reaches the hyphen it stops. [CODE=C] printf("Enter Number: \n"); //get input from user count …

Software Development c
Member Avatar for Prankmore
0
3K
Member Avatar for winonus

I am using OpenWatcom to code C++ for interest, and I am in search for better compilers. OpenWatcom doesn't have string input and output operators overloaded, I always have to use workarounds. Can anyone name some [COLOR="#ff0000"]standard[/COLOR] compilers which compile and link [COLOR="#ff0000"]pure DOS exectables[/COLOR] for me?

Software Development c++
Member Avatar for winonus
0
119
Member Avatar for moneypro

#include<iostream> using namespace std; class area { double dim1, dim2; public: void setarea(double d1, double d2) { dim1= d1; dim2 = d2; } void getdim(double &d1, double &d2) { d1 = dim1; d2 = dim2; } virtual double getarea() { cout<<"You must override this functionn"; return 0.0; } }; class …

Software Development c++
Member Avatar for moneypro
0
179
Member Avatar for sim_pack

hi, i have a JButton object and i added an actionListener to it. it works well with a mouse click, but if use the keyboard enter key while the focus is on the JButton, nothing happens. do i need to add a keypress listener on top of the actionListener to …

Software Development java
Member Avatar for mKorbel
0
470
Member Avatar for Nicko_FaTe_

Hi i have a task to stores marks for students, a struct is used to store this. the thing giving me trouble at the moment is how to read and store a floating point number within a struct, the data specifically for the mark is on 1 line of a …

Software Development c c# c++ file-stream ios
Member Avatar for Nicko_FaTe_
0
163
Member Avatar for Silent-Regret

As the thread states, I'm curious as to how I could come across this. I can open the file with an OpenFileDialog, or edit it while it's in process, but not open it, edit a memory address, then resave it. Mainly because I have no idea what it'd be called …

Software Development
Member Avatar for Silent-Regret
0
255
Member Avatar for halien

Hi all, I am trying to write a list of complex numbers to a csv file. The list looks like: [QUOTE] cpl1 = [(-6.4703169037894082e-12-2.7429131015110908e-12j), (-9.0688415110840026e-11+1.7513018812920222e-11j), (-1.8522787470498514e-10+1.3074128585310874e-11j), (-5.8563154325952382e-10-6.4430377699764563e-10j), (2.1451734832922398e-10-9.987741744765799e-10j), (2.9095870157647141e-10-6.3227384439201728e-10j), (1.9448214150230569e-09+5.1612969453884716e-10j)] [/QUOTE] The complex numbers are to be written to file to look like: [QUOTE] real, imaginary, real, imaginary, real, imaginary, …

Software Development python
Member Avatar for bvdet
0
274
Member Avatar for lashbandi

Hi everyone... My boyfriend's birthday is on Saturday, August 13...and i wanted to do something really different this time...since we are 1,000 miles apart...i was thinking if i could write a program which would generate random messages which I would already have written in the code... i was thinking of …

Software Development gui ide java java-netbeans
Member Avatar for sirlink99
0
282
Member Avatar for CSharpUser

First, I want to admit I am totally new at Linq queries. Your help and patience are GREATLY appreciated! I am trying to perform a query on a loaded XML document with the code below, but no matter what I try, I continually get an unhandled NullReferenceException error: [CODE] XDocument …

Software Development xml
Member Avatar for CSharpUser
0
455
Member Avatar for darangho

Hi, I am trying to create a make file for a java project. It has a directory structure look like this: src folder [INDENT]-package1[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] [INDENT]-package2[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] [INDENT]-package3[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] [INDENT]-package4[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] I am new to makefile, but tried to create one according to some tutorials on …

Software Development java
Member Avatar for darangho
0
373
Member Avatar for shasta90

[url]http://www.daniweb.com/software-development/python/threads/187060/1572491#post1572491[/url] based on a previous thread I would like to know how to replicate the appearance of a house five times on the gasp interface via the script below: #!/usr/bin/env python from gasp import * # import everything from the gasp library begin_graphics(title="Houses At Night", background=color.BLACK) # open the graphics …

Software Development python
Member Avatar for ~s.o.s~
0
1K
Member Avatar for apanimesh061

How can one demonstrate Multiprogramming and Idle loop in C ??? Please help !!! I can't think any way ..... :?: Thanks

Software Development c
Member Avatar for Narue
0
222
Member Avatar for aman rathi

The below code is showing error i checked lots of time didn't find any error please help me. [CODE] class emp{ int id,sal; String name; emp(int id,int sal,String name) { this.id=id; this.sal=sal; this.name=name; } void show() { System.out.println("Name: "+name); System.out.println("Salary: "+sal); System.out.println("ID: "+id); } } class manager extends emp{ int …

Software Development java oop
Member Avatar for aman rathi
0
195
Member Avatar for hqt

I use Code::Block 10.05 I'm starting with some lines of code. No error found when I compiled it. But although I ("run", "Compile this current File","Build") in menu Build, I still cannot debug my program because in menu Debug, ("start", "stop Debug", "next",etc) cannot active :( I have read on …

Software Development c++
Member Avatar for hqt
0
163
Member Avatar for Simplicity.

Hi all, This code solves the Euler Equation of Gas Dynamics which is a system of partial differential equations. The problem is that it takes very long to run than it would normally required. Things become worse after including the functions "S_p(a_p,a,b)" and "S_m(a_p,a,b)" which are called within other functions …

Software Development python
Member Avatar for Simplicity.
0
155
Member Avatar for ians_acess

hi there im just new with java i just want to ask can 1 dialog box contain multiple lines i min like this one JOptionPane.showMessageDialog (null,"\n "+EN ) ; somehow i want to add just like JOptionPane.showMessageDialog (null,"\n "+EN , "\n another messages here then" +DR , "\n and another …

Software Development java
Member Avatar for NormR1
0
180
Member Avatar for xtianenikkian

Is there any code to create or generate bar codes in vb6? Please help me, advance thank you for all that will respond :)

Software Development visual-basic
Member Avatar for xtianenikkian
0
83
Member Avatar for Genericusername

Hello, I am working on a program that generates 100 random integers and then sorts them into even and odd. When i go to compile the program, it tells me that it cannot find variables randonum, evennum, and oddnum. I'm new to arrays so i'm guessing i declared/ defined them …

Software Development java
Member Avatar for Zetlin
0
246
Member Avatar for jotae

In my APP the principal form open a second form (MothPayment) where the user pay a moth of the student. Well, made the payment, the form close and return to the principal form. The problem is that textbox fields like student balance, paid month , etc only refresh if the …

Software Development visual-studio
Member Avatar for ajaypatidar
0
150
Member Avatar for mitchney

i want to start my codng immdiately about linkng the database in vb...but i dnt knw how...anybody there hu would lke to help me hw i can lnk my database...please...tnx guyz.....

Software Development vb.net
Member Avatar for debasisdas
0
119
Member Avatar for Russ775

My issue with this code is that when it is executed it does loop correctly. It just runs once and my goal is to have it run 100 times. I am using Python version 3.1 and could really use some help... Considering I am the only geek with in a …

Software Development python
Member Avatar for JoshuaBurleson
0
117
Member Avatar for Russ775

[CODE]import random print("\t\tWant to know your future?") input() fortune = random.randint(1, 5) if fortune == 1: print("You are gonna die today") input() elif fortune == 2: print("You will find love") input() elif fortune == 3: print("You will make it big today!") input() elif fortune == 4: print("You friends will betray …

Software Development python
Member Avatar for JoshuaBurleson
0
186
Member Avatar for sirlink99

I am making a game where random obstacles appear. The obstacles will move towards you. I currently have this code to animate the obstacles. [CODE] for (int i = 0; i < obstacle.size(); i++){ // animate walls obstacle.elementAt(i).x -= 1; } [/CODE] My vector multiple instances of the Walls class …

Software Development java
Member Avatar for stultuske
1
113
Member Avatar for emmas4impact

[CODE]void Addcostumer(){ struct CustomerData *p; char another ='y'; char anothers ='n'; CustomerData *newcous; char str1[80]; char str2[100]; char str3[20]; //fseek(fc,0,SEEK_END); p=(struct CustomerData *)malloc(sizeof(struct CustomerData)); newcous= new CustomerData; printf("Costumer Name:"); fflush(stdin); gets_s(str1); strcpy_s(newcous->CName,str1); printf("Costumer Address:"); fflush(stdin); gets_s(str2); strcpy_s(newcous->Address,str2); printf("Costumer Puhelin:"); fflush(stdin); gets_s(str3); strcpy_s(newcous->Puhelin,str3); if ((fc = fopen("c:\\users\\Emmas4impact\\Documents\\customer.bin", "wb"))==NULL) { printf("Cannot open …

Software Development c
Member Avatar for emmas4impact
0
162
Member Avatar for IndianaRonaldo

[CODE]void SubGen(char* s) { //rearrange s ... for(int i=0;i<strlen(s);i++) { for(int j=i+1;j<strlen(s);j++) { if(s[i]==s[j]) { char temp=s[i+1]; s[i+1]=s[j]; s[j]=temp; } } } //s arranged.... Sub[0][0].push_back(s[0]); for(int i=1;i<strlen(s);i++) { if(s[i]==s[i-1]) { vector<string> temp; for(int j=i-1;j<Sub.size();j++) { for(int p=0;p<Sub[j].size();p++) { temp.push_back(Sub[j][p]); } } for(int j=0;j<temp.size();j++) { temp[j].push_back(s[i]); } Sub.push_back(temp); } else { …

Software Development c++
Member Avatar for IndianaRonaldo
0
217
Member Avatar for Srin

My panel's paintcomponent method draws a line based on the initial click and the current position as the mouse is dragged. Releasing the mouse leaves one line from the mouse press location to the mouse released location. The problem is. on the next click/drag, the old line disappears when the …

Software Development image java
Member Avatar for Srin
0
1K
Member Avatar for Jason Giggs

Hi I came across this question in C++ Primer by Stanley Lippman. [CODE] int main() { const char ca[] = {'h', 'e', 'l', 'l', 'o'}; const char *cp = ca; while( *cp ) { cout << *cp << endl; ++cp; } } [/CODE] According to me, this code should produce …

Software Development c++
Member Avatar for mike_2000_17
0
96
Member Avatar for coroll

Hi all, I am generating comboboxes in runtime in a for loop. Then, when click ok i want to get the selectedItems. So how would i do this. PLZ help me. this is how i generate comboboxes in th page load. [CODE] NewBookEntry nbe = (NewBookEntry)Application.OpenForms["NewBookEntry"]; int lable = 0; …

Software Development
Member Avatar for coroll
0
144
Member Avatar for sathya88

[code] public class exception4{ public static void method(){ try{ exception4.method2(); throw new Exception("method throw"); } catch(Exception e) { System.out.println("method Exception caught"+ e); //throw e; } } public static void method2(){ try{ throw new Exception("method2 throw"); } catch(Exception e) { System.out.println("method2 Exception caught"+ e); e.printStackTrace(); [COLOR="Red"][B]//throw e; [/B][/COLOR] [COLOR="Green"][U]if include this …

Software Development java
Member Avatar for JeffGrigg
0
259
Member Avatar for J-Dub

I need to know how I can set up a action listener for an array of buttons. I am trying to make a tic tac toe game. I am new to programming. I have seen someone on here ask a similar question but I could not grasp what they where …

Software Development gui java java-swing
Member Avatar for mKorbel
0
4K
Member Avatar for Prankmore

[CODE]# include<stdio.h> # include<string.h> int main(int argc, char **argv){ char phone[16]; int num = 0; int count = 0; printf("Enter a phone number: "); count = scanf ( "%s%n", phone, num ); memmove(phone + 3, phone + 2, 10); memset(phone + 3, '-', 1); memmove(phone + 7, phone + 6, …

Software Development c motherboards-cpu-ram
Member Avatar for Prankmore
0
188
Member Avatar for coroll

Hi!, I get InvalidCastException. It says "Unable to cast object of type 'HD.MainMenu' to type 'HD.NewBookEntry'" and points to this statment "mpg=(NewBookEntry)fm" Plz help me to solve this. My code is: [CODE] FormCollection fms=Application.OpenForms; foreach(Form fm in fms) { mpg=(NewBookEntry)fm; } mpg.Dispose(); [/CODE]

Software Development
Member Avatar for coroll
0
113
Member Avatar for dennysimon

hi all in form1 I place 3 button and 1 datagridview ,btn refresh,btnload , btnnew and Datagridview dgv1 1. I change the value of a cells in datagridview (right after Form1 is loaded),and then click btnrefresh 2. I click btnnew to clear the dgv1 3. I click btnload to re …

Software Development dataset
Member Avatar for dennysimon
0
266
Member Avatar for dennysimon

hello all how to express parameter with decimal (which has 2 scale) //---------------------------- mysqlda.UpdateCommand.Parameters.Add("@Name", MySqlDbType.VarChar,40, "Name"); mysqlda.UpdateCommand.Parameters.Add("@Kode", MySqlDbType.VarChar, 8, "Kode"); mysqlda.UpdateCommand.Parameters.Add("@Price", MySqlDbType.Decimal ,10,2, "Price"); //---------------------------- line 3 give me error thanks denny

Software Development
Member Avatar for dennysimon
0
2K
Member Avatar for dre-logics

I want any amount ending in 98 cents. Three examples: 5 euros x 1.25 euros then the result is [COLOR="red"]6.25[/COLOR] euros, the program change this to [COLOR="Green"]6.95 [/COLOR] 4 euros + 2 euros then the result is [COLOR="red"]6.00[/COLOR] euros, the program change this to [COLOR="green"]6.95[/COLOR] User type to [COLOR="red"]6.70[/COLOR]then the …

Software Development vb.net
Member Avatar for Mitja Bonca
0
122
Member Avatar for VNexus

Hi Everyone, Most recently, I've been working on a small project to sort through multiple text files which have all the same strings. Basically, I am looking to sort through and create a text delimited file for future use. The below script is what I have come up with so …

Software Development vb.net
Member Avatar for VNexus
0
181
Member Avatar for DarkPheonix

[B]Could u tell me why the following problem is coming on running the program where im getting the out twice each time wen i shd get it only once , wen im entering a input im getting the menu twice[/B] [CODE]import java.io.*; class Television{ private String MANUFACTURER; private int SCREEN_SIZE; …

Software Development java
Member Avatar for FireBlah
0
323
Member Avatar for Domtheripper

I am new to C# and have encountered a problem with the following if statement... [CODE]measurement = GetRandomInt(0, 2); measurement2 = GetRandomInt(0, 2); if ((measurement == 1) || (measurement2 == 1)) q3correct = 1; else q3correct = 0;[/CODE] The statement works around 80% of the time and i have checked …

Software Development
Member Avatar for Domtheripper
0
125
Member Avatar for vishal1949

I am making a program where i have to write a recursive function that reverses a string. I am a new programmer and need help. The function should return a String and take only one argument, also a String. [CODE]import java.io.*; public class RecursiveFunction { public static void main(String [] …

Software Development java
Member Avatar for JeffGrigg
1
402
Member Avatar for javinpaul

Just wondering is there any way to modify Classpath in your program and force them to include a new directory in classpath ??

Software Development java
Member Avatar for JeffGrigg
0
231
Member Avatar for thecrossibear

so i need to have a script that takes input from a command and parses it for some info im still pretty new to perl, but from what i understand, to do something like that youd have something like: [CODE] while ($line = <STDIN>) { blah blah blah } [/CODE] …

Software Development perl
Member Avatar for thecrossibear
0
161
Member Avatar for Gazzmonkey

Hi all, I got a problem with part of my application, it's an exception I've never seen before. Overload resolution failed because no accessible 'New' can be called without a narrowing conversion: 'Public Sub New(original As System.Drawing.Image)': Argument matching parameter 'original' narrows from 'Object' to 'System.Drawing.Image'. 'Public Sub New(stream As …

Software Development dataset open-source vb.net
Member Avatar for Gazzmonkey
0
2K
Member Avatar for sarathsshanker

im not able to figure out the meaning of this piece of code: [code] public int void countTokens(String s) { StringTokenizer st= new StringTokenizer(); return st.countTokens(); } [/code]

Software Development java
Member Avatar for stultuske
0
381
Member Avatar for theCompiler

how do i determine the winner in a game rock paper scissor ? i have 10 rounds and the one who has 7wins shall be declared as the winner but how am i supposed to do that ? great help is highly appeciated :)

Software Development c
Member Avatar for WaltP
0
125

The End.