199,114 Archived Topics
Remove Filter ![]() | |
any operation with text area is not working,,,cant find bug... [CODE]import java.io.*; import javax.swing.JMenu; import java.io.FileWriter; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JFrame; import javax.swing.JTextArea; import javax.swing.JSeparator; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JScrollBar; //import javax.swing.JPopupMenu; import java.awt.Container; //import javax.swing.JFlowLayout; import javax.swing.JScrollPane; import java.awt.Color; import java.awt.Font; import java.awt.FlowLayout; import javax.swing.JFileChooser; import javax.swing.JColorChooser; … | |
Hi everyone, Coul you please help me to find the position between Star_poso and end_posi. I have two data Data 1: Num Posi 1 2 2 5 3 9 4 16 5 19 .. .. Data 2: Num Star_posi End_posi 1 1 10 2 15 18 3 26 30 .. … | |
please Help me out, i'm new in java and i want code for following program. write a program that takes a series of email addresses as a command-line argument and, after parsing/processing the input, display the addresses separately and in alphabetical order at the command window. For example if the … | |
Hi! I'm a newbie in this forum. I'm a novice C++ programmer and we are tasked to create a program with the following requirements: [QUOTE]Given the sequence of numbers [I][B]n a1 a2 a3 . . . an[/B][/I] a simple histogram should be printed to the computer screen. The number [B][I]n[/I][/B] … | |
Hello, I found this keyword written everywhere I read about classes, which is __construct. Is it a built-in method or keyword? What does it do? There's another one, which is __clone. What is it too? If they're not built-in, then why are they always preceded by 2 underscores? Thank you. | |
hi ! I want to develop an application in vb.net which can save any open Text Document , Notepad ,Ms-Word ,Ms-Excel etc , The main theme is that my application simple send the SAVE command . i use SendKeys.send("^S") , SendKeys.send("^ + S"),SendKeys.send("{^+S}"),SendKeys.send("{^}+{S}"),SendKeys.send("{Ctrl}+ {S}") . but nothing happening.can Any one … | |
So I've decided to make some simple animations with python and I came to the issue of getting parts to rotate and move together. I decided to put parts together on a smaller canvas (canvas for the leg placed on the main canvas) but I can't get the canvas to … | |
[COLOR="red"]Hey guys[/COLOR] Icame across a weird situation wherein I had to use System.exit(1) in place of return, although the output in both cases should be same, the output im getting with return statement is giving me the wrong result while the one with System.exit(1) is giving me the correct result … | |
I am trying to write a program for searching strings(one at a time)in a text file. To start things off, I wrote this one. [CODE] #include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> int main() { FILE *txt_file; int chr;/*char read by fgetc*/ int word_match=0; const char* substring ="window";/*search word*/ … | |
Hi, I have a problem with a webrequest with the below code. If I try to request "http://www.google.com", it works fine. But when I try to reach this long URL below with this code, I receive an error: I wonder what this depends on and what could be done? [B]The … | |
Hi, I am doing a program using Doubly-Linked List. I am just studying C++, and still new in this field. My question are: - How can I make a method which[B] inserts a new node before the currently selected node, then makes the new node the current node[/B]? - How … | |
I need a way to concurrently create variables with a loop. Like... Instead of int my_var_1 = 1; int my_var_2 = 1; int my_var_3 = 1; Because the user may need thousands of variables, and I don't want there to be a limit. So I was wondering if there was … | |
Hello folks. I am stuck in a problem where I must pair objects of an array with unique partners. I have one array. I must pair each element to each other. Incorrect pairing algorithm would result with repetitions, and pairing with itself. e.g. [CODE]String[] codesArray = {"A", "B", "C"};[/CODE] For … | |
Hi guys, I have a problem on getting the selected radio button and save it in the database. Here is my code: [CODE] <div id="container"> <div id="question1" style="display: inline;"> <p>Question 1</p> <ul> <li><input type="radio" name="q1" value="1" id="ans1" />Answer 1</li> <li><input type="radio" name="q2" value="2" id="ans1"/>Answer 2</li> <li><input type="radio" name="q3" value="3" id="ans1"/>Answer … | |
Hi, I'm using Windows Vista, I have Apache HTTP server 2.2 running and am using PHP 5.2.17. I’m having a problem remotely running a php script on the web server. I run this script locally below… [CODE] <?php $file = fopen ("http://localhost/Epointment/testphp.php", "r"); if (!$file) { echo "<p>Unable to open … | |
Hi, can someone help me? I have two Jframes: Frame and MainFrame. My problem is they both show at the same time. If the login is correct MainFrame opens and Frame closes. [CODE]import javax.swing.*; public class Main extends JFrame{ public static void main(String args[]) { //Frame Window /Login Window Frame … | |
hi i am working in project that i have multiple frame so i used with my project static variables but i cannot use these array with my table in another frame too many exception is appered and my frame that cotain the table doesnot apper how can i solve this … | |
Hi guys, Please help! I want the column/cell of my Datagridview to accepts double(1500.50). I declare the cells as TextBoxCell. [CODE] 'In dgvw_EditingControlShowing event : AddHandler tb.KeyPress, New KeyPressEventHandler(AddressOf txtColDgvw_Keypress) 'Calling the Keypress of TextBoxCell[/CODE] [CODE] Private Sub txtColDgvw_Keypress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Try If not Char.IsNumber(e.KeyChar) … | |
shifting from vb.net to java gives me a hard time!.. I have a little background on java.. but not on Java + Database.. anyone can give me samples or tutorials? I started googling some but hell I can't understand it | |
i have one html page. I want display data from database. i have created one asp file that display data from database also i have created html file which contains all design of web page. when i combine this two . it displays table from database but images are not … | |
hi, please help in my project in visual studio 2008 and connecting it to mySQL, I'm going to create a simple identification system, can you please help me with the codes? (Form1 - Log-in, Log-out) Here's my project proposal, I need to identify an ID number and a password. Like … | |
Hey Guys im newby to Java! Help Needed! Please Help Needed! This is How it Goes! DAO.java [CODE] private BookRecordViews populateBookObject (ResultSet Results) throws ClassNotFoundException , SQLException { int BookID = Integer.parseInt(Results.getString("BookID")); String BookName = Results.getString("BookName"); String DateOfArrival = Results.getString("DateOfArrival"); String DateOfPublish = Results.getString("DateOfPublish"); String AuthorName = Results.getString("AuthorName"); int StudentID … | |
Hi, I am looking for some advice here.I have basic knowledge of C++ and regularly write programs in it.I haven't tried anything related to networking in it.I want to start now and I'm clueless about the possibilities.I am novice in knowledge of networks and people have recommended many books but … | |
Please tell me which server i should install to run the asp files or pages, give the link of the best sever for windows 7 and also tell me the setting of server waiting for your reply Regards Rizwan | |
Can anyone help me !!! i need to create a library system using java and i don't know where to start so can anyone suggest steps on how can i create a successful application . | |
can you help me with sorting array??how can i execute it??thanks!! | |
I'm currently making a program that list all the perfect numbers from 1-1000. and list also its factors. heres my code. [INLINECODE] public class perfect { public static void main(String[]args) { int sum=0; int x=0; for(int num=1;num<1000;num++) { for(int factor=1;factor<num;factor++){ x=num%factor; if(x==0) sum=sum+factor;} if(sum==num){ System.out.print(num); System.out.print("The factors are "); for(int … | |
[code] <%@Language=VBScript %> <!-- #include file = "connectOracle.asp" --> <%if trim(session("UserName"))<>"" then%> <% Response.Buffer = true SET con = server.CreateObject("adodb.connection") con.open "DSN=VTSDSN;UID=vtsplop;PWD=vts@123" set rs = server.CreateObject("adodb.recordset") set rsdest=server.CreateObject("adodb.recordset") rs.ActiveConnection = con Set ORACON = server.CreateObject("adodb.connection") ORACON.Open "Provider=MSDAORA.1;User ID=SAPVTS;password=VTSSAP;Data Source=prd;Persist Security Info=False" tdate = date() fdate = date()-1 VEHMOV=trim(request("VEHMOV")) trans_code = … | |
hi all, I need to implement functionality like how can i retrieve registered user's entered username and password for any website? and after that i want to save userid and password in some text,word file. Any code/link is there then help me ASAP. help would be appreciated. Thanks, KK | |
Hi All, I am trying to create a image text detection program. The program is up and running, and I can distinguish between text and non-text using laplacian based method with an acceptable accuracy. However, the problem is that I need the program run with the speed > 100 (images/s), … | |
hey guys! ive spent another 3 hours trying to find out what is wrong with my code! i tried many ideas that came into my head but they didnt work :( here is my code.. ive narrowed my problem and shown where it could possibly be by enlarging and making … | |
Hey guys! i was wondering how some games and software have image files that are accessed from .dat and/or .bin files! can i do this for a C++ program? i tried googling but had no hope so i posted here.. i would also like to know how i can make … | |
Well i am using asp and VB.Net to make it to where people can check in and check out. I have gridview which has where it shows the data from my sql server that i put dummy data in. When i load my website the data shows up. I do … | |
So I've created an event driven architecture for my current program. I want each new event to have a number generated automatically with a function so I don't have to worry about overlap of id's and referencing is easy. [CODE] class Event { protected: static int get_event_id(); public: virtual int … | |
I want to learn basic web query vc++.I googled around and found that libcurl was the library needed.I have downloaded the necessary files from curl.haxx.se .I do not know how to use these files and make the actual header file and then actually include it in my project. Any help … | |
Is it possible to control the output font that is pasted from the clipboard? The text copied into the clipboard is from a string variable and does not have any font information tied to it. Thanks | |
hello frndz, i was trying to implement a client server communication example.her's the code [CODE] import java.net.*; class client_server_communication { private static int client_port=4444; private static int server_port=4476; private static int buffer_size=1024; private static byte[] buffer=new byte[buffer_size]; private static DatagramSocket ds; private static byte buff[]=new byte[buffer_size]; public static void server() … | |
Hi I am using this code to clear the contents of my panel [CODE] For Each c As Control In PanelEdit.Controls If TypeOf c Is RadTextBox Then DirectCast(c, TextBox).Text = String.Empty End If If TypeOf c Is MaskedEditBox Then DirectCast(c, MaskedEditBox).Text = String.Empty End If If TypeOf c Is ListBox … | |
I'm modifying a code which can save an image into the database. I've changed everything that i need to change but when i click the save button the error says that i have an error in the [B]INSERT INTO statement[/B]. Here is the code: [CODE] Dim conn As New OleDbConnection(cn) … | |
Hi how can expire an exe for example after using ane day it will expire | |
Iam Coding A Small Portal And Need Help This Is My Code [CODE]echo "<div class='posterdecoration'><img src='$row[scr1]' width='640' alt='$row[name]' /></div>"; echo "<div class='posterdecoration'><img src='$row[scr2]' width='640' alt='$row[name]' /></div>"; [/CODE] When I Put Scr1 + Scr2 From Site Panel It Show On The Site I Need To Use <If Condition> On The Scr2 … | |
So I made my form transparent by changing the transparent key to dimgray, change background color to dimgray. I also changed the picture box's BG color to dimgray everything was fine except that the drop shadow on the picture I did was just a grey blob. [URL="http://gyazo.com/dbce4659f8a9b6d77773f344068b6db0"]Here[/URL] is a screen … | |
Hi all! I want to start making apps for android phones. The problem is that I have installed Android SDK, JDK 7 and eclipse, but failed to complete the install of the ADT plugin. I have install the plugin, but I can't configure it. the guide on android developer saids: … | |
Hello, I just downloaded the [url=https://mattmccutchen.net/bigint/]big integer library[/url], and I want to use it in my prime number checking program. I downloaded the zip file and got a bunch of .cc and .hh files. I need to know what to do with the files, where I should put them, and … | |
I am new to VB.net. I want to start with small project on VB.net. User will we working on client system. Please help me how to start. | |
hey guys! i was just wondering all these large games make use of footholds to make a character stay is there any way in C++ to make simple footholds? im making a stick platform game and am tired of using collision checking to make it work all the time for … | |
Hi everyone, I was wondering if anyone could provide a bit of help, I need to store an integer value that is 20 bytes in length - I know theres an int32_t and int16_t, but I can't seem to get an integer stored that is only 20 bytes!! I've also … | |
I have the following connection string in a Excel VBA project: oCon.ConnectionString = "Driver={SQL Native Client};Server=SQL;Database=D1; Trusted_Connection=yes;" On my laptop this works perfectly. But when I try it out on another computer I get an error: I get this error when oCon.Open on debugging: Run-time error '-2147467259(80004005)': Automation error Unspecified … | |
I drew an image in a picturebox with the image height as picturebox height and image width as picturebox width. The image is placed somewhere on the center of the picturebox. My intention is to scale the image to fit to the picturebox. How do I do this please? Thanks | |
Hi, i am using the youtube api on my site to subscribe users to my youtube channel. currently, they would have to clink on a link to get authenticated and grant access to our application. from our youtube channel, there is a link that take them back to our page, … |
The End.