64,152 Solved Topics
Remove Filter ![]() | |
If I create a save a text file, how do I get my application to save it into the end users directory? Ive current got this which saves into my user area. [CODE]file = My.Computer.FileSystem.OpenTextFileWriter("C:\Users\#####\Fruit\Fruit.txt", False)[/CODE] Thanks | |
hi guys..is there a problem with my code? because, i am trying to add a row dynamically depending on the user requirements, what the code does is that, whenever the image is clicked, only the textbox appears, what should happen is that the textbox should be inside the row.. [CODE] … | |
Hi Everyone! I have here a queue: [CODE]my $qTool = Thread::Queue->new();[/CODE] I want to show all the elements that the queue contains. [CODE]my $qItem = $qTool->peek();[/CODE] The code above returns only either the head of the queue or an element at a specified index. Is there a way for me … | |
Consider the following code : [CODE]class R2<E> { E a; E get() { return a; } void set(E a) { this.a=a; } public static void main(String aa[]) { R2 nn1=new R2<Integer>(); nn1.set("hello"); (1) //String r=nn1.get(); //Integer t=nn1.get(); } }[/CODE] In line (1), an unchecked warning is given as the compiler … | |
Hi, In vb.net, how would you search a folder and get it to make a list of the files in the directory and what sub-folders the files are in are in? Then, put the results in a multiline textbox. The list would look something like if we were searching in … ![]() | |
![]() | ''' Hi there, I am totally new to this site as well as Python. Luckily Python is a not too hard programming language to start with. I am trying to create a Caesar Cipher with ROT13 program that encodes user text ('a' - 'z' and 'A' - 'Z') to 13 … |
Hello all I am on a windows application form where people can log in and add status ... and it's all online via sql database. What i am looking for is a sql query that Insert into the table the current time,so i can print on the application the time … ![]() | |
I have an idea for a friends list based off a user's account info. 'guid' is the character id number 'account' is the player's account number 'friend' is the player he is friends with 'online' 1 = online; 0= offline Here's what the layout is like: Friends List [CODE] `character_social` … | |
I have hacked up this gorgeous files system tree view that looks like the windows 7 explorer sidebar. Its starts as one control, and that control lives in another control that makes up an "segment" whom are created and added to a host that handles scrolling ect. I have the … | |
Hi everyone, i need your help) i have some elements with same id, say: <div id="myid">Data1</div> <div id="myid">Data2</div> I want to get innerHtml when one of them is clicked, how can i determine which one exactly was clicked? JQuery: $("#myid").click(function(){ //how to get the .html and other properties of clicked … | |
Dear all, i am trying to get my sprite to be dragged around the screen by clicking the mouse, i can get it to attach to the mouse but cannot get it to unattach itself, i coded the if not mouse click then set mouse attach to false but it … | |
Hi, is there an accepted emthod to print a selected row in a datagridview? I've done some reading and gotten as far as printing a page via the printform but I wondered can you drill down into certain rows or certain datagridviews? thanks, | |
I need help on dynamic forms with php. With a select action "Employees" checked, I want to show information of employees from a database in a text box. Thanks | |
hi, I just came accross the csv module to deals with csv files in python. suppose my csv file has two rows: 1,2,3,4 5,6,7,8 and i want to access each item at a time, i.e., 1 followed by 2 and so on....what can be done? [B]import csv reader= csv.reader(open('filename.csv','r'),delimiter=' ') … | |
Hi there. I am creating a social networking website and I am having an issue when posting messages on a users profile. The message posts correctly and displays correctly too but when I refresh the page a duplicate of the last message is submitted. I do not want to prevent … | |
can you please help me guys.. i just wanted to start practicing phpandmysql and my only problem is the apache,php, and mysql 1. i tried to install the apache 2.2.17 to my computer and the installation was successful. i tried to browse the localhost to my web browser and it … | |
How can i count the no of records fetched in datagrid from admission table and how to show these no of records in a label i.e Total No of records = 20 Please help | |
Hi everyone, I am new to Java. I am taking a Java programming course and I am having some difficulty. My professor said I should seperate my class that stores employee information and calculates pay from the class that contains my main method. How do I do that? I understand … | |
Good Day All, Please anyone tell me how to open an adobe PDF file in VB6? Thank you all very much in advance. Ini | |
hi guys, could you help me? how could i create a dropdown button automatically once a value is inputted in the textbox.. thanks thanks.. | |
Hai friends, please tell me how to write Junit for the below method, public static FileInputStream readAsFileInputStream(String fileName,String fileLocation) throws IOException { FileInputStream fileinputstream = null; File file = null; try { file = new File(fileLocation,fileName); fileinputstream = new FileInputStream(file); } catch(IOException ex) { ex.printStackTrace(); } finally { fileinputstream.close(); } … | |
This program will kill the process a user specifies and start a BackgroundWorker that constantly analyzes a list of running processes and kills it again if it starts. But it will not cancel even when I tell it to. This is the BackgroundWorker's code. [CODE]private void KeepProcessKilled_DoWork(object sender, DoWorkEventArgs e) … | |
Hey, I was trying to make a program which displays two chars A and B on the screen. Using the WASD keys, it lets you move the A char around and using the arrow keys it lets you move the B char around. I wrote the following: [CODE]Module Module1 Dim … | |
Hi All-- I am working with zip archives, using the [URL="http://docs.python.org/library/zipfile.html"]zipfile module[/URL] to extract all the files with certain file extensions from each zip. In these zip archives the files I'm after all have their own path information, but I would like to extract the files I want into one … | |
Hello, first off thanks for reading. So my problem occurs when I try to copy an element from one vector into a second vector. The error that I get says that the vector subscript is out of range when I try to push_back that element. I only get an error … | |
Anyone know why i get this error in eclipse when i compile any program: [code] error: to generate dependencies you must specify either -M or -MM [/code] | |
Read a single character from ‘A’ through ‘Z’ and produces output in the shape of a pyramid composed of the letters up to and including the letter that is input. The top letter in the pyramid should be ‘A’, and on each level, the next letter in the alphabet should … | |
Hi, Can anybody help me in getting the time differnece between 2 dates in time format HH:MM as example need time differnec between 23Dec 20:35 and 24DEC 3:10. I am able to get the difference for same date but failed to calculate for 2 dates. Thanks ![]() | |
I've been reading about ApplicationCommands (specifically Paste) [URL="http://msdn.microsoft.com/en-us/library/system.windows.input.applicationcommands.paste.aspx"]here[/URL] and I have a question regarding the following paragraph: [QUOTE]A MenuItem is created and it's Command property is set to the Paste command. The CommandTarget is not explicitly set to the TextBox object. [B]When the CommandTarget is not set, the target for … | |
If have this code which writes the following into a text file. [CODE]sWriter.WriteLine("a" & " " & A.Text)[/CODE] This is the result [QUOTE]a 45[/QUOTE] - Id like the text in A.text to be in speech marks, so the final result is something like his [QUOTE]a "45"[/QUOTE] But I cant seem … | |
I have a text file like this; Bananas=60 Tomatoes=34 Rasberries=102 Apples=23 If I have a form with textboxes or numericalupdowns is there anyway I could change the number of fruit and veg in the text file? Could it be possible to somehow open the textfile into the form then, edit … | |
Hey need some quick help, some strange error I havent seen before even though ive been using the code for some time. [CODE]Imports System.IO Public Class Form1 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Close() End Sub Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e … | |
Hello DaniWeb Software Developers :D I have a problem which exceed my programing capabilities and i need your help! Problem: I am somewhat new to c++ and i have been making some useful console applications in windows GUI visual Express. I thought i would give building in Linux a try … | |
Greetings to you friends)) Advice please - how to get integer value from the console? I did so, but nothing good can come out - [CODE] short int n = 0; n = (int)getchar();[/CODE] thank you in advance for your reply )) | |
Hi all! I have a very strange problem. I am making a Win32 program, using Visual C++ professional 2010. Everything works exactly as it should, until I want a MessageBox to appear. It appears, but I cant click any buttons. I also can't access my main API, so I can't … | |
I have the following code and need to not display decimals... I'm unsure where to add a round() function... [code]<?php $nmdwiid = $row_eLearningSuite['nmdwiid']; $sql = "SELECT COUNT(*) AS total FROM eLearningSuiteProduct"; $query = mysql_query($sql); $recordset = mysql_fetch_assoc($query); $count = $recordset["total"]; echo $nmdwiid/$count * 100; ?> [/code] Any help would be … | |
Hey guys! I need to use quotes inside a string variable... but I don't know how. If I simply put double quotes at the start and at the end, the program interprets it as a closed interval, like if every quote is a string. What can I do? I've searched … | |
I am starting a butterfly program and having an issue and really just barely have it started and would like to get some help\feedback on how to do this. The following is the instructions and I will make a second post on what code I have so far... The butterfly … ![]() | |
Hi guys )) Please tell me - how to check that a variable is initialized ? Thanks in advance ) | |
Good day) Advice please - is it permissible to use this syntax - [CODE] insert into EXAM_MARKS ( EXAM_DATE) values (str_to_date('26-05-2000', '%d,%m,%y')); [/CODE] This line does not work. I can not understand on what went wrong. Thank you for your answers) | |
Hi guys ! Please help make a sql-query - There are three tables - [CODE] table STUDENT ( STUDENT_ID NUMERIC not null, SURNAME VARCHAR(60), ); table SUBJECT ( SUBJ_ID NUMERIC not null, SUBJ_NAME VARCHAR(100), ); table EXAM_MARKS ( EXAM_ID NUMERIC not null, STUDENT_ID NUMERIC not null, SUBJ_ID NUMERIC not null, … | |
I wrote a GUI tool that will display stats and refresh the stats when a refresh button is pushed. Now I would like to add a feature for the stats to auto refresh every five minutes. Is it possible to have the UI updated without binding an event handler? Thanks … | |
Alright.. Seems I wasn't able to fully explain my problem.. Below is the full error printout. I tried debugging it and I still don't know why guessed[index] = (letter) gives me an error. I don't want to use the append method because it will put the new letter at the … | |
i have a php variable that holds a date and i want to pass to a javascript function, but what happens is that i get a junk value instead, what should i do? [code] $data = $_POST['datep']; echo "<script language=javascript>fnClickAddRow($nplaca,$defeito,$posicao,$data);/script>"; [/code] [code]<script type="text/javascript"> function fnClickAddRow(n__placa,defeito2,posicao2,dataf) { var lext = "<?php … | |
i have a php variable that holds a date and i want to pass to a javascript function, but what happens is that i get a junk value instead, what should i do? [code] $data = $_POST['datep']; echo "<script language=javascript>fnClickAddRow($nplaca,$defeito,$posicao,$data);/script>"; [/code] [code]<script type="text/javascript"> function fnClickAddRow(n__placa,defeito2,posicao2,dataf) { var lext = "<?php … | |
hello can you help me please how can input text with space.. sample: Enter your full name: jemz gimz Enter your company name: company one jemz gimz company one [CODE] import java.util.*; public class SampleNexLine { public static void main(String []args) { Scanner console = new Scanner(System.in); String name,cname; System.out.print("Eter … | |
Hello I have a form for a shoping cart that input even the value 0. How can i program php to not insert into table the products [CODE]$row['Denumire_produs'][/CODE] where the quantyti=$cantitate is 0 Here is the form input[CODE]$query="select*from produse"; ?> <form action="cumpar.php" method="post"> <td><input type="text" name="cantitate[]" value=" " size="1"/></td></tr> <input … | |
Dear all, I want to connect the my mysql database in the below java program.But i could not able to connect the myslq database. i have downloaded the below jar file and put the jar file in the below path. Jar File: ========= mysql-connector-java-5.0.8-bin.jar Path: ==== /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/lib mysql version ============= … | |
Hi, I have a question regarding Memory Leak. The below mentioned JSP code can generate any Out of memory exception [CODE] String str = tempStrView.getSTR(); String newStr = str+"'"; String rpcStr = " "; String convStr = newStr.replaceAll("'",rpcStr); [/CODE] Thanks in advance, Vinith |
The End.