199,114 Archived Topics
Remove Filter ![]() | |
Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick frmDisplayLockerInfo.Show() frmDisplayLockerInfo.TextBox2.ReadOnly = False frmDisplayLockerInfo.TextBox3.ReadOnly = False frmDisplayLockerInfo.TextBox4.ReadOnly = False frmDisplayLockerInfo.TextBox5.ReadOnly = False frmDisplayLockerInfo.TextBox6.ReadOnly = False frmDisplayLockerInfo.TextBox7.ReadOnly = False frmDisplayLockerInfo.TextBox8.ReadOnly = False frmDisplayLockerInfo.TextBox9.ReadOnly = False frmDisplayLockerInfo.TextBox10.ReadOnly = False frmDisplayLockerInfo.TextBox11.ReadOnly = False frmDisplayLockerInfo.TextBox12.ReadOnly = False frmDisplayLockerInfo.TextBox13.ReadOnly = False frmDisplayLockerInfo.TextBox15.ReadOnly … | |
![]() | I can just buy a machine server kinda shapped like a desktop and create my own blog and my own way and my design.... I do not want to use Blogger or Wordpress lots of people made complaints saying Wordpress and Blogger deleted there content of posting expressing them selves. … |
Hi guys, as you know we can get a value from array by giving an index: int x[10]; int i; for(i=0; i<10; i++) x[i]=i; print(x[1]); // output is: 1 but how can I change this code to this: int x[10]; int i; x['a']=0; x['b']=1; x['c']=2; . . . x['z']=23; print(x['c']); … | |
Hello, I'm using images to show a sequence. For this I'm using image list and the code is Graphics g = this.panel2.CreateGraphics(); ImageList photoList = new ImageList(); photoList.TransparentColor = Color.Blue; photoList.ColorDepth = ColorDepth.Depth32Bit; photoList.ImageSize = new Size(40, 40); Graphics g1 = this.panel2.CreateGraphics(); Pen green = new Pen(Color.Green, 1); int j … | |
I have a little problem related to the white spaces in my program. Well, the actual program I'm trying to make is something else. so this program is just to check whether the text is properly broken or not. The problem I'm facing is, for the first word in my … | |
Hi, I am looking for a procedural PHP script that would allow me/my users to upload video content in a number of popular formats. I would also like all the information to be linked into a MySql database as well. I already have a upload script for uploading documents but … | |
i have to read a verilog file in c ..how will be the code in general? | |
Hi, is there a way to get the FTP Welcome banner (not the welcome message, but the banner)? What I'm trying to do is to discover several AXIS security cameras over a network using FTP. When I try to FTP into a camera using cmd.exe, the camera answers like: C:\>ftp … | |
![]() | Hi, I have a page that gets adverts and an image from mysql database. Getting the results is no problem. How do I make use of css to align each advert next to each other as opposed to every advert under one another. I also have a problem of the … ![]() |
Hi All, Help me please...! How to get harddisk serial number and motherboard serial number using php?. Thank. | |
I have two pages one called upload-file.php, this page uploads the image into the database and my folder. My PHP page looks like this. if (move_uploaded_file($_FILES['uploadfile']['tmp_name'], $file)) { $insert=mysql_query("insert into match_item_image set item_id='".$_SESSION["session_temp"]."', image='".$name."', adid='$adid'") or die(mysql_error()); $cc=mysql_insert_id(); echo "success".$cc; My other page consist of a javascript function which displays … | |
Hello all, Currently I am trying to create a program that prompts the user to select a file via JFileChooser, and then continues to use that file to gather information for objects. I have no problem selecting the file from JFileChooser, but I do have a problem reading the correct … | |
hi, I am recently very curious to know how I can make a connection between two computers which are not in a local network. I googled a lot but there are always solutions for local IPs Now I know that I should make a server and a client to send … | |
Hi, Please i want my application to display the autogenerated ID in a messagebox after an insert has taken place and this autogenertaed id is a GUID form. Please help, i have tried @@identity and select_identity() but it wont display any value. Heres how my code is from d insert … | |
Hello, I know a little about php and I want to develop a website about advertisment. something about register a website and search about available adverstiment. I don't know what is better to use, functions or classes? help me for this other question, how to develop a script and make … | |
Hey guys! I am recieving this error on the code posted below: "Operator '&&' cannot be applied to operands of type 'int' and 'int'. I do not understand why this is not working. is there a workaround or a better way I should be doing this. Thanks in advance! C2, … | |
Hi all, Help me please. i have two table: outbox and contact. condition outbox table befor query/ insert. CREATE TABLE outbox ( id int(11) NOT NULL, phone_number varchar(30) NOT NULL, message varchar(200) NOT NULL, PRIMARY KEY (id) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; Contact table: CREATE TABLE contact ( id int(11) NOT … | |
Hi all, My requirement is to add student marks into the system. In my form i have entered admission number of the student, term and year and click on "Add" button to enter marks. Thereafter the page should be redirected to the following page where it should be displayed marks. … | |
hello, i'm writing a code for non-preemptive shortest job first, everything is okay except to select the first process arrived in the queue. here is my code. #include<iostream> using namespace std; struct process{ int processId; int burstTime; int arrivalTime; }; int main(){ int numberOfProcesses; //number of process cout <<"please enter … | |
Hi... After long time I came back. Actually I am trying to display State and City list in 2 drop down box using PHP and Ajax. State and city list is coming from Mysql. I am able to get the list of state but after changing the state city drop … | |
![]() | main() { char s[19]; strcpy(s,"\0"); if(s==NULL) printf("daniweb\n"); else printf("nitin\n"); return 0; } Can anyone tell me what is expected o/p of this and why ? help! thanks in advance. ![]() |
Hii.. I am doing project in java and i want to convert it to c#.is it any option available? Thank you.. | |
Hello all! I have hit a small bump in my development of a program I am working on. Basically what I need to happen is this; for each item in the listview it executes a SQL query to input values into a database. In this case it pulls the quantity … | |
I'm trying to make a battle function but am having some trouble. Is there a way to do this? At the moment I'm getting an error "AttributeError: 'function'object has no attribute 'att'. My guess is that this would be easier with classes, but I've not learned classes yet. So is … | |
I have two pages one called upload-file.php, this page uploads the image into the database and my folder. My PHP page looks like this. if (move_uploaded_file($_FILES['uploadfile']['tmp_name'], $file)) { $insert=mysql_query("insert into match_item_image set item_id='".$_SESSION["session_temp"]."', image='".$name."', adid='$adid'") or die(mysql_error()); $cc=mysql_insert_id(); echo "success".$cc; My other page consist of a javascript function which displays … | |
i need some example codes.. | |
![]() | hello, this is code to generate fibo numbers in log n time. it is giving o/p as "0", i dn't know where is error. please help. #include<stdio.h> int (*(fibo)(int m[][2],int p))[2] { int r[2][2]={0,0,0,0},d[2][2]={0,0,0,0}; int (*l)[2]; int i,j,k; if(p==1) return m; l=fibo(m,p/2); for(i=0;i<2;i++) for(j=0;j<2;j++) { r[i][j]=*((*l+i)+j); } for(i=0;i<2;i++) for(j=0;j<2;j++) for(k=0;k<2;k++) … ![]() |
Hey guys! I'm having a hard time finding a way to set up pythonpath on a windows machine, by a script. I know how to do it manually, but I want to make a script that would add a certain directory to pythonpath and would save it. Thanks for reading, … | |
Not sure the best way to ask this question, but here goes... I have a Database table that has a column called pos_id that is an auto increment field, and I have used it as a tracking device for the next position number in a company forced matrix system... Now … | |
![]() | OK so I'm quickly making my way through codeigniter... It seems pretty pleasant and the MVC model seems Okay. But I have come accross a problem in passing an array to a view and displaying it. Following the MVC pattern, the database queries are separated into the Mo**d**el file. [Good.] … |
I am a volunteer at our local library. 5 months ago a clerk somewhere on the web shut down the site accidentally. Last week I had the site up after removing 18 MB of empty lines from both the index and default pages. Yesterday the Frontpage extensions went away from … | |
![]() | Hello guys ! Hope you're doing well. I have faced a problem in declaring linked lists inside a linked list. I made a picture because it speaks more than 1000 words  Here's my structure declaration: typedef struct author *link; struct author { char name[20]; link next; link down; … ![]() |
Hi guys, So I'm busy writing an application that needs to update a list from the web after a certain amount of time. main.py file class Gui: def ...... def ...... def ...... def on_update_click(): update() app=Gui() Gtk.main() So when the program loads up, user will click the update button … | |
Hi, I'm curious about a few conventions. If you have a function that can return a or b based on some conditionals, which do you think is the best/accepted notation? def test(val): if val > 10: return a else: return b Or def test(val): if val>10: return a return b … | |
![]() | hello i need little help with url rewriting i have page :: www.mysite.com/search.php?q=something desire url structure:: www.mysite.com/q/something .htaccess code :: RewriteRule q/(.*) search.php?q=$1 the above htaccess code work fine but i have little more htaccess code for my site .htaccess code :: RewriteRule www.(.*) web.php?url=$1 desire url structure:: www.mysite.com/www.daniweb.com so … ![]() |
Hi, I'm writing a small C program to clean the radius radacct table, removing ended sessions records and inserting on a separated database. The problem is that MySQL C API doesn't have an easy way to insert the result of a query on another database/table directly, you have to build … | |
How to bookmark website automatically without asking user/visitor of website in all browsers? Following is click version, I want to bookmark website automatically in all browsers. jQuery $(document).ready(function() { $("#bookmarkme").click(function() { if (window.sidebar) { // Mozilla Firefox Bookmark window.sidebar.addPanel(location.href,document.title,""); } else if(window.external) { // IE Favorite window.external.AddFavorite(location.href,document.title); } else if(window.opera … | |
Please help me. I have design my help content ĩ̷̊ñ a html file. I want to display it as soon as the help button is click. The html doc is ĩ̷̊ñ my bin folder, how can I call it, wen it is being click. •̸ŤђαϞĸs ĩ̷̊ñ advance | |
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.OleDb; namespace Database { public partial class Form2 : Form { public Form2() { InitializeComponent(); } int baseExp = 200,currentExp,lvl=1,str,intel,dex,armr,min=10,max=25,minimum=2,maximum=3; public void levelUp() { min += minimum; max += maximum; str = int.Parse(strength.Text); … | |
Hey, iv been looking around for help with a problem with a program i am working on, but i cant find an appropriate category on any forum really. The program is a flash swf compiler. But at the moment i am having problems understand a certain data structure (the abc … | |
Hi. Can you help me read a two digit like "12" from an input.txt file, is it advisable to use fscanf or fgets? This is a sample of the txt file : a(1,4,3,12,15) Thanks :) | |
hi all, I am new to php and have started some coding.I want to insert values in one table1 and update values of table2. It worked for me last day..but today it doesnt work.I have hardly changed any code.i guess except fr deleting some comments in code..u plz tell me … | |
#include<iostream> #include<math.h> using namespace std; int main() { long int t,n; cin>>t; while(t--) { cout<<"abc"; } return 0; } i am getting run time error for t>10000. how to solve it. range of t>1000000 | |
hey people, I've been experimenting with some new (for me) java techniques, like keybindings. i've got a small app, where the bindings work fine, untill i press a JButton with actionListener. the actionListener doesn't do anything at all, but keybindings fail after i press one of them. here's my code … | |
Hi everybody, How to do the following in java..?? created a frame and one button added to that frame and set the keyboard shortcut to that button.Now my question is how to make that keyboard shortcut will work eventhough focus is not there in that frame? anyone have any idea.. | |
**i have problem in setting an alarm program, when i write the code to set with the alarm with the system it did not goes through so what should i do to fix the problem. pls i need to fix it if you can send me the code i will … | |
#include <stdio.h> #include <stdlib.h> #include<string.h> char combine(char [],int k,int n); int main() { char str[10]; int m,n; printf("enter the string: "); fgets(str,sizeof(str),stdin); m=0; n=strlen(str); printf("the combinations are....\n"); combine(str,m,n-1); return 0; } char combine(char a[],int k,int n) { int i; char temp[40],t; strcpy(temp,a); if(k==n) { printf("%s\t",a); } else{ for(i=k;i<=n;i++) { t=a[k]; … | |
How can I make my program generate random number between two given integers ? I use `srand ( time(NULL) );` `x = rand() % i;` to generate numbers modulo i. But I can't figure out how to generate between two numbers, suppose 1 and 3. | |
I just finished installing ODTwithODAC112012 (Oracle Developer tool for Visual Studio ODT) on my system . Now I am trying to deploy dbmsclr.plb as SYSDBA from SQLPLUS But I am getting the error SP2-024 nothing to change. Here is the command window:- C:\>sqlplus /nolog SQL*Plus: Release 11.2.0.1.0 Production on Tue … | |
![]() | hello today i was trying to add search functioality to my site. my site actually display analysis reports for websites like google.com but what if user enter simply google so i thought why not to add search function that display results on keyword google. well i added search.php to my … ![]() |
The End.