64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for BleepyE

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

Member Avatar for BleepyE
0
160
Member Avatar for xuexue

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] …

Member Avatar for itisnot_me
0
117
Member Avatar for gutchi

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 …

Member Avatar for d5e5
0
251
Member Avatar for daudiam

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 …

Member Avatar for daudiam
0
205
Member Avatar for jamesl22

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 …

Member Avatar for Unhnd_Exception
0
169
Member Avatar for R3ap3R

''' 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 …

Member Avatar for richieking
0
912
Member Avatar for a1a4a

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 …

Member Avatar for Unhnd_Exception
0
164
Member Avatar for Waffles007

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` …

Member Avatar for Waffles007
1
209
Member Avatar for Diamonddrake

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 …

Member Avatar for Diamonddrake
0
181
Member Avatar for Acute

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 …

Member Avatar for Acute
-1
1K
Member Avatar for benny2010

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 …

Member Avatar for benny2010
0
165
Member Avatar for jlivvers

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,

Member Avatar for Mitja Bonca
0
156
Member Avatar for rinkarto

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

Member Avatar for rinkarto
0
102
Member Avatar for novice20

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=' ') …

Member Avatar for richieking
0
266
Member Avatar for AdriftUniform

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 …

Member Avatar for itisnot_me
0
6K
Member Avatar for pakunoda

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 …

Member Avatar for pakunoda
0
256
Member Avatar for Naveed_786

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

Member Avatar for AndreRet
0
178
Member Avatar for redflame777

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 …

Member Avatar for javaAddict
0
329
Member Avatar for INI

Good Day All, Please anyone tell me how to open an adobe PDF file in VB6? Thank you all very much in advance. Ini

Member Avatar for satheshjsk
0
141
Member Avatar for xuexue

hi guys, could you help me? how could i create a dropdown button automatically once a value is inputted in the textbox.. thanks thanks..

Member Avatar for Shanti C
0
102
Member Avatar for softswing

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(); } …

Member Avatar for softswing
0
2K
Member Avatar for WildBamaBoy

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) …

Member Avatar for WildBamaBoy
0
414
Member Avatar for arsala khan
Member Avatar for SoulReaper1680

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 …

Member Avatar for SoulReaper1680
0
162
Member Avatar for nosehat

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 …

Member Avatar for nosehat
0
166
Member Avatar for OrangeGrover

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 …

Member Avatar for OrangeGrover
0
320
Member Avatar for vbx_wx

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]

Member Avatar for vbx_wx
0
105
Member Avatar for mightysnake

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 …

Member Avatar for mightysnake
0
176
Member Avatar for IrshadIkhlas

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

Member Avatar for Unhnd_Exception
0
536
Member Avatar for oredigger

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 …

Member Avatar for oredigger
0
322
Member Avatar for BleepyE

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 …

Member Avatar for BleepyE
0
117
Member Avatar for BleepyE

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 …

Member Avatar for BleepyE
0
112
Member Avatar for BleepyE

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 …

Member Avatar for jlego
0
124
Member Avatar for nxt200

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 …

Member Avatar for Narue
0
183
Member Avatar for vedro-compota

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 ))

Member Avatar for vedro-compota
0
248
Member Avatar for hiddepolen

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 …

Member Avatar for hiddepolen
0
1K
Member Avatar for changeco

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 …

Member Avatar for changeco
0
114
Member Avatar for RenanLazarotto

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 …

Member Avatar for jlego
0
270
Member Avatar for bkruep

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 …

Member Avatar for Unhnd_Exception
0
984
Member Avatar for vedro-compota

Hi guys )) Please tell me - how to check that a variable is initialized ? Thanks in advance )

Member Avatar for Farhad.idrees
0
180
Member Avatar for vedro-compota

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)

Member Avatar for asaenz
0
1K
Member Avatar for vedro-compota

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, …

Member Avatar for vedro-compota
-1
112
Member Avatar for mece

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 …

Member Avatar for mece
0
2K
Member Avatar for rotexhawk

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 …

Member Avatar for rotexhawk
0
360
Member Avatar for Drako12

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 …

Member Avatar for Airshow
0
184
Member Avatar for Drako12

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 …

Member Avatar for Drako12
0
174
Member Avatar for jemz

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 …

Member Avatar for Akill10
0
154
Member Avatar for cristi08

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 …

Member Avatar for cristi08
0
175
Member Avatar for prem2

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 ============= …

Member Avatar for prem2
0
689
Member Avatar for vinithktp

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 = "&nbsp;"; String convStr = newStr.replaceAll("'",rpcStr); [/CODE] Thanks in advance, Vinith

Member Avatar for ~s.o.s~
0
108

The End.