199,114 Archived Topics
Remove Filter ![]() | |
Hi Is there any way I can use a pair of keys(private-public key pair) generated externally for encryption/decryption of files rather than generating a pair of keys for every cycle of encryption/decryption ?? My program requirement is that I need to run an encryption program packaged in a jar file. … | |
Hello, i am trying to add a keyboard event listener to my Jpanel. But i am having no sucess. This is my [B]board.java[/B] [CODE]package snake; import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.awt.geom.*; import java.awt.image.ImageObserver; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.ImageIcon; import javax.swing.JComponent; import java.awt.Image; import javax.swing.JPanel; import java.awt.event.ActionEvent; import … | |
can anybody explain what the difference between the 2 codes below? i'm using visual basic 6 and i'm connecting access dbase. and one other thing, i'm trying to connect access 2007 with my vb6 but i can't remember the code, i know the code below works with access 2003 and … | |
[code] protected void Button1_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(System.Web.Configuration.WebConfigurationManager.ConnectionStrings["shortycaponeConnectionString"].ConnectionString); for (int i = 0; i < GridView1.Rows.Count; i++) { GridViewRow row = GridView1.Rows[i]; CheckBox chkbox = (CheckBox)row.FindControl("cbRows"); TextBox Quantity = (TextBox)row.FindControl("tbx_TextBox"); if (chkbox.Checked == true) { try { con.Open(); SqlCommand cmd = new SqlCommand("INSERT INTO InwardEntries(ProductCode,Size,Quantity,DateTimeNow) … | |
[CODE] #include<ncurses.h> int main() { WINDOW *win ; initscr(); win = newwin(10,30,10,10); box( win, ACS_VLINE, ACS_HLINE); refresh(); wrefresh(win); mvwprintw(win , 13, 14, "Enter any Key :\n "); refresh(); wrefresh(win); getch(); refresh(); wrefresh(win); endwin(); printf("END"); return 0; } [/CODE] I just started learning Ncurses and have some questions: i understand that … | |
Hi! I'm trying to install a php product that requires ioncube loader. I have followed several guides (they are all the same) for how to install it. Running ioncube-loader-helper.php tells me the location of the php.ini file. The server has a set of ioncube loaders, and the helper tells me … | |
hi there, i want to display my data coming from database..i could do that using a table, however the problem is that the table will just expand everytime there is data. what i want to have is a control which has a scrollbar which will display lots of data. i've … | |
I have this C++ code :[code] const int ANYSIZE_ARRAY = 1; struct LUID {DWORD LowPart; WORD HighPart;}; struct LUID_AND_ATTRIBUTES {LUID Luid; DWORD Attributes;}; struct TOKEN_PRIVILEGES {DWORD PrivilegeCount; LUID_AND_ATTRIBUTES Privileges[ANYSIZE_ARRAY];};[/code]I want to convert this code into C# syntax. I tried this one, but don't know how to place array in a … | |
Hi! When my login form is loaded, I wish to retrieve the list of usernames from the database login to a combo box on the login form. unfortunately I am stuck with this error messsage " syntax error in FROM clause". Below is my codes.. help me out please Thank … | |
Hi All! I have a table that there is a combo box inside the table. For example, the combo box consist of item codes. And then, whenever user choose item from combo box, the next column inside the table will show name of the item. Here is my example coding: … | |
how to convert from 'string' to 'System.Data.DataTable' I Have this code and my computer appear kode error I have put all the web site on the attach The best overloaded method match for 'System.Data.OleDb.OleDbDataAdapter.Fill(System.Data.DataTable, object)' has some invalid arguments cannot convert from 'string' to 'System.Data.DataTable' [code] using System; using System.Data; … | |
hi .... i need help to unserstand this code please if someone can help by explain or write commant [CODE] Public Shared Function GetPostBackControl(ByVal thePage As Page) As Control Dim myControl As Control = Nothing ' Dim ctrlName As String = thePage.Request.Params.Get("__EVENTTARGET") If ((ctrlName IsNot Nothing) And (ctrlName <> String.Empty)) … | |
Hi, I've been working alot on a program lately, and I'm actually veeery close to done. Atleast until I come up with something more to add. The most useful function of this program, is the ability to create Shortcuts, which at the same time creates a command to start it. … | |
hi i have the next problem i have an array or arraylist from class Student which has firstname, lastname and grade. How can i sort them by grade (value) - ascending and descending? [CODE]package zadacha_1; import java.awt.List; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; public class Zadacha_2 { /** … | |
Hello! I'm making an enrollment application in vb6, using Access as my database. It will be used by 2 to 3 persons (registrar and cashier). What codes do I need if I want to retrieve data from my database from one pc to where my database is? If I declared … | |
Hi, i'm trying to take the last list from a list of lists, use that as a start point, then iterate through the list of lists and find the closest match, then use that matched list as a base and iterate through the remaining lists for the closest match to … | |
Hi, Here I am having a dropdown named Category and another drop down named Sub category.There is one text box named zipcode which is filled with the previous request page.What happens is when I select any category the onchange event fires and a list of cars gets displayed.But parallely the … | |
I am getting this error: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3) Timestamp: Wed, 20 Jan 2010 19:54:08 UTC Message: Object required Line: 1635 Char: 1 Code: … | |
Hi experts Here I am with yet another problem. I want to add data in a tree viewer controller dynamically from my database. I am using ms-access as my back-end Please help me ASAP. Thank you in advance | |
This is my booking form: [url]http://www.n-v-m.co.uk/Booking.html[/url] When 'Submit Order' is clicked a PHP script is triggered that emails me details of the order... What I require is an alert to pop up if either: a) The customer has selected 'No' for 'Is Vehicle roadworthy with full M.O.T.' or b) The … | |
please help me visualize an online examination, i dont know where to start...:icon_sad: | |
im facing a challenge here peple. i will give as much detail as i can. i am trying to come up with code such that when a button is clicked it runs through a field "copiesremainng" in my subscription table and subtracts 1 from every record in that field. this … | |
Hi guys, I would like to know if there is any way that I could disable a datagridview row and make it unselectable. I need to do this because I have clients in the grid of which some are active while others have been disabled but i am still displaying … | |
Hi, I am trying to write a soap client to connect to the hosted webservice of GlobalWeather. But i am getting lot of execption. I am posting the client and exception. If someone has as sample client code to connect to Globalweather that would be helpful. [CODE=java]package samples.hello; import org.apache.axis.client.Call; … | |
Hi, I am trying to get a perl script that a contractor created for me but I am having some issues with it. I am NOT a perl programmer and I know just enough about it to be dangerous. I am more of a PHP/CSS guy. Anyway, the purpose of … | |
How can I showing up a report file (*.rpt) from crystal report into a web browser with PHP, I'm already used this code : $cr=new com("Crystal.CRPE.Application") or die("cannot load cr com"); $rn="C:\WAMP\k\allreports\BS18A.rpt"; $rap=$cr->OpenReport($rn); but there was'nt happen any thing, it just a blank page comes up could any one give … | |
is it possible to input a data grid in php like in VB6? because in my program, user will display lots of data and displaying it in a data grid (clickable) is the best way, we all know that in VB6, once the user clicked anywhere in the grid, it … | |
Hi, We are developing a C# windows application which [B]scrolls[/B] the selected windows automatically by using(hooking) win32 [B]SendMessage()[/B] function and later will display the no. of pixels scrolled using [B]GetScrollInfo()[/B] function. The SendMessage() is working properly & is scrolling all windows including IE. But GetScrollInfo() is not working for IE … | |
Please, show me How to return to a calling void method within or without using the RETURN (in java). Thanks | |
chk this piece of code [CODE]#include<iostream.h> using namespace std; class hi { public: void print() { cout<<"hi"; } }obj; int main() { hi *h; h->print(); } [/CODE] output---> hi -------------------------------------------------------- [CODE]#include<iostream.h> using namespace std; class hi { public: void print() { cout<<"hi"; } }obj; int main() { obj.print(); } [/CODE] … | |
I would like find out is it advisable for me to have the city and province on a seperate table and then link them to the country table. This is because a city is govern by a mayor where else a province is govern by a governor. [B][U]country [/U][/B] - … | |
I'm new here at DaniWeb, and my english suck. Does anybody know how to make a form open [B]itself[/B], just in a new window? I want to make a form, that haves a button in it. when i click the button, it opens up a "copy" of itself (the old … | |
Today I've learned some concepts about Pointer in C++ and I have a confusion in this code snippet and its result. Source Code: [code] // Pointer array #include <iostream> using namespace std; void main () { char * say = "Hello"; // cout << "say = " << say << … | |
i have a form that uses the post function however i am having some troble getting information from the drop down menus. and also i am having some trouble doing some form validation. the code for both files is shown below. <html><title>Create a new Prequisite Rule </title> <body> <form action="insert_rule.php" … | |
Dear Experts SqlServer Table1 has data as follows Sno-------date 1------01/01/2010 8------01/01/2010 1------02/01/2010 5------02/01/2010 2------18/01/2010 9------18/01/2010 3------18/01/2010 1------03/01/2010 6------03/01/2010 My questions are: 1) I want to display the SMALLEST Date into textbox1 which is 01/01/2010 2) I want to display the BIGGEST Date into textbox2 which is 18/01/2010 3) I want … | |
[CODE] Dim InputText As String = Me.txtenter.Text Dim Letters = From c As Char In InputText.ToCharArray Select c & " = " & AscW(c) & " " Me.lblanswer.Text = String.Join("", Letters.ToArray) [/CODE] The above code is to convert each letter in a word or phrase (including the space) to its … | |
Im brand new to java and programming in general. Just wondering if someone could help me out with my homework. Method 1: Write a public static method named myUserName. This method does not return anything. This method accepts no parameters. This method simply prints out your engr username (all lowercase … | |
i have a senario where user reg for seminar and books a hall, during reg he enters start time and end time for seminar ,start and end time are stored in data base. when a new user reg for seminar hall with existing booked time in data base it should … | |
I am trying to calculate the ending inventory cost using weighted average. I have figured out a column for the cost per item (CostperItem), and a column for item on hand(QuantityAvailable). Now I want to multiple those two columns together and get a new column for the result. how can … | |
Hi, I have a structure declared in C# [CODE]public struct myStruct { int x; }[/CODE] I created a 2D array of structures [CODE]myStruct[,] theStruct = new myStruct[3,3];[/CODE] What is the C# equivalent of the following C++ code? theStruct[0][0].x = 50;?? Please Help Thanks in advance | |
hi.. Im building an application in ASP.net where i have a button which should add more textboxes when clicked. the other textboxes are placed in a table so if i click the button it should a new row containin the textboxes.. please let me know wht code i can use … | |
Zdravím, mám jeden dotaz, jelikož na komponentu LV nejde použít wizard jako na DGW, chtěl bych se zeptat, jak postupovat při vypisování jednotlivých řádku z DataTable, viz kód: Hello, i have got one questions, because with ListView component i cannot use the Wizard, i would like to ask, how to … | |
Hi there, i am new in VB.Net and i have problem with my VB.Net project. I want to create an application where it capable to print a report like we normally do in word and save it in the pdf format. But the problem is i dont know how to … | |
Dear Experts How to make datagridview current row bold? Please help | |
hi... i just wanted to know how we can access the variable of 1 form to another form.as far as i know, ther is no session management concept in C#. for ex., i want to access my login id into the next form. then what will be the procedure to … | |
Hey everyone I'm a college student taking semester two of C++ and we have a project using classes. This semester we are strictly using Vi to edit and compile my code. WARNING THIS CODE IS NOT THE WAY I WOULD PERSONALY WRITE IT, BUT MY INSTRUCTOR INSISTS ON THIS FORMAT. … | |
Hello guys, by the way I am a newbie here. This is my first post in this forum. I am now doing a window application(MFC.exe-dialog based) using the Microsoft Visual C++ 6 Enterprise Edition. Actually I am doing the simple application that read a string from text file. I only … | |
Can You give me the code of detecting text from an image, i am a student and i am doing programing at beginner level. so please help me out. | |
i have a problem with this code regarding in counting.. [B]index.php[/B] [CODE] <?php if(isset($_GET['btnsubmit'])){ $can = array($_GET['pres'],$_GET['vp']); mysql_connect('localhost','root'); mysql_select_db('sample_poll'); foreach($can as $val){ $sql = mysql_query( "UPDATE candidate SET votes=votes+1 where can_id='".$val."'" ); } echo "<h1>vote complete!</h1> <a href='voteresult.php'>see all vote results</a>"; }else{ echo "<form method='get'>"; mysql_connect('localhost','root'); mysql_select_db('sample_poll'); $sql = mysql_query( … | |
Hello, my name is Luis Gomez, i'm the responsable for z3950's client development, i want to thank you for your time and will for help us. I've already revised de code, i looked some test source code: /*Test source code */ public void testLOC2() throws Exception { app_context = new … |
The End.