43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for puk

Hi, it have written a notepad application in C# 2008 which i am using to open documents with a lot of lines for example 5000+ lines. the problem that i have is that i have created a button that i want to use to select a specific number of lines. …

Software Development
Member Avatar for Diamonddrake
0
111
Member Avatar for Manak

i am working on a project and i need to show a error message if the user enters string in a text box whose datatype is int?? it throws exception that input string is not in correct format...:(

Software Development
Member Avatar for ddanbe
0
212
Member Avatar for sravan953

Hey, I have a simple progam at hand....what I need now is a WYSIWYG(What You See Is What You Get) GUI Editor with which I can create good user interfaces without(or with very less) coding! Any ideas for such a program? Thanks

Software Development gui python
Member Avatar for sneekula
0
2K
Member Avatar for sarganaa

i m new to c# i was designing a calculator i need to accept a string of integers from textbox save it in a variable clear the textbox and then accept a new string of integers plz kindly help

Software Development
Member Avatar for sarganaa
0
2K
Member Avatar for athlon32

Just few quick question: How often are pointers to functions used? Should i implement them in my programs?

Software Development c++
Member Avatar for athlon32
0
122
Member Avatar for JackDurden

How would I find a row with a column value? Say Im looking for people with the name "Lance" then once ive found Lance display the row of info for lance. Ive tried using select but cant seem to get it to work. Here is my code. [CODE] using System; …

Software Development
Member Avatar for flavioweb1
0
279
Member Avatar for gudivada213

[code] #!/usr/bin/env python import MySQLdb file=open("capgps.txt",'r') #Open database connection db = MySQLdb.connect("localhost","root","8868","myproject") # prepare a cursor object using cursor() method cursor = db.cursor() #line is like below #$GPRMC,111503,A,0833.6323,N,07652.7685,E,0.1866,256.540,220609,,*2A for line in file: data=line.split(",") if data[0]=="$GPRMC" and data[2]=="A": if data[4]=="N": latitude=str((data[3])/100.0) else: latitude=str((-data[3])/100.0) if data[5]=="E": longitude=str(data[5]/100.0) else: longitude=str((-data[5])/100.0) linedata = {'time':data[1], …

Software Development python
Member Avatar for gudivada213
0
5K
Member Avatar for DaveD3

I have an interesting problem I hope you can help me with. The situtation is this, my appliction uses a datagridview bound to an access database. There is an edit button which puts the dgv into editable mode for the user. When the user had made the updates they want …

Software Development
Member Avatar for DaveD3
0
111
Member Avatar for rockinsteve

Hi. I am new to the site and not too clever at Pascal (beginner). I need to be able to get an IP address, then compare it with one I want to use then if the address is the same run a program if not quit. This is to get …

Software Development pascal
Member Avatar for rockinsteve
0
301
Member Avatar for Zay

hello; can we say this when defining an enumeration : enum letter{A=4,B=3,C,D,E}; i mean give letter B value smaller than the value of the letter A , is it possible ? and what is the real benifet of the enumeartion in general ? sometimes when making "cout" statement , the …

Software Development c++
Member Avatar for Zay
0
125
Member Avatar for zuve_fox

hi.. plz help me i have application to read mifare card(smart card) which use vb.net to build application my mifare/smart card read display UID "F4 76 4A 3C" but i use that application and smart reader to read my mifare/smart card, that display in decimal "1011513076". How display that value.should …

Software Development vb.net
1
72
Member Avatar for krokodajl

Hi Everyone! I have a wired problem with print preview in Delphi. When I am invoking a PreviewModal procedure on QuickReport object Preview page appears. But sometimes [B]printer setup[/B] and [B]Print[/B] icons are inactive. Colud someone explain me this situation? Best regards

Software Development delphi pascal printer
Member Avatar for krokodajl
0
87
Member Avatar for ChrisPaul

Hello, I have an SQL server 2005 database/table with a name and email columns. I was wondering what would be the best way to get the data from sql and send automatic emails using a web based form in asp.net lets say every month...is there any samples of such procedure …

Software Development asp.net vb.net web-server
Member Avatar for Teme64
0
110
Member Avatar for Nikhar

[code] #include<iostream.h> #include<conio.h> class suitcase { int sno[20]; long double amount[20]; public: suitcase(); void print() { int i; for(i=0;i<=19;i++) cout<<amount[i]<<'\n'; } }; suitcase::suitcase() { amount[20]={0.25,1.0,10.0,100.0,250.0,500.0,1000.0,5000.0,10000.0,50000.0, 100000.0,200000.0,300000.0,400000.0,500000.0,1000000.0, 2500000.0,5000000.0,7500000.0,10000000.0}; } void main() { suitcase s1; s1.print(); } [/code] When I run this program, I get an error :- [quote]expression syntax in function …

Software Development c++
Member Avatar for Nikhar
0
104
Member Avatar for S2009

Hi All, I am creating an application where in I want to display the rows in DataGridView based on the values entered by the user in the textbox. For Eg. If the User enters the BookName in the textbox all the details regarding that book should be displayed in a …

Software Development open-source
Member Avatar for kvprajapati
0
628
Member Avatar for lolwtf

I don't use combo boxes very much, so I basically forgot how to use them. Im connecting to an SQL database and I just want to populate a combo box with a users first name. Heres what I have so far: DBATimeOff.SelectCommand.CommandText = "SELECT FName FROM tblEmployee" DBATimeOff.Fill(DataTimeOff) CmbEmployee.DisplayMember = …

Software Development sql vb.net
Member Avatar for lolwtf
0
260
Member Avatar for aayush2687

hey guyz howz u ???? cn u tell me how cn i color my console based output( in C# ) not a whole output but a selected string only. plz tell me if u knw d answer .......:) Bye TC

Software Development
Member Avatar for aayush2687
0
101
Member Avatar for ravikiran032

[code] # include <stdio.h> # include <conio.h> #define squ(x) x*x main( ) { float s=10,u=30,t=2,a; a=2*(s-u*t)/squ(t); printf(“result :%f”,a); } [/code] [B]output is -100.000 how is it possible[/B]??

Software Development c
Member Avatar for MosaicFuneral
-1
102
Member Avatar for gingank

Hi guys, I has a question to ask it is possible to call out the same ID on two different table. Example i have same ID like said 123 on table 1 & table 2 it is possible to call then out and show out on the data grid when …

Software Development microsoft sql visual-basic
Member Avatar for vb5prgrmr
0
119
Member Avatar for dantheman3141

Hello. I have come across many scripts for rebooting remote computers using python, but what about the computer the script is running on? If possible, I would also like my script to run in the background so the little cmd box is not visible. Thanks in advance for your help.

Software Development python
Member Avatar for dantheman3141
0
886
Member Avatar for Hiroshe

I'm trying to make a simple prime number generator for bigger program. It needs two numbers (n and c) and needs to edit them. So I decided to put the numbers in pointers, and just give the adress two the pointers. After about a half-houre of fumbling with *'s and …

Software Development c
Member Avatar for tux4life
0
154
Member Avatar for johndb

Hello I am not an experienced programmer, and I entered some code from a book I am following, to see if it would work but unfortunately I have run into some difficulty. This program prompts the user for the red, green, and blue values, and then fills a rectangle with …

Software Development java java-swing
Member Avatar for johndb
0
4K
Member Avatar for rasizzle

Hey all, Here is what I'm trying to do. I have a list whose output is: [['4/18/94', '29.125', '442.46'], ['4/19/94', '29.336', '442.54'], ['1/20/04', '75.175', '1138.77'], ['1/21/04', '75.711', '1147.62'], ['1/22/04', '75.595', '1143.94']] Item [1] in each list, the middle item, is the number I want to focus on. Currently, I have …

Software Development python
Member Avatar for rasizzle
0
104
Member Avatar for hughesadam_87

Hey guys, I have been trying to search for this answer on online tutorials, but cannot figure out just what I am doing wrong. I have a list of names, and some of them have the character '/' For example: [CODE]list = [adam, bill, jon/juan][/CODE] Because later in my code, …

Software Development python
Member Avatar for hughesadam_87
0
131
Member Avatar for lqdo

I have a textbox and two events. The first event selects all text in the textbox if there is any. The second event deselects the text. My to events... [CODE] private void Textbox_enter( object s, EventArgs e ) { TextBox box = s as TextBox; box.SelectionStart = 0; box.SelectionLength = …

Software Development
Member Avatar for lqdo
0
111
Member Avatar for jaque322

i have an arraylist, that stores objects from a class called prematricula and every object stored has name and province how i can do to pass the name of the province and the method return the names of the students sorted alfabethically... please if someone can help me....

Software Development java
Member Avatar for jaque322
0
114
Member Avatar for KirkPatrick

Alright my program is giving me a hard time and I will have to briefly explain what it does and when the exception is thrown to give you a better understanding. My program goes off and reads a csv file, once it reads it, it adds the information to my …

Software Development java
Member Avatar for KirkPatrick
0
132
Member Avatar for dmanw100

Hello, I am writing a method which must open a file, read its contents, close the file, open it later, write to the file, and close it again. The method is failing at the first step and throwing an IOException when trying to execute: [CODE]FileInput Stream fileHandler = new FileInputStream("myfile.fil");[/CODE] …

Software Development file-stream java
Member Avatar for dmanw100
0
152
Member Avatar for johnray31

Hi guys, i am quite newbie to c++. Is there any way to know object class. I have a object and i want to know the exact class name for that.

Software Development c++
Member Avatar for tux4life
0
125
Member Avatar for walter clark

The .h file traditionally holds declarations and the .cpp file the definitions. The #include inserts the human readable ASCII code that is the .h file, right there at the top before compiling. The main purpose of the .h file was to gather together all the declarations (more even than you …

Software Development c++ file-system
Member Avatar for walter clark
0
122
Member Avatar for happymadman

So I have this simple list and scroll bar combo and I have been trying to make it stay at the bottom of the scroll bar as the text is added so it looks like the scroll bar is just to look back over the previous text. Like in a …

Software Development python tkinter
Member Avatar for kolosick.m188
0
108
Member Avatar for kangarooblood

does anyone of you lot know a way to use colors in a program compiled in Dev C++, except for the [code=c++] system("color a"); [/code] function? and I'd also be glad to know another way to clear the screen, then the: [code=c++] system("cls"); [/code] function

Software Development c++
Member Avatar for Tom Gunn
0
113
Member Avatar for Manak

hey everyone i am using a select query and showing input string is not in correct format ...plz help me...... here is my query..... int id = Convert.ToInt32(String.Format(@"SELECT Id FROM Student WHERE RegNo ='{0}' ", cmbRegNo.Text));

Software Development
Member Avatar for Manak
0
257
Member Avatar for txwooley

I have written a poker game in Python and have it fairly well finished. My hang-up now is an option to play again. Most of the game is in a function called playHand() which re-runs as long as you still have money, but if you lose all of your money, …

Software Development python
Member Avatar for txwooley
0
332
Member Avatar for MONODA

Hello, I am not sure if anyone will understand what I am asking for, but here goes anyway: I am looking for a way to generate a list of tuples with random values; something like the range function except I want to have a list of tuples rather than integers. …

Software Development python
Member Avatar for MONODA
0
10K
Member Avatar for mundetas

I would like to put my windows form application to be online, where by it will connect to a webserver and get data from the database on the webserver. Are there any sites or ebooks I can get on windows app going online

Software Development
Member Avatar for Ramy Mahrous
1
2K
Member Avatar for goody11

My friend and I are trying to write a program for my Spanish teacher so that she can just type Spanish words and English words into an application, those words get stored as an array somewhere, and then another program that tests the kids uses that array. The program gives …

Software Development c++
Member Avatar for s_sridhar
0
118
Member Avatar for Nikhar

I'll try to get this as simple as possible. The problem is fairly simple. [code] long double a=100000000; cout<<a; [/code] Well, the output this shows is "1e+08" I do not want the output to be in exponential form. Rather, I want it to be printed as "100000000". What shall I …

Software Development c++
Member Avatar for s_sridhar
0
109
Member Avatar for hughesadam_87

Hey everyone, I tried a site search but it turned up cold. Has anyone here ever written a small method to take a list of names and sort them in alphabetical order? If so, would you mind posting it up, or directing me to a tutorial that would explain this …

Software Development python
Member Avatar for lllllIllIlllI
0
96
Member Avatar for havejeet

Hi All, I want to convert any (current datetime differs in format depending regional setting) into 20090622172120 format. How do I do that? I want solution that work with any regional setting. many thanks, Jeet

Software Development
Member Avatar for havejeet
0
150
Member Avatar for Jintu

Write a Python program to show the temperatures starting at zero degrees Celsius, up to 100 degrees Celsius, in steps of 2 degrees, with the corresponding Fahreneit temperature shown in the next column. Temperatures should be shown as floating point numbers to two decimal places. Use a for loop for …

Software Development python
Member Avatar for vegaseat
0
233
Member Avatar for adamramadhan

can anyone show me the diffrence ? im still confuse i read about vb and net at wikipedia but i just dont understand vb.net and vb .

Software Development vb.net
Member Avatar for adamramadhan
0
222
Member Avatar for valinux

HI EVERYONE :D!! This is my first thread. Well today was my birthday! And I got my first computer! I have always wanted one and I have always wanted to start programming! I got a Microsoft Windows XP and a extra external hard drive!! Not the best computer ever but …

Member Avatar for csurfer
0
157
Member Avatar for nagatron

Is it possible to view the codes of an exe file using VB6 similar to ResourceHack found in google. download link: [url]http://www.softpedia.com/get/Programming/File-Editors/Resource-Hacker.shtml[/url]

Software Development visual-basic
Member Avatar for vb5prgrmr
0
281
Member Avatar for sravan953

Hey guys, I use Python 2.6.2, and have made a program; here's the code: [CODE]import subprocess import time def open_program(): time.sleep(s) print 'Opening the program...' subprocess.call(c) h=input("Time: ") c=raw_input("Enter the full location of the program you want to open after the desired time: ") s=(h*60*60) open_program()[/CODE] I also have some …

Software Development gui python
Member Avatar for Stefano Mtangoo
0
232
Member Avatar for papanyquiL

I'm supposed to make my class cloneable for class, but I can't get it to work... Here's what I have so far: [code] public class Employeex : ICloneable { // using properties instead of the constructor public int EmployeeID { get; set; } public string Name { get; set; } …

Software Development
Member Avatar for papanyquiL
0
181
Member Avatar for eliza2044

Hey guys, I have a problem printing out the contents of a list of objects, with the following code I loop through the list and call the displayInfo() method that it's responsible for printing out the different attributes of the object. I have tested the displayInfo() method and works fine, …

Software Development c++
Member Avatar for tux4life
0
150
Member Avatar for NervousWreck

I recently installed Ubunty Jaunty (Linux). I checked out the Linux version of the Codeblocks IDE. Obviously things like [code] system ( "pause" ); [/code] didn't work because of the operating system. Is there a library I can include -- or a package I can install -- that will give …

Software Development c++ ide operating-system
Member Avatar for NervousWreck
0
132
Member Avatar for HBMSGuy

Hello, How would I go about being able to use a URI of a binary class. For example, I need to be able to give the URI for a song, but the song comes for a SQL server which sends it in a binary form, which is on the memory. …

Software Development
Member Avatar for HBMSGuy
0
3K
Member Avatar for mimsc

Hello all I have a string Im getting back from the database as follows: ('MCKINNEY','TX'),('ALLEN','TX'),('ANNA','TX') I need to break it down and drop into an array 'MCKINNEY','TX' 'ALLEN','TX' 'ANNA','TX' ..normally I get multiple records and just drop the resultSet into a Vector and do "elementAt(i)" to display, but I never …

Software Development java
Member Avatar for ~s.o.s~
0
163

The End.