199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for crownedzero

I'm just curious about the use of frames/panels etc. What's are your general practices and why? Single main JFrame with multiple internal then toggling visibility of panels within? Just starting with swing and rather curious how other people implement them.

Member Avatar for jalpesh_007
0
138
Member Avatar for Xmod

How can I get this [code](http://www.mediafire.com/?o3kg3nii2sfoigh) to work? I am using xcode 4.5. Thanks

Member Avatar for vijayan121
0
479
Member Avatar for jalpesh_007

Dear all, I have following code and i want to write elements of array in single string(merge with ,) , in between all the values. like a[0] = "hi" a[1] = "hello" a[2] = 1 a[0] = "get" a[1] = "post" a[2] = 2 a[3] = 45 then i want …

Member Avatar for jalpesh_007
0
304
Member Avatar for eawade

I am having the most annoying situation. Ok, here goes. I am using a javascript based sliding menu for a mobile app. The "slider" works just like Facebook mobile, where u can click the button to show the menu on the left and click it again to close the menu. …

0
140
Member Avatar for HLA91

Hi all I am a noob to C++ and I was getting some source code off the web and this is the second time it has happened, when I compile (Blood Shed Dev) I get a message in the compiler "permission denied" "Id returned 1 exit status" Can anybody help …

Member Avatar for graceville
0
3K
Member Avatar for James19142

Im having this weird runtime error whenever I attempt to copy a specific member of an array block. I get this from the output: ASSERT failure in QHash: "Iterating beyond end()", file tools/qhash.cpp, line 293 Invalid parameter passed to C runtime function. Invalid parameter passed to C runtime function. I …

Member Avatar for James19142
0
910
Member Avatar for crazydevelopervish

I have one form having One DataList In which i have two table one having Header Template and other having Item Template....... Code Of aspx page is as follows..... <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1"> <HeaderTemplate> <div> <table> <tr> <td style="width:245px; text-align:center;"> Image</td> <td style="width:450px;text-align:center;"> Item Description</td> <td style="width:260px;text-align:center;"> Price</td> <td style="width:322px;text-align:center;"> …

Member Avatar for crazydevelopervish
0
134
Member Avatar for swap002

Hello, I'm a complete noob when it comes to .Net. I'm working on my college project. In my application there's a combobox/drop-down list. My requirement is as soon as user starts typing inside it, i.e. when text_changed is triggered it should retrieve values starting from that letter from a column …

Member Avatar for john.knapp
0
262
Member Avatar for swathys

hi, i write a code uisng VB.net. i have design few checkbox and would like to write class function in class file. can anyone guide me how to create and call the function from the class to the page. i have create a class file as below Public Class clsKYC …

Member Avatar for john.knapp
0
492
Member Avatar for silvercats

1. Do virtual PCs have their own virtual processors that is a piece of a hardware? (I know that both ues the same physical processor, but how does a Guest os in a 32 bit virtual machine sees the processor as a 32 bit processor , eventhough it really uses …

Member Avatar for deceptikon
0
167
Member Avatar for LD Company

Hello programmers! I am making File Browser software and I want to display icons of my files in listview. Here is the code: ImageList1.Images.Clear() Dim di As New IO.DirectoryInfo(LocationA.Text) Dim aryFi As IO.FileInfo() = di.GetFiles("*") Dim fi As IO.FileInfo For Each fi In aryFi For Each files In System.IO.Directory.GetFiles(LocationA.Text) Dim …

Member Avatar for john.knapp
0
4K
Member Avatar for shhh

error connecting to databaseAccess denied for use 'root'@'localhost(using password:YES) using System; using System.Data; using System.Collections.Generic; using System.Linq; using System.Text; using MySql.Data.MySqlClient; using System.Windows.Forms; using DPUruNet; using System.Drawing.Imaging; using System.Drawing; namespace UareUBiometrics { class HelperFunctions { private static Fmd[] fmds; private static Fmd[] allDBFmds; public static Fmd[] GetAllFmds { get { …

Member Avatar for kyle.santelices.31
0
286
Member Avatar for DGULLIVER

Hi, I'm printing a VB.NET form using BitBlt API my code as follows: [CODE] ' create a printing component Private WithEvents pd As Printing.PrintDocument ' storage for form image Dim formImage As Bitmap ' create API prototype Private Declare Function BitBlt Lib "gdi32.dll" Alias _ "BitBlt" (ByVal hdcDest As IntPtr, …

Member Avatar for charuwaka
0
542
Member Avatar for TeaAnyOne

12347 10000 secretary James Harrison 12348 20000 secretary Jade Powell 12341 40000 consultant Adam Johnson Hi, lets just say that the text above is a text file. How would I go about searching and printing the rows with 'secretary' only? Or any other value? When the user is asked to …

Member Avatar for TeaAnyOne
0
180
Member Avatar for DarkMonarch

i kept reading on sql injections after answering a guy on the subject and end up on this page: http://php.net/manual/en/pdo.prepared-statements.php which i think is great for optimisation and i will probably apply on this portal im working on, but ... what do you guys think about this prebuild template like …

Member Avatar for diafol
0
123
Member Avatar for LogicWeb

Could someone please explain to me how to fix the callout issues where they do not hide again after the mouse hover is moved away from the icons on the home page? Thanks. This is part of the js code in the head section <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="http://jquery-ui.googlecode.com/svn/tags/latest/ui/jquery.effects.core.js"></script> <script src="http://jquery-ui.googlecode.com/svn/tags/latest/ui/jquery.effects.slide.js"></script> …

Member Avatar for AleMonteiro
0
198
Member Avatar for hwoarang69

i now the differece between seesion and cookies. but i am not sure when one to use. when people make website like dreamincode, myspace, linkedin, etc.. wht they use. right now on my site when user log in session get started but if user hit remember me than cookie get …

Member Avatar for diafol
0
188
Member Avatar for chophouse

I just moved to a new server and installed Python 3.3. On my old box i was using Python 3.2. Now my scripts that import pymysql won't work, saying the module doesn't exist. Wher do I download this from? I'm on Win Server 2008 R2 (on both boxes) Thanks

Member Avatar for chophouse
0
106
Member Avatar for slasel

Hi, Is it possible to embed something made with pygame, like some sort of animated display or bouncing ball... into a Tkinter made window, with tkinter buttons/frames etc... If yes, then may you please tell me how can i do that? Thanks

Member Avatar for vegaseat
0
235
Member Avatar for SeePlusPlus2

Hi, if we take for example 32bits: 1111 1000 0000 1000 0001 1111 1100 0000, how does it become (24bits) 1011 1110 0011 0110 1111 0110 after RLE is applied? Why/how does 1011 represent the 5 1's at the start of the 32bit number? I'm trying to understand the concept …

Member Avatar for SeePlusPlus2
0
183
Member Avatar for Khav

I want to add a new feature in my present image upload script and that is automatic compression of images just like TinyPng.Basically i want a code snippet that detect 24bit PNG file and convert it to 8bit png file with full support for transparency and that also strip any …

Member Avatar for diafol
0
1K
Member Avatar for shills300

hi guys, i was wondering if anyone knew how to make a color wheel in python using turtle. i'v searched all over the web to see examples but haven't had any luck. i am a beginner programmer and it's very confusing to say the least so any explanations would be …

Member Avatar for vegaseat
0
3K
Member Avatar for thompsonSensibl

Hi, I'm trying to reverse the ordering of number. I'm given an array of size.. say, 5. WITHIN a do-while loop, I must iterate from element 0 to 4. For example, if the element contains ["Apple", "Banana", "Cow", "Dog", "Egg"], the output of the do-while loop has to be: Apple …

Member Avatar for mrnutty
0
178
Member Avatar for slasel

can someone please help me I am facing a problem; I want to draw an image in the canvas depending on the value of the IntVar called position however I get an error; Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in __call__ return self.func(*args) …

Member Avatar for vegaseat
0
286
Member Avatar for ashsha

I have created a polygon (6 points). Lets call this one, outside polygon. inside the outside polygon I created smaller polygons. I want to flip all of it vertically. I know the points of the outside polygon and I have an ArrayList for the inner polygons. I was able to …

Member Avatar for Taywin
0
395
Member Avatar for voidyman

[CODE] #!opt/local/bin/perl5 use strict; use Spreadsheet::ParseExcel; use XLSX.pm; my $oExcel = new Spreadsheet::ParseExcel; die "You must provide a filename to $0 to be parsed as an Excel file" unless @ARGV; my $oBook = $oExcel->Parse($ARGV[0]); my($iR, $iC, $oWkS, $oWkC); print "FILE :", $oBook->{File} , "\n"; print "COUNT :", $oBook->{SheetCount} , "\n"; …

Member Avatar for 2teez
0
394
Member Avatar for PrincessLyka

#include <iostream> #include <cmath> #include <stdio.h> using namespace std; int main () { int n, x=0, ans; int b=0; do { x++; cout << "\nINPUT NUMBER: "; cin >> n; if(b<n) { b=n; } } while (x<=10); cout << "\n"; cout << "\nHIGHEST: " << b; system ("PAUSE"); return 0; …

Member Avatar for deceptikon
0
126
Member Avatar for apanimesh061

I sent a C++ code snippet from textarea to another page using php. Evenything got printed but the as the header file was <iostream>, it did not get printed. Any piece of text that is enclosed by <> is not printed. What should I do ? Please help!

Member Avatar for deceptikon
0
104
Member Avatar for tayyabatiq

Hi, I want to output [chess symbols](http://en.wikipedia.org/wiki/Chess_symbols_in_Unicode) from unicode to console in c++, please tell me how to do that. Im using Dev c++, windows8 and console. Im just a beginner so please keep it simple for me (also tell me the libraries to include please)

Member Avatar for tayyabatiq
0
4K
Member Avatar for bobys

Hello, I would like to know if there is any wway to change the Title of an input box( Left Upper Corner). Lets say we have the input box: x= input("blah blah blah") if we run that the title of the input box would be like "Python input" or something, …

Member Avatar for bobys
0
331
Member Avatar for FakeTales

I have a client , middleware and server . The concept is a client sends a number this passes through the middleware to the server. The server checks the number against the number generated on the server side , if the client guesses the number correctly a message is then …

0
101
Member Avatar for riahc3

Hello First off the server is running Windows 7 32bits. I have the following code: <?php $fp = fopen(getcwd()."/test.txt", "w"); fwrite($fp, "hello"); chmod(getcwd()."/test.txt", 0777); unlink(getcwd()."/test.txt"); fclose($fp); ?> It creates the file perfectly but afterwards I cannot delete it. Giving me this error: Warning: unlink(C:\test.txt) [function.unlink]: Permission denied in C:\writeanddel.php on …

Member Avatar for Ezzaral
0
1K
Member Avatar for rookanga

I have two forms with one listbox on each form. How can I show what I have in the listbox on form1 on form2. I have a button on form1 to go to form2 [CODE]Private Sub btnform2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnform2.Click Form2.Show() Dim sTemp As …

Member Avatar for imatepda2k
0
2K
Member Avatar for davy_yg

Hello, I wonder how to install GDChart in Windows XAMPP PHP ? Thanks.

Member Avatar for pritaeas
0
167
Member Avatar for dlgmu537

I have written a code in java for the following scenario. There is a class called Student and it has registration number and name as instance variables and student count as a class variable. Student class has two methods called display which is supposed to display the details of a …

Member Avatar for dlgmu537
0
196
Member Avatar for acerious

OK, my code is very long. But this one is a little tricky so just bare with me here guys. What my program does is generate a text file with random numbers, for eg: 123 1234 12345 123456 And the program takes in that file and puts the random data …

Member Avatar for acerious
0
313
Member Avatar for coder91

I have a page that allows a user to enter a reference then select the app that they want. The reference is stored as session and is used on other pages to show the user their recording against that reference. On this particular page (after they have chosen the app) …

Member Avatar for coder91
0
138
Member Avatar for DJ-DOO

Hi, I'm really hoping someone can help me. I've created a clocking system. The user clocks in,the clockin time is stored in the db, the user clocks out, the time is stored in the db. However, I want to store the difference, in other words the hours that would've been …

Member Avatar for pritaeas
0
308
Member Avatar for thammalatha

Hi, I did a program which is dialog based application,in that i add listbox dynamically by deriving a class form CListBox class.and the list box is created in OnInitDialog() method.but when i add the listbox to the dialog using DDX_Control function it is failed to assert the listbox,because 3rd parameter …

Member Avatar for thammalatha
0
314
Member Avatar for thammalatha

Hi, I inherit the class called ListBox form CListBox and by using this class object I create a listbox containing two items in the listbox.when ever i select the item from the listbox the generated message should be handled by the control window by using WM_CONTROL_REFLECT mesage in ListBox message …

Member Avatar for thammalatha
0
237
Member Avatar for serkan sendur

hi guys, it took me some time to find out how to export listview to excel, so i wanted to share it with you. i would like to post this thread as code snippet but in that section there is no attachment button that i can attach project to. i …

Member Avatar for erickaurazo
0
7K
Member Avatar for subtoneweb

Below you will find a game I written in my spare time from college. Any and all critique welcome. I plan to expand this to a console RPG later, and eventually GUI. All in C++. BTW, nice forums. //============================================================================ // Name : Monster Shot.cpp // Author : Dave T // …

Member Avatar for deceptikon
0
410
Member Avatar for rajeshswain

Hi Friends, I want to upload a image file to my mysql database. But before that i want to resize it. I have used the following code. But what happens is that the image is successfully resized but the quality is not retained. Please someone guide me with some help. …

Member Avatar for mukhtar1234
0
3K
Member Avatar for marek2121

I have a problem with serializing an Arraylist. This is my method to serialize Arraylist: public void serializeObj(){ ArrayList<Actor> novylist = new ArrayList<Actor>(); novylist.addAll(components); try { FileOutputStream fileOut = new FileOutputStream("zeditoru.ser"); ObjectOutputStream out = new ObjectOutputStream(fileOut); out.writeObject(novylist); out.close(); fileOut.close(); }catch(IOException i) { i.printStackTrace(); } } components is Arraylist with theese …

Member Avatar for subramanya.vl
0
767
Member Avatar for diya45

hi guyzzz in visual studio the form guest i added guest info i added it is added but not show in datagirdview and also not display in girdview but it is added in database SQL but not show in girdview plzzzzz any one tell me

Member Avatar for deceptikon
0
92
Member Avatar for kaizen202

I have skinned most controls in my winform application, except scrollbar in combobox. Any ideas?

Member Avatar for kaizen202
0
205
Member Avatar for shahai.ali

hi i was trying the following to invite the list of contacts from gmail. <html> <body> <?php if(isset($_POST['submit'])) { $email = 'https://mail.google.com/mail/feed/atom'; $sender = 'abc@gmail.com'; $send = mail($email, "Invitation", "Testing e-mail", "From: $sender"); echo $send; } ?> <form action='inviteList.php' method='post'> <font>Invite your friends</font><br><br> <font><b>Email: </b> <input type='text' name='email' size='30'><br> <input …

Member Avatar for shahai.ali
0
285
Member Avatar for abevenkat

how can i make a servlet to validate a form with two file upload one image and other a pdf file. along with the other string parameters like name age gender etc., i need to validate the pdf and image files in servlet and save it in folder of my …

Member Avatar for subramanya.vl
0
215
Member Avatar for shahai.ali

i have following form in html: <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file"><br> <input type="submit" name="submit" value="Submit"> </form> and my upload_file.php is in the following: echo "Upload: " . $_FILES["file"]["name"] . "<br>"; echo "Type: " . $_FILES["file"]["type"] . "<br>"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . …

Member Avatar for shahai.ali
0
2K
Member Avatar for shruti.mendiratta.1

this code has following error --it ensures that the username is unique but still insert it into database please help me to debug this error.

Member Avatar for subramanya.vl
0
89

The End.