132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bettybarnes

hi guys just ask what is the code for allowing null values to appear on the textbox [CODE] Dim i As Integer dg1.DataSource = bs i = dg1.CurrentRow.Index Patient_Profile.Txtpatient_id.Text = dg1.Item(0, i).Value [/CODE]

Software Development vb.net
Member Avatar for kothaisaravan
0
117
Member Avatar for ziggystarman

Hoping someone here on the forum's can put me right on the above matter, after reading some I thought I could achieve the task in the following steps... [B][Visual C++][/B] [1] Convert AxisMediaControl image to system object [2] Convert object to ByteArray [3] Convert ByteArray to CharArray [4] Assign CharArray …

Software Development c++ image
Member Avatar for ziggystarman
0
550
Member Avatar for elshan0011

I want to close my login form and open Main form! i do that like this! [CODE] private void btnLoginOk_Click(object sender, EventArgs e) { if (textBox2.Text == "acer") { Main frmMain = new Main(); frmMain.Show(); this.Close(); } else { MessageBox.Show("Invalid Username or Password", "Login Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } }[/CODE] But …

Software Development
Member Avatar for walid86
0
2K
Member Avatar for assembly101

I am trying to get this program to use LOOPZ instead of LOOPNZ to find the first positive value in an array but I am not sure how to go about it. Any hints or ideas behind doing it would be much appreciated. This is the code below: .data array …

Software Development assembly
Member Avatar for hillary janlosi
0
825
Member Avatar for nchy13

i am quite new to java i used to code in c++ but now we have to program in java which has not been taught. i browsed net but casn't get enough information this is my first code which i managed to get from net [B]i am using GNU java …

Software Development java ubuntu
Member Avatar for nchy13
0
407
Member Avatar for IT FRESH

hello... i am new student in IT and i have a problem which make me suffer ... we got exercise to do ... which i have to build a programme that accept the time and acceleration from the user and calculate the velocity ... my problem now is how to …

Software Development c++
Member Avatar for cahitburak
0
123
Member Avatar for newbie-java

I have the user enter a string e.g. subject of book using a scanner then a for loop, to print out all the books with the same subject to what the user entered. But I'm having a problem in that it will only print out the first occurrence. For example …

Software Development java
Member Avatar for stevanity
0
207
Member Avatar for Ich bin würdig

I've been working on a program that inverts a word and changes the vowels in the word into an asterisk.. I'm confused on where to put the strset in my code.. can someone teach me how to? thanks.. Here's my code.. I know it's simple but I'm just a beginner …

Software Development c
Member Avatar for Ich bin würdig
0
155
Member Avatar for stereomatching

OS : win7 64bits compiler : visual C++ 2005 boost version : boost_1_44_0 [code] #include <gtest/gtest.h> #include <tchar.h> #include <boost/signal.hpp> #include <boost/bind.hpp> #include <boost/function.hpp> #include <boost/mem_fn.hpp> class Slot : public boost::signals::trackable { public: void Update(int) { ::printf("Signaled!!\n"); } }; int _tmain(int argc, _TCHAR* argv[]) { boost::signal<void (int)> s; Slot *slot …

Software Development c++
0
66
Member Avatar for bhagawatshinde

Anybody have any idea about how to change the font of the string. Suppose [CODE] Dim strFind as string="Answer" [/CODE] I want to change the font of the string as "Verdana" Purpose behind that, I have an richtextbox1 contains the questions and richtextbox2 contain the answer so while concating i …

Software Development vb.net
Member Avatar for bhagawatshinde
0
1K
Member Avatar for giancan

Hi there, how can I read a file line by line till the 150th line? I mean, I know the [CODE]for line in f:[/CODE] but I want to read only (let's say) 150 lines of the f file. Thanks a lot

Software Development python
Member Avatar for giancan
0
193
Member Avatar for lemunk

Hi guys, Im writing a windows c# form at the moment and after all the headaches of gettin my stored procedure to combine 2 tables from 2 databases from 2 servers that had different collations(.....yeh MASSIVE headache)ive hit another snag! here's my form1 code, no where near completed, missing my …

Software Development c c# c++ sql
Member Avatar for lemunk
0
265
Member Avatar for diven

i have 4 different excel files of different names. each excel file has 8 columns and 15 sheets. All excel files has same columns and same number of sheets (same sheet names and column names)... i have to merge these 4 files into one. that file must be identical to …

Software Development vb.net
Member Avatar for Human2.0
0
944
Member Avatar for mcclainra

I have been trying to figure out a way to make the two compatible but I can't seem to do it, any help? [CODE]#include <iostream> #include <string> #include <fstream> #include <cstdlib> #include <cstring> using namespace std; const int max = 100; char decode (char encrypted_string[16], char decrypted[], int key); int …

Software Development c++
Member Avatar for mcclainra
0
228
Member Avatar for jtodd

Hey guys. I have written a program to create, edit and delete record in MS Access using a visual studio program. I am keeping the program and database divided into a front end and a back end to allow concurrent users. I am going to place the back end on …

Software Development vb.net visual-studio
Member Avatar for kingsonprisonic
0
162
Member Avatar for maggoteer

Hey guys, I've got a theoretical question. I've tried to work out how some of the code would work in my head, and I always stump myself. Maybe it's my lack of knowledge - who knows! I am trying to create an online forum inside of my application. Yes, I …

Software Development php vb.net
Member Avatar for kingsonprisonic
0
215
Member Avatar for Vasthor

these one code, from line [63-71] of the original code [CODE] // for adding more students cout << endl << "Want to add more student?(yes/no): "; string add_student; cin >> add_student; if(add_student == "yes") { student_counter = 0; } [/CODE] the program seems "doesn't detect" the cin code above, it …

Software Development c++ ios
Member Avatar for Vasthor
0
252
Member Avatar for junsugal

This is the only part of my assignment that has problem. Can anyone tell me what's wrong? I debug it, it shows me NullPointerException... please give me a hint, i urgently need this to be done. Its due today. So, I am supposed to write a method captured that will …

Software Development java linked-list
Member Avatar for NormR1
0
168
Member Avatar for violette

I have five sheets named 'Yearly,Q1,Q2,Q3,Q4'. currently my code only update one worksheet at one time into the mySql database. i want it to get all worksheets to be done at one go. i've tried to implement 'For loop' but it just run on the active worksheet only. is there …

Software Development visual-basic
Member Avatar for violette
0
410
Member Avatar for Pappu X

Can someone please tell me the order of this merge sort? [CODE]#include<iostream.h> void merge(int[], int,int,int); void merge_sort(int[],int); int min(int x,int y) { if(x<=y) return x; else return y; } void main() { int array[16] = {5,0,12,1,4,3,25,6,8,7,45,9,13,2,17,10}; int i; cout<<"Unsorted : "; for(i=0; i<16; i++) { cout<<array[i]<<" "; } cout<<endl<<endl; merge_sort(array,16); …

Software Development c++
Member Avatar for Pappu X
0
504
Member Avatar for atramposch

[CODE]public Node<E> remove (int index)[/CODE] i need to recursively implement this method. Node<E> nodes contain two fields, next (a reference to the next node in the linked list) and element (a reference to the data it contains) [CODE]public E element; public Node<E> next;[/CODE] Do not worry about the checking for …

Software Development java linked-list
Member Avatar for atramposch
0
2K
Member Avatar for Kirbz

I have a Blackjack Assignment I need some help on. The Full requirements, what the .exe should look like, and what I have done so far is in this picasa link: [COLOR="Green"]https://picasaweb.google.com/zaidalmas/November172011?authuser=0&authkey=Gv1sRgCNXrltTFwZnYNQ&feat=directlink[/COLOR] Sorry I couldn't get the insert link to work right. What I have done: I have shuffled the …

Software Development c++
Member Avatar for WaltP
0
287
Member Avatar for begyu

Hi all, I need help in the following problem. I have a data file containing 100 columns, with different number of rows. I would like to read for example the columns from 45 to 56 and calculate something on these columns one by one, let's say calulate the mean value …

Software Development c++
Member Avatar for WaltP
0
155
Member Avatar for thetechlady21

I can not seem to delete a record from the text file taken from a datagrid. Please see below. I know I need to bind the data and at the same time I need to delete the file in the current directory. I have tried a few methods but can …

Software Development file-system visual-basic
Member Avatar for BitBlt
0
253
Member Avatar for coolsport04

I am trying to write a program that kind of resembles and etch-a-sketch. I have the basis for it. I am having two problems: 1. When I draw a shape in the default black color, when I switch the color it changes the color of what I had previously drawn. …

Software Development java java-swing
Member Avatar for Ezzaral
0
215
Member Avatar for AbEeR Q8

Hello ; I need a help in my home work , I have to write the program that prints the number of clock ticks it took the program to sort the data the main part is already given , I have to wright the functions this is my program :: …

Software Development c++ linked-list
Member Avatar for raptr_dflo
0
124
Member Avatar for dennysimon

Hello all Does Caret Event only for one component only ? I tried to find example for more than one TextField which added with CaretListener,but cannot find one. Anybody know website or has example like I need ? I need to know how to detect which component arise the CaretEvent …

Software Development java
Member Avatar for dennysimon
0
134
Member Avatar for neo.mn

Hi everyone, I am new in LINQ. Please let me help to convert the following SQL Query into LINQ query. The Query is : [CODE]SELECT PRS.Product_Code, PRS.Purchase_Code, PRS.Purchase_Details_Code, PRS.Lot_No, PRS.Lot_Amount, PRS.Sold_Amount, SS.Supplier_Code, SS.Name, ISNULL(SSS.Sales_Lot, 0) AS Sales_Lot FROM Supplier_String AS SS INNER JOIN ( SELECT PD.Product_Code, PP.Purchase_Code, PP.Supplier_Code, PPD.Purchase_Details_Code, PPD.Lot_No, …

Software Development sql
Member Avatar for thines01
0
151
Member Avatar for kiaski

A number is called a proper divisor of N if M < N and M divides N. A positive integer is called perfect if it is the sum of its positive proper divisors. For example, the positive proper divisors of 28 are 1, 2, 4, 7, and 14 and 1+2+4+7+14=28. …

Software Development java mathematics
Member Avatar for Ezzaral
0
257
Member Avatar for Muna Oman

Hello folk i am a new member n i need Ur help to do my course project for developing Sudoku game i already have my codes but i need a code for generating random numbers in the grid this is basically my code [code]import javax.swing.*; import java.awt.*; import java.util.*; /* …

Software Development java java-swing
Member Avatar for NormR1
0
658
Member Avatar for skylinepkr

I have an assignment to make a paint program using java but i am kind of stuck at a roadblock. I have a pencil tool and i used the mouseDragged, mousePressed, and mouseReleased methods of mouse(motion)listener to draw my path using general paths (lineTo and moveTo). My question is, is …

Software Development java
Member Avatar for Ezzaral
0
118
Member Avatar for VengefulToast

Hi forum, I am just wondering how I could just use the last two digits of a four digit year the user inputs. For example, I want to drop the [19] from [1960] and just use the [60] which should be 3C in Hex so the registers would read it. …

Software Development assembly
Member Avatar for VengefulToast
0
800
Member Avatar for Dholcroft79

Ok so i am trying to write a/am if statement to set a random X,Y position for a sprite here is what i have (I'm very noobish with codeing) am i going about it the right way here is my function for DRAW [CODE] Sprite_Draw_Frame(explosion, posx,posy, frame, 128, 128, 6); …

Software Development c++
Member Avatar for Dholcroft79
0
213
Member Avatar for metalix

Hey guys, I know this will have an easy answer, but I have been awake far too long to see it :P I am doing some coding with classes in python, and it just isn't working. Here is the code: [CODE] from bpy import * from os import * from …

Software Development python
Member Avatar for metalix
0
279
Member Avatar for BDan

I am a fairly new programmer still in school, and trying to have my program write the selected information to a designated file. I keep getting an error message on my file OutputStream. [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.*; import java.text.*; class ExampleJComboBoxSample extends JFrame implements …

Software Development file-system java java-swing
Member Avatar for Ezzaral
0
169
Member Avatar for evilweevil

[B]hey guys: im having a problem with the bisection method using C++ , the code suppose to find the root of this equation "X cube minus 3X plus 1" on [0,1] after 5 iterations and after doing it manually the answer should be x=0.009368 it keeps giving me 0.25 and …

Software Development c c# c++
Member Avatar for nchy13
0
2K
Member Avatar for JRDJ12

Can someone show me what bubble-sorting an int[] of { 5, 4, 3, 2, 1 } looks like? I have to place it inside [CODE]public class SortIntArray { // this method needs your code to be added to work public static void sort(int[] list) {[/CODE] with no calls to any …

Software Development java programming-construct
Member Avatar for NormR1
0
263
Member Avatar for nchy13

can somebody help me out by providing link to the stuff related to buffer reader in java to read a trace file and store it in array of string.

Software Development java
Member Avatar for Ezzaral
0
362
Member Avatar for iamthesgt

In writing a CGI script, I have come across several errors. As I went through and fixed the errors, I seemed to get all of the syntax errors but as I completed the last ones, a long list of errors came up that I did not understand. In trying to …

Software Development c++
Member Avatar for iamthesgt
0
274
Member Avatar for Santi1986

how to delete a node...u just have a pointer to tat random node ...no head node info...

Software Development c linked-list
Member Avatar for N1GHTS
0
96
Member Avatar for ben1996123

Hi, I'm making a console application, text based game, and what I need to do is be able to do more than one thing at the same time. For example, I need to be able to make a timer that runs constantly, whilst the game is being played. I also …

Software Development c++ multithreading
Member Avatar for ben1996123
0
121
Member Avatar for bossman5000

Write a shell script that will accept any number of command line interger parameters a d do the following....I have to use a if statment for the lowest and highest values??? Determind the lowest and highest values? Determind the sum of all parameters entered?

Software Development shell-scripting
Member Avatar for bossman5000
0
202
Member Avatar for Mojtabarahimi

Hi Actually i try to do this programming but i have some problems. I'll become thank you if help me to fix it. It is a simple Ferry Ticketing System with below conditions : FERRY TICKETING SYSTEM A small ferry company has just purchased a computer for its new automated …

Software Development java
Member Avatar for NormR1
0
2K
Member Avatar for PapaGeek

What project type is best for this application? I have the source for an old SSI emulator for website development. It is written in C using Visual studio 6. I want to convert it to C++ Visual Studio 2008. I started using a Windows Forms Application, but I’m not sure …

Software Development c++ gui visual-studio web-design
Member Avatar for PapaGeek
0
218
Member Avatar for TheOnlyRoss

I need to write a quiz program that generates random questions. My group and I determined that we would probably need to make use of the random function, so we did our research and were able to write the following program [CODE] #include<stdio.h> #include<stdlib.h> int main() { int i; int …

Software Development c
Member Avatar for TheOnlyRoss
0
2K
Member Avatar for sidd1994

hi people i am new to this site ... i needed a bit of help i have got an home work to create this :the use will enter 6 random numbers and the computer will print the series :input: 10,5,6,4,3,6 output: 10 5 6 4 3 6 5 1 2 …

Software Development java
Member Avatar for sidd1994
0
101
Member Avatar for VengefulToast

Hi forum, I just need help on my code. I am trying to find all the Armstrong numbers from 100-999(i.e. when the cubes of three digits added together equal the number - 1^3 + 5^3 + 3^3 = 153.) My code works until it gets to line 93, then it …

Software Development algorithm assembly c++ storage
Member Avatar for skaa
0
687
Member Avatar for RaoxFaello

I'm new at programming, I was asked to create a program to find the GCD (Greatest common divisor) of two numbers my friend helped me create this program. All i am asking is how does it function?, I know how the whole program works (If... If else, While, Looping, Modulo …

Software Development algorithm c++
Member Avatar for Schol-R-LEA
0
122
Member Avatar for coroshea

My primary objective right now is to get the program to display the following, when the user presses 1 at the main menu: Size of 1st pizza order: Small Topping of 1st pizza order: No topping Size of 2nd pizza order: Small Topping of 2nd pizza order: No topping I …

Software Development c++ display
Member Avatar for Schol-R-LEA
0
171
Member Avatar for pato wlmc

Well, i'm pretty much a newbie into programming, merely because i'm just 15, but i really like informatics ( specially programing ) but i'm not that wealthy so, i can't pay for private teaching, or anything like that. But if you want to, you can, that's what i say. I've …

Software Development c++
Member Avatar for Tumlee
0
5K

The End.