64,152 Solved Topics
Remove Filter ![]() | |
i have a problem regarding timer in the listbox. it suppose the time and date have to appear once only but it appear a non stop in listbox when run. here is the code: [CODE] Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick ListBox1.Items.Add(TimeString) ListBox1.Items.Add(DateString) End … | |
So, I found a snipped of code that did what I was looking for but I tried adding upon it to fit my need a little more. What I am trying to do is input an integer and return an 8 bit binary string to a list. My first problem … | |
I have prob. with my printer my printer is Mini Dot Impact Matrix Printer. model AB 300 Kc. how to setting paper for this printer? | |
Hi i am developing a C# application which uses sdf database... the problem is in inserting data to the database.. i can retrieve data from it but can not insert value to it..... I tried many ways of inserting values to the database but not successful... can any one help … | |
[CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Data.Sql; using System.Data.SqlClient; using System.Configuration; using System.Linq; using System.Text; using System.Windows.Forms; namespace Eventmanagement { public partial class Registration : Form { SqlConnection aConnection; string firstname= string.Empty; string lastname= string.Empty; int aid; string date = DateTime.Now.ToShortDateString(); SqlDataAdapter da = new … | |
Hi All.. I want to get selected item on listview. Does any one know how to solve this??? I'm using vb.net 2003 | |
Hi. I don't know where the problem is. The next codes is working on Google Chome but not in IE. I haven't tested yet on Firefox. function.js [CODE]function getSheetCount() { var xmlhttp; if (window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { var … | |
In my code i have got when player touches point,it registers collision and prints out score in the console, the problem is that for some reason instead of just printing one score-point per point (There is 10 points in the array) it continues to add score for as long as … | |
Hello, I am trying to create a update section of a game but running into a problem of JFrames. What I want to do is have a single JFrame that will have the update script, then after the update it will start a jar file in the JFrame (With the … | |
I am trying to delete a cookie by reseting it but it wont delete. What am i doing wrong [CODE]#!/usr/bin/python import cgi import Cookie import os def cookie_expiry_date(numdays): from datetime import date, timedelta new = date.today() + timedelta(days = numdays) return new.strftime("%a, %d-%b-%Y 23:59:59 GMT") print 'Set-Cookie: UserID=0; expires= '+cookie_expiry_date(-100); … | |
I would like to be able to create a script that displays whether or not a store is open when the user looks at the page. It would be simple if some didn't close for an hour during the day. I could set it up: MondayOpen 800 MondayClosed 1600 and … | |
I am looking for step by step details of how to deploy django websites in apache2 server with one example. I am using ubuntu operating system Please give some link or give the details. | |
Hey; I'm trying to change the mode of a file in Linux system. I know I must use chmod(const char* path, mode_t mode) but I don't really know how to handle the mode. How can I manipulate mode_t variable to apply my own mode? | |
i am not able to understand AJAX right from the beginning please help me to have some idea on AJAX | |
[CODE] <?php $first="rahul"; $second="shiva"; for($i=0;$i<strlen($first);$i++) { for($j=0;$j<strlen($second);$j++) { if($first[$i]==$second[$j]) { $first= "".substr($first,0,$i).substr($first,$i+1,strlen($first)); $second= "".substr($second,0,$j).substr($second,$j+1,strlen($second)); $i--; $j--; } } } $len= Strlen($first) + strlen($second); $f="friends"; $duplen=1; for($i=0;(strlen($f)!=1);) { if($len!=$duplen) { if($i==(strlen($f))) { $i=0; } else { $i++; } $duplen++; } else { $f=substr($f,0,$i).substr($f,$i+1,strlen($f)-1); } } ?> [/CODE] i am not finding … ![]() | |
![]() | The code below is what I have done up so far. I'm currently trying to complete one of the 4 classes I have, so the codes are incomplete and made to work at it's current stage. Q1. I need to have 3 different sorting criteria: 1.Sort by X (asc/desc) 2.Sort … |
I have been thinking of making a graphing calculator for practice. However, I do not know how to assign to a variable an expression. What I exactly mean is: let's say x is a variable, and y a function of x. I can just define the function inside the code, … | |
just wondering if there was any way to disable some values in the combobox or at least grey them out. i populate the combo box from the database: rs.MoveLast With Me.Combo1 .Clear Do .AddItem rs.Fields("CustomerFirstName") rs.MoveNext Loop Until rs.EOF End With once one value has been selected, is there a … | |
Hi, Does anyone know on how to convert vb.net to excel. I am new in this company and they are using Microsoft SQL Server Management Studio for their database. FYI, they are using stored procedure as well. Thank you | |
I am passing value to AJAX function, but always shows undefined.. It works fine two days ago, but not today.. Checkbox <input type="checkbox" onclick="[B]disablebatch()[/B]; selectinactivecourse(this.checked); " id="inactive_check" name="inactive_check" <?php if(isset($_POST['inactive_check'])) echo "checked";?>> Combobox <select id="course" name="course" style="width:145px" onchange="selectBatch1(this.value, document.myform.inactive_batch.value);"> // [U]Where I am passing Checkbox's value[/U] <select id="course" name="course" style="width:145px" … | |
Hey guys, I just need a bit of help figuring out what the best way to go about the following using PHP/MySQL: It's basically a registration component So I have a button, let's call it "add_to_list" and I need this button to control a couple of things. When a user … | |
![]() | Line2D Points is made up of Point2D x and y Line2D.h [code] #ifndef LINE2D__H #define LINE2D__H #include <iostream> #include <fstream> #include <string.h> #include <ostream> #include <sstream> #include <cstdio> #include <vector> #include <set> #include <cstdlib> #include <ctype.h> #include "Point2D.h" using namespace std; class Line2D { friend ostream& operator<<(ostream&, const Line2D&); private: … ![]() |
Hy everyone...I would like to make a thing like the function "like" in php but in C#...It is something already implemented?I've searched on the internet and all i've founded was about regex... I'w waiting for answers..Thnx | |
i try to change this scrip into jsp but i stuck at switch statement - switch ($_GET['action'].. Please someone help me.. (T_T) [B]menu.php[/B] [ICODE]<li><a href="index.php?action=home">Home</a></a></li> <li><a href="index.php?action=aboutus">About Us</a></a></li>[/ICODE] [B]index.php[/B] [ICODE]<td width="20%" valign="top"> <?php include ('menu.php'); ?> </td> <td width="85%" valign="top"> <?php switch ($_GET['action']){ case 'aboutus': include 'aboutus.php'; break; case 'home': … | |
I wrote this script for my classmates where we shoot at each other, but after it compiles it says that there was an error and exits out. heres my script, if there is anything in there that needs to be fixed please help me. [CODE]#include <allegro.h> #include <process.h> #include <stdio.h> … | |
So I have this assignment to create a dynamic stack with template and I've got it nailed pretty much. My question, though, is: I tried to implement "stack2" originally with data type as string. It would not work. The compiler threw all kinds of errors. Could somebody tell me what's … | |
ihave a script for a multifile uoload my question is how can i create it so that i can upload only jpg files [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title>multiple file upload</title> </head> <body> <form action="" method="post" enctype="multipart/form-data"> <input name="files[]" … | |
Hi. I use DW cs4 for pagination in order to let users page through a record set. It always worked until I use a $variable in a SELECT statement. If I hard code something, it works, variables don't. Any solutions to this? | |
I literally hate to ask this question but I am having trouble with Qt 4 basically all I am trying to do is clear the textEdit area with clear() but I am not sure of what to do. In C++ I would just [CODE]textEdit->clear();[/CODE] and it would do so. I … | |
how can i take only the letters that after the dot (.) in the word? if i have the word: "Yes.No" i want that my string a will be equal to "No", but that should work in every word, not just in Yes.No | |
Hi! I have two frames (frameset, let's call it frame1 and frame2). Frame1 has links..., and frame2. When some link in frame1 is clicked, it must be changed content of the frame2. Here's example: [URL="http://www.dlib.indiana.edu/variations/scores/adg7955/index.html"]click[/URL]. How to do that? (I don't see any javascript code) Thanks a lot! | |
Im trying to merge the functions of two buttons In this script [CODE]<script language="JavaScript"> function setVisibility(id, visibility) { document.getElementById(id).style.display = visibility; } </script> <input type=button name=type value='Lock Up Geckos' onclick="setVisibility('geckos', 'none');";> <input type=button name=type value='Release Geckos' onclick="setVisibility('geckos', 'inline');";> <div id="geckos" style="position: relative;display: none;"> <div style="position: absolute; top: 0px; left: 0px; … | |
Hi again, With silly question... I read about generating random numbers random(10); but it gives numbers from 0 to 10 and i need for example from 10 to 100. I tried random([10..100]); but i can't compile this :/ Could somebody help me? | |
Hi guys! Can anyone provide an accurate code for me to do this please. I'm not having any luck finding particular codes on Google that work. | |
Hello, I'm working on a snake based game in pascal. I'm using graph window. But here is the problem: Yesterday i was doing great my project compiled and everything, today i turned on my computer, open my project and it wouldn't compile... I checked the code the was nothing strange … | |
I just bought and read Jim Waldo's "Java The Good Parts". (ISBN 978-0-596-80373-5) It is a very interesting book that gives you insight in what happens under the surface. This is not a book about learning how to program in Java. It is rather a book for those who have … | |
I wasn't sure if this should go in games development or here but it's java so I put it here. This is homework so please don't write my code for me. My assignment is to create a game. It has to have moving parts, keyboard controls, buttons, the works. I … | |
Can someone please show me the best way to achieve this with the least amount of lines? Im a recovering PHP coder, I have one solution. I was wondering if there was a quicker more pythony way to do this: I have in "results" [ICODE][('Basp1', 'Aen2'), ('Basp1', 'Ahy18'), ('Basp1', 'Ahy26'), … | |
Hey; I have an assignment. My assignment includes the following tasks to be implemented under Linux: – Display a list of all available files (with their types) in the working directory, – Display a list of only regular files in the working directory, – Display a list of only directories … | |
This worked in VC++ 6 but in Visual Studio 2010 assign needs a second parameter, in the context of this function would it be a better idea to use resize or reserve and why? [CODE] bool CN3ShapeExtra::Load(HANDLE hFile) { bool bSuccess = CN3Shape::Load(hFile); int iPC = m_Parts.size(); m_Rotations.clear(); if(iPC <= … | |
How do I call a batch file in jython? thanks!! | |
Hi I am developer in .NET but I need to access session object in client side and redirect the page to login. i am using the following code snippet but I am unable to achieve the target. [CODE]function CheckSession() { var session = '<%=Session["username"] != null%>'; //session = '<%=Session["username"]%>'; alert(session); … | |
I am having a bit of a problem building my app. This is what I'm doing. Perhaps someone may be able to point out where I'm going wrong. When ready to build I click on solution explorer, properties and open, build tag. Output path is bin\release\. Yet when I do … | |
Hello, i m using vb.net with MS Access database & oledbconnection in my project. now i want to mail my crystal report in pdf format to respected email-id, how can i do this????? i spent lot of time for searching some helpful bt didn't get | |
hello to all members... i have developed a simple application with php...now i am further looking for learning RIA developments....i searched for flex and silverlight... i want to know is there any requirement for silverlight to have IIS server or any to work with php..... In flex i found good … | |
I'm attempring to save the keys of mysql records in an array but get the Fatal Error: Can't use function return value in write context.. The code is: [code=php]for ($i = 0; $i < $tranrows; ++$i) { $tranrec = mysql_fetch_row($tranresult); $keyarray($i) = $tranrec[0]; }[/code] I've done all the mysql code … | |
Hi all, I'm busy writing a generic textfile reader class and I'm struggling to write the code to deal correctly with end-of-line (EOL) characters for Mac, Linux and Windows. I've done a fair bit of reading on the issue and I came up with the following function within my TextFileReader … | |
timer i have two labels in C# windows Application and i want make it visilbe for once. on form load : label1.visible = true; label2.visible.false; and on timer tick event: label1.visible.false; label2.visivle = true; now after it perform one tick it display another form. how to do it. in my … | |
Hi, I'm a beginner with Java and I need help with an assignment: Write a program that will help the Toronto Blue Jay's scouts decide which players they should draft next year. For each player the scouts have been watching, a record has been prepared showing the player's name, age, … | |
Hey everybody. All my Google searches for help led me here so I thought I'd post my actual problem directly. I'm in a 101 programming course and this is only our second Python assignment. What I need to do is use one-dimensional parallel arrays to allow input of four different … |
The End.