64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jcmeyer

I have a textentrydialog and my goal is that the user cannot leave the the text entry blank or just empty whitespace. So the dialog should not go away until the user enters some characters in the box or hits cancel. This is what I have: [CODE]def OnNewButton(self,event): error=1 while …

Member Avatar for JasonHippy
0
98
Member Avatar for Firefly1985

Hi, i know my following question may seem rather stupid but im having some problems understanding the static concept especially in the following code and id appreciate some help. [code] 4: using System; 5: 6: public class myClass 7: { 8: static public int sctr = 0; 9: public int …

Member Avatar for kvprajapati
0
80
Member Avatar for smelf1

Hi all, I would like to be able to show all the websites visited on a machine. How would i go about doing this. Thanks

Member Avatar for rapture
0
836
Member Avatar for rmlopes

Hello, I am developing a library, which untill a few days ago was working perfectly. With some changes I needed to perform I started having a segmentation fault. The problem is that I cannot understand why the fault is happening since the conclusion from gdb is the following: [code] Program …

Member Avatar for rmlopes
0
157
Member Avatar for grvs

Hi I am trying to display time in a text box which updates itself every second. I am using visual C# and I am pretty new to it. (My first program in visual C#) (Actually its part of a little bigger problem in which I have to implement a timer …

Member Avatar for grvs
0
617
Member Avatar for virang_21

Hi, I have hosted a website that has MSSQL Server 2005 database on different machine. I am using the following connection string [code]<add name="ConnectionString" connectionString="Server=mssql2005.ableos.com.au;Database=visualinventory_ableos_com_au;Uid=myuserid;Pwd=mypassword;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />[/code] I am getting the following error. [B]A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server …

Member Avatar for smithroy9
0
151
Member Avatar for J-P

Hi, Is there any (free) graphical engine for Visual Basic .Net that can be used to show 3d graphics and/or create games? Anything is appreciated... Thanks,

Member Avatar for J-P
0
220
Member Avatar for k2k

say i have: document.writeln("0") document.writeln("1") document.writeln("2") document.writeln("3") document.writeln("4") how i do generate them in different order each time but all of them must display? ... please help ex: .... 1 ........ 3 ...........0 ...........4 ........... 2 then another output would be: ........3 .........2 .........4. .........1 ............0 ... all random but …

Member Avatar for essential
0
136
Member Avatar for stan yost
Member Avatar for saikrish
0
129
Member Avatar for max.yevs

i've been trying to make simple programs and downloaded python 3.01. unfortunately i have no programming experience, and am a bit stuck despite searching around the tutorial, library, etc. (please forgive if this question is already answered somewhere) my first attempt at a program is >>>print (hello world) hello world …

Member Avatar for carapace
0
176
Member Avatar for Manak

Can nyone tell me how to relatr combo boxes???? i hv used this code bt this is throwing exception ......ny help would be appreciated .I hv jst started wworking on c# i hv used the following code nd i hv populated the cmbschoolcode in loading of my form [code=csharp] private …

Member Avatar for Manak
0
279
Member Avatar for lithodora

Form Validation Script: [code]<script language="javascript"> function handler(where){ //check for unusual characters var iChars = "!@#$%^&*()+=-[]\\';,./{}|\":<>?"; var wspace = " "; for (var i = 0; i < where.value.length; i++) { if (iChars.indexOf(where.value.charAt(i)) != -1) { return false; } if (wspace.indexOf(where.value.charAt(i)) != -1) { return "nope"; } } } function emailhandler(where){ …

Member Avatar for foryounow
0
139
Member Avatar for DealthRune

I am using this thread to show an example to a website on my javascript table editer I made. To see the script in action, just put it in one of your text editers (i.e Note Pad, ect... ect...) Description: With this, you can add cells, delete cells, add rows, …

Member Avatar for DealthRune
0
143
Member Avatar for akkkk

Hi i have a program that currently reads in the contents of a file and stores it in a string. Some of the files are quite large so speed is quite important. I want to print out the words that begin with capital letters and was wondering how i could …

Member Avatar for akkkk
0
214
Member Avatar for tiger86

I'm developing a program in PHP. I'm still a beginner in PHP thus said I may ask some questions that may seem basic. How would you go around compressing PHP into a downloadable file for redistribution.

Member Avatar for almostbob
0
124
Member Avatar for serkan sendur

A wierd thing is happening guys, when i start the application without debugging everything works fine, when run the application in debug mode, it stops responding whether or not it hits any break point.

Member Avatar for serkan sendur
0
77
Member Avatar for bharanidharanit

Hello, I want to read a text file in C and the output file must be created and want to reverse the data in tat output file created. So i used the below coding but not reversing the data in the output file created. eg: input file contains this data …

Member Avatar for Dave Sinkula
0
358
Member Avatar for Killer_Typo

[CODE]Could not connect to: : 50404 java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at java.net.Socket.<init>(Socket.java:367) at java.net.Socket.<init>(Socket.java:180) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.connect(RemoteTestRunner.java:560) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:377) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) [/CODE] has anyone run into this issue and or find a fix? I've not been …

Member Avatar for dmanchester
0
1K
Member Avatar for MrNoob

okay i understand all bitwise operators but in the chapter of k&r at bitwise operators i m really lost at there question i have no idea how to do them Exercise 2-6. Write a function setbits(x,p,n,y) that returns x with the n bits that begin at position p set to …

Member Avatar for Tom Gunn
0
378
Member Avatar for jcmeyer

I know that, in python, to start a file with it's associated application that is located on my hard drive I can simply use os.startfile. However, I want to be able to start a file with it's associated application that is located on an ftp site. Does anyone know how …

Member Avatar for jcmeyer
0
132
Member Avatar for lotrsimp12345

[code=cplusplus]#include <iostream> #include <cstdlib> using namespace std; int main() { cout <<"enter the problemset and number""\n"; //problems represents name and numbers string problems; string problem_name_and_numbers=problems; string numbers; char quote; int total_length=problems.length(); //gather name if(cin.peek()=='"' || cin.peek() == ''') { cin >>quote; getline(cin,problems,quote); int problemslength=(problems.length()+1); int difference=total_length-problemlength; numbers=problem_name_and_numbers.substr(problemlength,difference); } else { …

Member Avatar for lotrsimp12345
0
124
Member Avatar for Cman2020

Hello guys help please i'm trying to write to a disk and append it whenever i open the program i can add to it instead of witting a new one StreamWriter Write; Write = File.CreateText("c:\\TestFile.txt", FileMode.Append); Write.WriteAllText(txtOutput.Text); Write.Close(); MessageBox.Show ("File Created SucacessFully"); getting this error:- No overload for method 'CreateText' …

Member Avatar for Ramy Mahrous
0
187
Member Avatar for jooa

Hi, I am trying to write some code which uses a JSlider to specify the number of lables to be displayed on a frame. I know how to create the JSlider and display it, but I am not sure how to implement different numbers of lables. I hope someone can …

Member Avatar for VernonDozier
0
106
Member Avatar for serkan sendur

each time i hit run button to deploy my mobile application, it keeps asking whether to deploy .net framework which already is installed. i want to disable that compact framework deployment. do you guys know how?

Member Avatar for serkan sendur
0
125
Member Avatar for hanzi_ru

hi i have created two combo boxes which contain locations and floors. After selecting the location from the first combo need to filter the floors allocated to the selected location, to the second combo. i have allocated floors to locations in another table called floor allocate. can somebody pls help …

Member Avatar for Manak
0
2K
Member Avatar for seebharath

How do I make a tooltip with summary appear for cutom defined functions just like the one that appears for inbuilt functions with VS 2008 Like when I type List.Add() a tool tip says what the inpute params are and what the add functions does I have tried writing comments …

Member Avatar for seebharath
0
119
Member Avatar for williamyounger

hey, i am creating a basic game, something a bit like space invaders but only 3 levels long. I'm haveing trouble moving from Form2 (level 2) to Form3 (level 3), Form3 opens, Form2 closes, and I want the start menu (which is on another form called Start) to show if …

Member Avatar for williamyounger
-1
123
Member Avatar for b89smith

In the application that I am building I have a log window that contains a listview control. This listview control has two columns, a time stamp column and log description column. When an event happens it is added to the listview. The problem is that when about 15+ events happen …

Member Avatar for b89smith
0
145
Member Avatar for fayola

hey, first off I'd like to state that I am pretty new to ms sql and stored procedures tho I have worked with sql for quite some time. My employer would like me to write a script which takes html content from a mssql db (originally delivered dynamically) and create …

Member Avatar for fayola
0
240
Member Avatar for Brent720

I am having an inordinate amount of difficulties locating an example of how to display Unicode using Lazarus and FPC. It's supposed to be fully UTF-8 capable now, yet all I get are question marks for text strings, or else little skinny boxes in place of the characters. Can someone …

Member Avatar for Brent720
0
1K
Member Avatar for lexusdominus

Im having some problems organising my code in a large (for me) project. Basically my problem stems from having 1400 lines in one source file. Ive written 38 functions which all have declarations above the main function. Below my main function block i have all of the function definitions. Im …

Member Avatar for lexusdominus
0
158
Member Avatar for sid78669

Hi, As a requirement of one of my assignments, we have to upload images, videos and audio files in a column called fileContents. Earlier I had set the data type for the column as 'Image'. But my professor says that I wont be able to upload Audio or video to …

Member Avatar for sid78669
0
105
Member Avatar for begnnr_help

I have a problem where I am writing a program that has a predefined costs for tickets. The program asks what city you want to go to and then it asks how many tickets you want to buy and it calculates the cost. If you want more it will ask …

Member Avatar for begnnr_help
0
202
Member Avatar for sparcheta3

Hi guys, I'm new and self teaching myself C++. A problem from the book says to create the CandyBar Struct and the create a dynamic array that hold 3 structures, initialize the structures and output each of them. The code works BUT I'm wondering if there is an easier way …

Member Avatar for jencas
0
140
Member Avatar for gingank

Can anyone tell me is i want to post the $to with the select box how to do it i write the code [code=php]$to= $_POST['to']; if($to == ''1") {POST "address 1";} else { $to=="0" {POST "address 2"}}[/code] Then i mail will post to email address 1 or 0. But the …

Member Avatar for cwarn23
0
138
Member Avatar for plusplus

I have the following code for reading an online file, somehow the first line returns an empty string, what can be the reason for this? Dim myRequest As WebRequest = webRequest.Create(myurl) myRequest.Proxy = WebRequest.DefaultWebProxy Dim mystream As Stream = myRequest.GetResponse.GetResponseStream() Dim objReader As New StreamReader(mystream) Dim sLine As String = …

Member Avatar for Teme64
0
594
Member Avatar for weblover

hi all ...how are u? i have a question ...how can i output the items of a java Stack ...is there any predifine method?? and another question ...how can i use the class Queue without interface ? ...because i'm typing in my code (Queue q =new Queue();) but it's giving …

Member Avatar for weblover
0
206
Member Avatar for major_lost

Can someone give me some idea how to write the rtf file required for the VB4 help complier. Please explain in english in simple terms. I don't understand the instructions at all and I am: major_lost

0
62
Member Avatar for titosd

Hello, I have a question about sorting. How can I sort HashMap by element in the HashMap ? That's meaning, if I have in the Sys class map such as: [code=java]protected Map <Constructors,RaceTeam>raceTeam=new HashMap<Constructors,RaceTeam>();[/code] and in the RaceTeam class I have this variables: [code=java] protected Constructors name; protected int totalScore; …

Member Avatar for titosd
0
88
Member Avatar for kakakon

Hello, I have a Tree structure with custom TreeNode nodes. The structure of TreeNode is: private int level; private String label = null; private String data = null; private TreeNode parent = null; private Vector <TreeNode> children = null; I should find each unique path from root to all leaves …

Member Avatar for kakakon
0
163
Member Avatar for chaines51

I have a class (String) that I want to be able to implicitly convert to a char. How would I go about doing this? I know to do it the other way around, I just add a constructor that just takes a char as a parameter, but to convert from …

Member Avatar for chaines51
0
173
Member Avatar for PinoyDev

Hi good day.! Im so confused why my code to get the total records in a certain table in sql server returns false. Im already connected to sql server and set-up a table named "loanlist".This table contains 10 records. But when i want to get the recordcount, it will returned …

Member Avatar for PinoyDev
0
212
Member Avatar for anshusharma

hello everybody i am newbie to jsp. working on some project and struck into some problem. my poject is about web rendering . i am creating a buffer image and storing that in to some file .when i am trying to open this file on browser using jsp,it is not …

Member Avatar for anshusharma
0
108
Member Avatar for furqan219

Hi to all I have designed a entry page which is used to INSERT Data in a Daatabse table. I use meta fresh tag time =60seconds Now I want to show that in another page with 2 control buttons ACCEPT and REJECT. Problems: 1. I need to show only one …

Member Avatar for furqan219
0
261
Member Avatar for -Xlayer-

The basic set-up is: [CODE=python] class A(): def __init__(self): self.var = 1 @staticmethod def do_stuff_with_var(self): # A method which uses self.var ... class B(A): def __init__(self): A.__init__(self) b1 = B() b2 = B() list_of_B_instances = [b1, b2] for instance in list_of_B_instances: instance.do_stuff_with_var(instance) [/CODE] However the last line of code raises …

Member Avatar for -Xlayer-
0
292
Member Avatar for daniel88

Hi guys, I will keep this post short in order that I first confirm that I am in the right place. Basically, I want to begin a personal project to build a GUI program to play the card game 500. I have completed one year of university programming with a …

Member Avatar for daniel88
0
120
Member Avatar for clueless123

hi people, i am currently doing database C# using visual C sharp express and i am really new towards database programming. I actually taken my database from mc access using oledbconnection. One of the column in my database contain many words seperated by a comma in each particular row. I …

Member Avatar for clueless123
0
129
Member Avatar for juser11

Am having problem calling a simple stored proc to insert data from a java program. The insert statement works fine when called directly with prepare statement. But when I use call it through a strored proc I get an error. jar file is ojdbc5.jar. - oracle10g. Then i tried another …

Member Avatar for kvprajapati
0
798
Member Avatar for george_cpp

Hi All, Does anyone know which file manipulation library is faster between c's FILE and c++'s fstream? I would suppose that c++'s fstream would be the faster but I just wanted to see some expert advice/opinion on this. I googled the internet without finding anything concrete. If there is any …

Member Avatar for monkey_king
0
5K
Member Avatar for julio gomez

Hi, I am testing a PHP web site offline using XAMPP server application. The website runs great, but the only problem is that the .css is not running. The odd thing is that if I am online and I test the website locally the .css file works, but if I …

Member Avatar for julio gomez
0
70

The End.