132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dennis_ian

hi just finished my first project and it was quite a journey (hahaha, considering its my first time to do it. Just wanna ask, with this code:..... [CODE]Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintiTicket.PrintPage e.Graphics.DrawString("COUNTER 17.Your number is " & iTicket, TextBox1.Font, Brushes.Blue, 50, 50) …

Software Development vb.net
Member Avatar for Begginnerdev
0
89
Member Avatar for CX Mike

Dear Team, I have a question regarding LINQ 2 SQL and data integration with textbox: I have one textbox and button on my form, one stored procedure and LINQ 2 SQL class file in my project, I want that when I hit button, my store procedure run the SQL query …

Software Development sql vb.net visual-basic
Member Avatar for thines01
0
248
Member Avatar for deva89

Sir, I am currently doing a project on "Pharmacy Management System". My question is "Can I used DataGridView to show the items that i have searched and the rest won't be visible??" If yes then can anyone give me the code for search button?? I have used the following code …

Software Development asp.net dataset mssql open-source
Member Avatar for kamilacbe
0
158
Member Avatar for init

Hi. I'm creating an interface using the Tkinter library, but I seem to be having some issues with placing 3 buttons BELOW 3 buttons which are on top. All buttons should be inside the second LabelFrame. I've looked all over and I can't seem to figure out why the other …

Software Development gui python tkinter
Member Avatar for Ismatus3
0
1K
Member Avatar for Ismatus3

hello friends As the tittle say , i just would like to know if there is possibilities to change the graphisme of the Button : color , form , insert image on the Button ... , Thank you for answering , good luck :) .

Software Development python tkinter
Member Avatar for Ismatus3
0
216
Member Avatar for Ismatus3

hello friends , I just don't know , why in using Crontab it don't execute a code python that contain : [CODE]execfile("Backup1.py")[/CODE] my code is nouveau_fichier2.py : [CODE]#!/usr/bin/python #-*- coding:Utf-8-*- # -*- coding: cp1252 -*- import os print 'helo' #os.system("sudo chmod 777 /home/ismail/Bureau/Test/20111214") execfile("Backup1.py")[/CODE] and my crontab file after "crontab …

Software Development python
Member Avatar for Ismatus3
0
184
Member Avatar for sbrohee

Dear all, I am busy implementing a small program and I'd like to work with threads. First of all, I'd like to specify that I am certainly not an expert user of C++ (I often use Perl -ouch- but in this case, Perl was far too slow for the program …

Software Development c++ dataset perl
Member Avatar for sbrohee
0
310
Member Avatar for jankeifer

can anyone please help me in to creating a client-server using this game? [CODE]#include <iostream> #include <iomanip> #include <map> #include <time.h> #include <cstdlib> using namespace std; //displays the instruction of the game void displayInst(){ for ( int b = 0; b < 28; b++ ) cout << "* "; cout …

Software Development c++ client-server socket-programming
Member Avatar for vijayan121
0
150
Member Avatar for pseudorandom21

If ASIO had better documentation I could probably have found for myself an answer, but instead... Is there a way to determine bytes available to read using the asio::ip::tcp::iostream ? I really like the tcp iostream because it's super-easy to use, but I haven't found it exactly feature-packed. Does it …

Software Development c++
Member Avatar for vijayan121
0
181
Member Avatar for rotten69

Hi everyone, Could anyone please tell me why that line in the if-statement body is breaking the method? [CODE] static int [] doubleMe(int [] list){ int [] y= list; int c = 0; int [] w; for (int i= 0; i < list.length; i++){ c = list[i]; if (c % …

Software Development java
Member Avatar for rotten69
0
185
Member Avatar for daniwaber

Can anyone suggest a code used to print a certain text from and RTF box with different formatting for different words. Also, can I print preview it and page setup it. I tried to use the print dialogs but could not do it. Please help:)

Software Development vb.net
Member Avatar for G_Waddell
0
116
Member Avatar for nsyncpilu

Hy , I have a table , in which i am adding new rows , after 6 rows with data I want to add a empty row with the background color red then another 6 rows with white background [CODE]private void populate(){ DefaultTableModel model = (DefaultTableModel) table.getModel(); int i,j; for(j=0;j<6;j++){ …

Software Development java
Member Avatar for nsyncpilu
0
1K
Member Avatar for pankaj.garg

Dear All, Screen Size of my deployment screen is larger than my development screen. If i try to set my form size larger than my development screen size, IDE doesnot accepts this. Please let me know How can I use a form larger than my development screen Size? Pankaj

Software Development ide vb.net
Member Avatar for pankaj.garg
0
1K
Member Avatar for imrandavidm

why doesnt getch() ,cin , cout etc work...?

Software Development c++
Member Avatar for v3ga
0
52
Member Avatar for MugANDGlass

[CODE]void search() { char id[12]; node *p = head; system("cls"); { cout<<"Search ID: "; cin>>id; } while ((p!=NULL) && (strcmp(id,p->id)!=0)) { p = p->next; } if(p==NULL) { cout<<"No such ID in our list"<<endl; delete p; } else cout<<"We have this ID in our list"<<endl; } void remove() { char id[12]; …

Software Development c++ linked-list seo
Member Avatar for v3ga
0
158
Member Avatar for manhthaodn

For the purpose of control and improvement program. I need to catch the Exception. I don't know what to do below: 1. Control exception what set in the program and send notice to the developer (via Email) Best Regards!

Software Development
Member Avatar for manhthaodn
0
121
Member Avatar for MugANDGlass

[CODE]void Load() { book *newptr,*p,*q; string id,title,author,year,price,date; ifstream file1; head = NULL; file1.open("books.txt"); if (file1.fail()) { cout << "Error opening file.\n"; exit(1); } while (!file1.eof()) { newptr = new book; // getline(file1,id); getline(file1,title); getline(file1,author); getline(file1,year); getline(file1,price); getline(file1,date); //copy values from the file to the newptr newptr->id.assign (id) ; newptr->title.assign (title) …

Software Development c++
Member Avatar for MugANDGlass
0
360
Member Avatar for queenz68

I'm in an intro programming class and have a problem. Hoping someone can assist me. What I'm trying to do is import a data file and have it read the array in reverse order. That part I have. The second thing I'm trying to do is have it total the …

Software Development java
Member Avatar for queenz68
0
99
Member Avatar for ces06546

Making an airplane seating map and the code does not break after the number 88 is selected and does not print our the array, any help? Thanks [CODE]import java.util.*; import java.util.Scanner; public class AirplaneSeats { public static void main(String[] args) { char[][] seats = new char[13][4]; char filledseat = 'x'; …

Software Development java
Member Avatar for zeroliken
0
1K
Member Avatar for Hiiero

I am loading a set of integers int a binary which is no problem, its when Im trying to increase their frequencies I am running into some difficulties. As it stands the program crashs if any of the numbers repeat themselves, any suggestions? [CODE] void BST::insert(int d) { tree_node* t …

Software Development c++
Member Avatar for mrnutty
0
136
Member Avatar for csharp_user

I made a listview that display names using a streamreader. When I select a name and delete it the name that was below in the list will then take the information of the deleted name when it's displayed in the textboxes which shows name, address and email. How can I …

Software Development listview
Member Avatar for csharp_user
0
184
Member Avatar for veelasong

I am having trouble parsing xml files using ElementTree after the python code is turned into .exe using cx_freeze. [CODE] from xml.etree import ElementTree file1 = 'file1' file2 = 'file2' tree1 = ElementTree.parse(file1) tree2 = ElementTree.parse(file2) print 'Done' [/CODE] It works fine with the .py file, but after I made …

Software Development data-structure python
Member Avatar for veelasong
0
418
Member Avatar for sodha125

I need to make multiple choice and a switch statement is used to check for correct answers. Also introduce a random element whereby the user can roll a dice and skip the following question if he gets a 6 (other rewards/penalties can be introduced for different dice values). this is …

Software Development c++
Member Avatar for Chuckleluck
0
2K
Member Avatar for hueikar

Good morning, All I am going to place the tag propeties at each node. And the tag content will be file path. But my coding is not working..Can someone help me.. Thnx. My code to generate treenode tag properties from xml is as below: [CODE] Private Sub AddTreeViewChildNodes(ByVal parent_nodes As …

Software Development visual-basic xml
Member Avatar for hueikar
0
102
Member Avatar for SteveyD

Not sure if I am explaining this correctly but here goes.. I am working on a .dll that depending on a value determined at startup, will select which method to use next. At the very beginning of this dll, [CODE]private string _Ver = Application.ProductVersion;[/CODE] Now if _Ver < 2 then …

Software Development
Member Avatar for thines01
0
90
Member Avatar for n3red

Hi, I it possible to implement an ActionListener to a global or local variable so that if variable changes the Listener performed a certain function / method etc.. I am working on a GUI application i am guessing there has to be a better solution than wrapping my main code …

Software Development gui java
Member Avatar for hfx642
0
1K
Member Avatar for legodadda

Flip Vertical and Print Code: Printer.PaintPicture Picture1.Picture, 0, Picture1.ScaleHeight, _ Picture1.ScaleWidth, -Picture1.ScaleHeight, 0, 0, Picture1.ScaleWidth, _ Picture1.ScaleHeight, vbSrcCopy I have seen this code in various places on the web but it does not seem to work. I am trying to get a label to flip to the vertical. Any help …

Software Development printer visual-basic
Member Avatar for BitBlt
0
352
Member Avatar for Jim887

[CODE] void init(); void tim(); int str; int per; int tou; int rea; int qui; int wou; void main() { init(); tim(); cout<<"\nPerception-" <<per<<"\nStrength -"<<str<<"\ntoughness -"<<tou<<"\nWounds -"<<wou<<"\nQuickness -"<<qui<<"\nReactions -"<<rea; system ("pause"); } void init() { cout<<"You have 45 points to put into stats"<<"\nPerception-1pts. per \nStrength -2pts. per \ntoughness -4pts. per …

Software Development c++
Member Avatar for Moschops
0
115
Member Avatar for g1skyfire

Here's a sample of the excel data: column A: partnumber AL-01-BLT AL-01-ATV AL-01-BRS AL-01-BAR column B: price 20 21 40 45 When the user selects the partnumber in combobox1 and combobox2, it should add the total price and output it in label1.. For some reason I'm getting an error now …

Software Development dataset
Member Avatar for g1skyfire
0
162
Member Avatar for LateNightCoder

In the program i am currently building, i need to do a frequency analysis of the letter occurance in a string I know how to do this in c++ and the code for that is [CODE]#include <iostream> using namespace std; // Function to increment the letter count in the counters …

Software Development
Member Avatar for thines01
0
234
Member Avatar for desert564

pls help me with this the user enters a number n.consider the sequence from 1 through n in ascending order.insert either '+' or'-' between each of the digits so that the resultant sum is zero. for eg: input=7 output= 1+2-3+4-5-6+7=0 1+2-3-4+5+6-7=0 1-2+3+4-5+6-7=0 1-2-3-4-5+6+7=0 however when i programmed it i only …

Software Development java
Member Avatar for NormR1
0
186
Member Avatar for vijay4

am able to draw different programs on swings using mouse drag.but if i draw one diagram the previous diagram is getting vanished. how to avoid that ? i want to have all the drawn diagrams on the screen [CODE]import java.util.*; import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.awt.Graphics; class draw1 …

Software Development java java-swing
Member Avatar for NormR1
0
161
Member Avatar for deanus

Hi, I'm doing a project with java using the console and I'd like to perform some actions (such as printing to the screen etc) while waiting for input. I was planning to accomplish this by using unbuffered input, by polling the keyboard and performing other actions alternatively, but apparently retrieving …

Software Development ide java
Member Avatar for JamesCherrill
0
86
Member Avatar for Hiiero

The program below makes two classes that when calling their generate functions in a .cpp file generates a list of soldiers and then a separate list of skills, I want to combine these 2 lists,that way you can say Soldier 1 has skill 1,4,7 while Soldier 2 has 3,4,5,6,7,8. How …

Software Development c++
Member Avatar for thines01
0
157
Member Avatar for pythonstudent11

What I'm trying to do is read a line from a file containing some data that includes a person's first and last name, their hourly wage and the number of hours they worked, and then writing to a seperate file their last name, first name: wage. The input file looks …

Software Development file-system python
Member Avatar for pythonstudent11
0
334
Member Avatar for Lemony Lime

So, this seems like it should be the default to me... if you're going to make your own picture for a button, I don't see why you'd want the default border around it, but I can't for the life of me figure out how to get rid of it. I …

Software Development gui python
Member Avatar for vegaseat
0
2K
Member Avatar for skp03

With the help of VB.net how to lock a computer screen using a form do anybody know please let me know

Software Development vb.net
Member Avatar for Reverend Jim
0
436
Member Avatar for Jaxyn

Beginner here (meaning I probably did something silly): I am trying to target indexed elements that have [A], in them. Entries for 'scarcity' and 'sweet' are both shown. I am running into trouble when index item[2] is empty. I get the following message: [code=text]['scarcity', 'scarce', '[A],', 'ity', '[N|A]', '[N]'] scarcity …

Software Development python
Member Avatar for Jaxyn
0
299
Member Avatar for MugANDGlass

[CODE]void Load() { book *newptr,*p,*q; char id [12]; string title; string author; int year; float price; ifstream file1; head = NULL; file1.open("books.txt"); if (file1.fail()) { cout << "Error opening file.\n"; exit(1); } while (!file1.eof()) { newptr = new book; // file1.getline(id,12); getline(file1,title); getline(file1,author); getline(file1,year); file1.getline(price); //copy values from the file …

Software Development c++
Member Avatar for Lerner
0
231
Member Avatar for dedmonds

I have created this code, but now I need the create new prgram that repeats the same steps three times, using loop. Clear the screen after each loop iteration. ??? [CODE] integer_count = 3 .data promptuser byte "Enter a two integers: ", 0 sumOf byte "The sum of the integers …

Software Development assembly
Member Avatar for sbesch
0
196
Member Avatar for zbar

Hi people, need some help in closing the window after program execution has completed. I am running Turbo c++ 4.5 for windows under Win7 32. Thanks. Heres the sample code: //Read and display test customer file #include <stdio.h> #include <conio.h> #include <iostream.h> struct customer { char c_name[50]; int i_age; }; …

Software Development c++ file-stream
Member Avatar for tapaninyc
0
3K
Member Avatar for sofia85

Hi, I need to extract some info from a file. This is two rows from what the file looks like: prob=0.0093;ID=RGT430;BQRS=491;BRZ=-4.263;ID2=RT914;DRT=0.00;HRun=0;HaplotypeScore=0.2794; prob=0.003;ID=RGR301;BQRS=4;BRZ=-3.261;ID2=EV913;DRT=0.00;HRun=0;HaplotypeScore=0.2654; ....etcetc until last row: prob=0.345. I want to extract prob from each row in the file and put it in a new file, but I don't know how …

Software Development python
Member Avatar for sofia85
0
136
Member Avatar for psandip

Hello everybody, While reading C++, I have been looking into iostream header file to understand a bit more about header file organization. I am not able to understand much of the code in there. For example the header starts with #ifndef _GLIBCXX_IOSTREAM. Does this check whether _GLIBCXX_IOSTREAM has been defined …

Software Development c++
Member Avatar for Fbody
0
407
Member Avatar for khizer03

hello everybody !!!!!!!!!! I have a code which i coded but in that their is an error to lock the screen in the form1 i have written [CODE] msgbox("we are about to lock your screen!!!") me.visible=false lockscreen.visible=true lockscreen.killprocess.enabled=true 'the code i had written in the timer is public sub killprocess(byval …

Software Development vb.net
Member Avatar for adam_k
0
103
Member Avatar for Hlopster

Hey Guys, i'm new to the forum and I would appreciate any help. I'm writing a program where the user needs to choose 5 numbers from 56. At the same time I'm using loop screen out numbers outside of this range. As a result only the 1st number out of …

Software Development c++
Member Avatar for Hlopster
0
163
Member Avatar for kikiritce

; multi-segment executable file template. data segment string db "THis is LuxUR in Summer." ends stack segment dw 128 dup(0) ends code segment start: ; set segment registers: mov ax, data mov ds, ax mov es, ax mov bx, offset string mov al, 0 ; lower letters in word mov …

Software Development assembly
Member Avatar for sbesch
0
261
Member Avatar for bonzo2008

How shall I write the code so i get surname first and forenamn last Set rs = db.OpenRecordset("SELECT * FROM tblData WHERE Surename & Forename LIKE '"& "'" & "& '*'") i don't know if this is right

Software Development visual-basic
Member Avatar for StephNicolaou
0
94
Member Avatar for challanger

Hi I am having trouble trying to connect to a local MySql db using the MySQL Connector/C++. I was able to successfully compile the bellow code but when I run it results in a Segmentation fault. I am trying to run this on a Windows XP machine using the g++ …

Software Development c++ ide mysql
Member Avatar for challanger
0
1K
Member Avatar for jankeifer

can anybody help me making this program? i've based my game from this site. [url]http://www.education.com/activity/article/Tick_tack_toe_Added/[/url] hope that someone can help me.. i've been stuck coding that for almost 6hrs but still no progress. thank you!

Software Development c++ gaming
Member Avatar for jankeifer
0
348
Member Avatar for tom92united

I've got a university assignment and just need to know how to remove an entry from the address book and use it as a method Here's what I have so far, everything's fine apart from the removing, please make it quite simple [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; …

Software Development
Member Avatar for thines01
0
216

The End.