132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sipchen

I'd like to print preview and print 3 tab pages from a windows form. Below is my code. I was able to get it to work if it's only one tab. but not 3 tab pages. [CODE] Imports System.IO Imports System.Windows.Forms Imports System.Drawing Imports System.Drawing.Printing Public Class Results Dim bmp …

Software Development vb.net
Member Avatar for guptamanav
0
2K
Member Avatar for pjconrad

I have an issue with my python code and in some cases, users are getting the "IndexError: list index out of range" message. However, I'm not getting the error and it's not happening with every case so it's a bit confusing. I did search the site and found this article …

Software Development python
Member Avatar for TrustyTony
0
1K
Member Avatar for youLostTheGame

I'm having troubles with a cin statement in my code and need some guidance. I need my code to refresh an array with completely different ASCII characters, then have the user enter a keystroke and have the refresh speed increase by a few hundred miliseconds every time. Now my C++ …

Software Development c++
Member Avatar for arkoenig
0
140
Member Avatar for Pundia

Hi, I'm working on a simple calculator in Delphi. The assignment is convert C code to Delphi code. My problem is that I've tried for days and I can't come up with something to replace "getchar" from the C code. This is the code in C: [CODE]#include <stdio.h> #include <stdlib.h> …

Software Development c c# c++ delphi pascal
Member Avatar for Battlesnake
0
599
Member Avatar for sinatra87

I recently received an 'A' on a program I submitted for the programming course I'm currently taking. I'm on spring break and I was hoping to use my spare time to do some studying, so I took my 'A' program and tried to run it in Visual Studio Express, and …

Software Development c++ visual-studio
Member Avatar for sinatra87
0
2K
Member Avatar for Venku Tur'Mukan

print "Hello, World!" ;) Hi, everyone, Venku (a.k.a Python Newb) here. I just kind of randomly opened up Python today (I do that a lot), and I decided I would finally ask this: What does the "is" statement do in Python 2.7.1 (if the ver# matters)? I checked out the …

Software Development python
Member Avatar for Venku Tur'Mukan
0
806
Member Avatar for asa88

Ok, so my task is to Write a simple TCP client that fetches pages from web servers.The client should be invoked with the command (for example) >> webclient [url]www.yahoo.com/[/url] >> webclient [url]www.msstate.edu/academics/[/url] • The client should get the response from the HTTP server and print it on the screen. Here …

Member Avatar for nezachem
0
725
Member Avatar for cj101

Hi, I'm making a system where only the supervisors can use the Ctrl+Alt+Del to bring up the menu (Vista / Windows 7) or start taskmanager (XP) Since my application will not be running on anything less than XP I don't need to worry about 95, 98, ME, 2000, etc. I …

Member Avatar for cj101
0
2K
Member Avatar for jfountai

Warning Newbie here. I am trying to read a properties file and set the values to be used throughout the code. I can open the file and get the values. I am struggling on making the accessible for other classes/methods. Here is what I have so far: [CODE] Properties configProp …

Software Development java
Member Avatar for jon.kiparsky
0
174
Member Avatar for SourabhT

[CODE] #include "stdafx.h" #include<iostream> using namespace std; class Shape { public: virtual void fun() { cout<<"in base"<<endl; } }; class Square:public Shape { public: void fun() { cout<<"in Square"<<endl; } }; class Circle:public Shape { public: void fun() { cout<<"in Circle"<<endl; } }; int _tmain(int argc, _TCHAR* argv[]) { Shape …

Software Development c++
Member Avatar for arkoenig
0
722
Member Avatar for fibbo

I just cant get my head around it. Is there another way going through a singly linked list without using some kind of helper function? The header file wants me to implement: [CODE]size_t priority_queue::size() { /* code here */ }[/CODE] Now I just could create a helper function that has …

Software Development c++ linked-list queue
Member Avatar for fibbo
0
368
Member Avatar for israruval007

ok lets say i have the following text T 2 X F X 2 Y G Y 1 Z Z 2 G 1 I 3 T G E F 2 I E looking at the first line t is the vertex 2 is the number of edges it has and …

Software Development c c# c++ file-system
Member Avatar for israruval007
0
2K
Member Avatar for GolfGr

Hello guys im working on a project for my class and im stuck. i dont have much of experience with linked list and my book isn't helpful with this project. Here is what the project is about: Develop an interactive program to implement basic linked list operations including: 1. Add …

Member Avatar for GolfGr
0
172
Member Avatar for zetologos

I have this homework assignment to make a calculator using a stack and converting infix to postfix. My infix to postfix method works fine. But the other method to evaluate it works for all cases except when multiples or divisors result in double digits. My calculator does not support double …

Software Development java
Member Avatar for tunlinaung
0
108
Member Avatar for unrealj

What I am doing here is in one class reading in a file where the first line contains info about the number of rows and columns in a grid to be made in a GUI representation. I made the first class read in the file, and returns a value "e" …

Software Development file-stream gui java java-swing
Member Avatar for unrealj
0
186
Member Avatar for luislupe

Hi, I'm building a clustering algorithm and need to visualize how data is distributed and relationed. For this, I'm thinking in histograms (numerical and categorical data) and scatter plots. If possible, a 3D like plot like [url]http://www.opendx.org/inaction/datamining/images/original/mci3.jpg[/url] would be nice, but is not required. I'd like to be able to …

Software Development algorithm c++ image
Member Avatar for L7Sqr
0
332
Member Avatar for guilt99

Hi, i am trying to get create a line chart with using WPF, the chart will show a trend of a data on a time range, so the chart will show the value of several series of data on months interval, this is what im trying to achieve: [ATTACH]20732[/ATTACH] i …

Software Development asp.net
Member Avatar for ddanbe
0
202
Member Avatar for ChrisHunter

Hi, i'm trying to implement a print function and i can print a single string out but i'm having trouble configuring the page setup properly, mainly moving to a new line when the margin of the page is reached and moving to a new lines for each string in a …

Software Development c#
Member Avatar for ChrisHunter
0
160
Member Avatar for GaBack

i want to make a tictactoe game. But i want all the rules are on the classes and call them to GUI. How can i send the ClickHandler public to the GUI??? here is the class code: ( public void ClickHandler ) [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; …

Software Development gui
Member Avatar for GaBack
0
252
Member Avatar for lss123

In a program I am writing, the one line of declaring an ifstream object causes the program to "crash" and a non-zero return code to be returned. Instead of pasting the full program here, I'll paste a sample program that "crashes" just the same. I put "crash" in quotations because …

Software Development c++ ide
Member Avatar for JamesPhillips
0
704
Member Avatar for xanawa

i would like to show an image in a datagridview cell giving the path of the image.. how can i do so?

Software Development image vb.net
Member Avatar for Mitja Bonca
0
1K
Member Avatar for macca1111

HI, I have written a small program that uses a while loop to calculate how many years it takes for an investment to double given an interest rate: However, I think there is something minor wrong with the calculation for years, since when testing I put in 100% it should …

Software Development python
Member Avatar for NoddyNUIG
0
4K
Member Avatar for kirtee2209

Hi. i need to count the number of times a button has been clicked in C# windows application. for asp websites i know how to do it using viewstates but i dont know how to do it with windows form application. Any help will be greatly appreciated.

Software Development
Member Avatar for kirtee2209
0
3K
Member Avatar for emanfman

Hi, I am really confused. Everywhere I read on the internet, I see that the += operator is part of the string class. I want to add something onto the end of the string. Why does my code not compile? I keep getting the C2088 error: illegal for class. If …

Software Development c++
Member Avatar for emanfman
0
148
Member Avatar for moone009

I keep getting an error: System.Data.SqlClient.SqlDataReader. Any idea on why this error is arising? [ICODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.SqlClient; using System.Data.Sql; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string strconn = "SERVER=22.3.1.9;User=CHMSE;password=18465!JFKi8nis;Database=CFOH"; SqlConnection conn = new SqlConnection(strconn); conn.Open(); SqlCommand cmd = …

Software Development
Member Avatar for Mitja Bonca
0
365
Member Avatar for WolfShield

Hello everyone, I am creating a C# application that has a Web Browser imbedded in it. I am using Microsoft Visual Studios C# Express Edition so I just dragged and dropped the web browser into the application. What I notice though, is when I run it and do a search …

Software Development web-browser
Member Avatar for WolfShield
0
128
Member Avatar for xanawa

I haver this piece of code. which is giving me a nullreferenceexception.. [CODE]private void dgvMessages_SelectionChanged(object sender, EventArgs e) { if (dgvMessages.CurrentRow == null) { return; } try { int select = dgvMessages.CurrentRow.Index; //NULL REFERENCE EXCEPTION DateTime dateTimeMessage = Convert.ToDateTime(dgvMessages.Rows[select].Cells[1].Value.ToString()); string date = dateTimeMessage.ToLongDateString(); string time = dateTimeMessage.ToLongTimeString(); lblDate.Text = "Date: …

Software Development
Member Avatar for xanawa
0
218
Member Avatar for hawita

Hi, what does this mean in c++? [CODE] sum += c[/CODE]

Software Development c++
Member Avatar for Fbody
0
316
Member Avatar for dnk

Hello all.. I'm looking for how to count words in textbox. Any help will appreciated. Thank you.

Software Development visual-basic
Member Avatar for dnk
0
3K
Member Avatar for jarograv

[CODE]#created by Jaron Graveley #April 26th, 2011 #This program completes reservations for Jon Von Poechman’s airline in an easy to use program #variable list: #i=counter used to limit the number of seats present on the diagram #n= counter to display the row number on the diagram #num_booked=counts the number of …

Software Development python
Member Avatar for jarograv
0
249
Member Avatar for xanawa

how can i send an email frm c# pls?

Software Development email
Member Avatar for xanawa
0
105
Member Avatar for djansyle

Hi ... i want to send multiple screenshot images from my client to server.. now i already get the screenshot code.. and the only problem i have is that .. i can't send them in my server.. any code will help... Thanks Ahead.. God Bless...

Software Development client-server vb.net
Member Avatar for Mitja Bonca
0
200
Member Avatar for Arjun_Sarankulu

[CODE] namespace Test1 { public partial class Form1 : Form { string emp_code = ""; public Form1() { InitializeComponent(); } private void Uploadbutton_Click(object sender, EventArgs e) { openFileDialog1.ShowDialog(); filenametextBox.Text = openFileDialog1.FileName; }//Uploadbutton_Click private void save_to_DBbutton_Click(object sender, EventArgs e) { SqlTransaction transaction = null; string servername = ""; string dbname = …

Software Development open-source
Member Avatar for Arjun_Sarankulu
0
173
Member Avatar for Usmaan

Hi everyone, I know there's a section designated for Mobile Development but, that's really dead and It wouldn't hurt anyone if I posted here - It's a C# related question anyway. I'm making a Naughts and Crosses game on my Windows Mobile - HTC. The game works fine, I can …

Software Development c# gui
Member Avatar for C#Jaap
0
385
Member Avatar for alice_k

Hi folks, I am learning C++ programming. Below mentioned program giving segmentation fault ONLY WHEN if I declare 'struct s a;' ABOVE 'struct s *b;'. Can anybody tell me the reason? [CODE] #include<iostream> using namespace std; struct s { int m; }; int main() { struct s a; // if …

Software Development c++
Member Avatar for Moschops
0
723
Member Avatar for prateeksalian

hi, how to call exe file with some parameters from java and save the output of the exe file in a specified path. Please let me know immediately..its urgent!!! I am using the following code : I want to save the file after running this DPAnalysis.exe on jan.xls into my …

Software Development java
Member Avatar for mKorbel
0
157
Member Avatar for silentassasin

Hi, I wrote a program for detecting circles using Hough Transform using OpenCV in C. The program inputs 3 images, each image contains a fixed small circle and a big circle with variable position. The program then recognizes both the circles and marks the centres of both the circles. Now …

Software Development c image storage
0
188
Member Avatar for dare599z

Hello, I'm re-creating the game Riveter using wxPython. I have all the basic fundamental groundwork done, and now I'm just trying to polish certain aspects. I am, however, having problems removing buttons from the screen. I have a panel, with a vertical sizer inside of it. Inside of that vertical …

Software Development gui python
Member Avatar for dare599z
0
2K
Member Avatar for gomezfx

Hi, I have a question about generating a 1kHz sine wave. First of all, we can't use the sin function so I just made a function that evaluates sin at some point... [CODE]int generate_sin(int t); { int sin; sin = t - ((t^3)/(3*2*1)) + ((t^5)/(5*4*3*2*1)); return sin; }[/CODE] Now, this …

Software Development c++
Member Avatar for drkybelk
0
2K
Member Avatar for VernonDozier

I am trying to work on a project for school from home. The school computer has Oracle and I am trying to access it from home using Java/JSP. Currently I have Java SE with NetBeans installed on my home machine (Windows XP SP II), but not Tomcat or Oracle. The …

Software Development java java-jsp java-netbeans oracle
Member Avatar for masijade
0
374
Member Avatar for wenbnet

i m using vb.net with oledb connection when retrieving data from EMP database i m getting error as syntax error(comma) in query expression 'eno='1',lname='',fname='' And FromPay=## And ToPay=##' plz help... [CODE] Private Sub PopulateNameList() Dim Connection As New OleDbConnection(ACCESS_CONNECTION_STRING) lvName.Items.Clear() lvName.Sorting = SortOrder.Ascending Dim cmdfill As New OleDbCommand("SELECT eno, lname …

Software Development vb.net
Member Avatar for wenbnet
0
333
Member Avatar for Jazerix

Hey I'm trying to manage some processes So ive created a listview, the first column contains the name of the processes, the second should contain the id of the process, but I honestly cannot figure out how to get it working, making the "ListViewItem" control, but its not really working …

Software Development listview
Member Avatar for Sravanthi Ch
0
118
Member Avatar for pooran.c

that is expected output is [CODE] sun mon tue wed thu fri sat 1 2 3 4 5 6 7 8 9 10 .... ... ... 29 30 31 [/CODE] my code: [CODE]static void print_31days(int a[][]){ int i=1; while(i<=31) { int some=0;//some is the startdate of the month of the …

Software Development java
Member Avatar for pooran.c
0
166
Member Avatar for girishsp

hi all, i need to develop windows applications(c#,mysql)as i have started to develop applications recently i need some examples to refer(which includes almost all controls) may be like customer maintenance or order placement form etc..so can any one help me out.. thanks a lot,

Software Development c# mysql
Member Avatar for abelLazm
0
266
Member Avatar for umesh314

Hi all , i have a string var containing info like this. [B]STRING[/B] = "Are you posting in the most appropriate place [B][COLOR="Red"]PKG0620_REL_23_Nov_2010[/COLOR][/B] to receive relevant replies" So, my program will ask only "PKG0620" info to be given by the user which i am storing in SEARCH var. SEARCH = …

Software Development regex vb.net
Member Avatar for umesh314
0
127
Member Avatar for DYP

i've a problem to split a joining multipe type of file here's my code for joining two diff type file, pict file (jpg) and audio file(mp3) an ouput is pict file contains audio file in it. a problem is how do i check this file is joining file or not? …

Software Development audio file-system python
Member Avatar for DYP
0
187
Member Avatar for Sravanthi Ch

Hi, I need code to invert the selected items in list view. Can any one help me out.. Thanks in advance for help.. Regards, Sravanthi Ch

Software Development listview
Member Avatar for Sravanthi Ch
0
386
Member Avatar for MokaChick

Hello, My group and I are currently writing a hangman-like program for our class (I know hangman related questions have been asked a billion times, but bear with me). We are having issues with being able to replace our * with the correct letter (if it is correct). Here is …

Software Development java
Member Avatar for MokaChick
0
197
Member Avatar for yongj

So I'm trying to code a program where it produces a directory listing of all files matching a specified file name pattern. I have compiled a code that is somewhat similar (But still functions differently) than the code I want; my code just lists the directory with full parameters. How …

Software Development c
Member Avatar for Ancient Dragon
0
159
Member Avatar for newack

Hello, I have not used Sql server. I have microsoft sql server 2008 installed. but when i click management studio, it says evaluation period expired. I can download sql server 2008 r2 developer from my university site. Should i go ahead and download sql server 2008 r2 developer and uninstall …

Software Development sql
Member Avatar for Mitja Bonca
0
79

The End.