199,114 Archived Topics
Remove Filter ![]() | |
Dear all, I am confused about the output of the below programs .When i use the scope resolution operator i am getting the below error. [code] <? class MyClass{ public $variable_value="This is a variable value "; function display(){ echo "Display Function \n"; echo $this->variable_value; } } MyClass::display(); //$obj=new MyClass(); //$obj->display(); … | |
I tried executing a simple line drawing program using exec(). It worked fine. But when I tried to execute the same program by sending it through a tcp/ip network(the server reads the program and sends it to the client which receives it to a variable(b) of string type) and then … | |
hi :) can anyone tell me how to pass data from datagrid to several textboxes. I have a textbox where the user can search a data. The data searched would display in the datagrid, so when I clicked on a data from the datagrid, it will be distributed to their … | |
i am trying to trigger tab key in keypress event of text box If KeyAscii = 13 Then SendKeys "{tab}" End If [U]but getting error[/U] Run time error 70 permission denied any help | |
After answering a lot of questions on this Forum, I found that many common questions keep coming back because newbies don't search prior to posting and we don't have a standard reference to send them to. My New Year's resolution was to create a FAQ to provide the best possible … | |
i need to validate my username and must not be blank.. i use this code.. but its not working... i'm getting this error.. [COLOR="Red"]'Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the … ![]() | |
Is there a way to make a file shredder in VB .NET..if is there plz explain it with code... | |
hi friends i m doing project in vb and database is microsoft access in my form i have 3 radiobuttons and 3 combobox when i select radio button then respective combobox enable and remainig disable i load all the data in combobox through data reader the problem is user can … | |
I am trying to get a pdf file from the server using php. The file is pdf and it is not corrupt, but when I use this code adobe says its a corrupt file. I just want to show a file to users like a regular link <a href="123.pdf"> this … | |
![]() | Hi everyone. I am starting to learn AJAX and JavaScript and I am trying to make a popup login form and I am having trouble posting the data entered in the textboxes. It is fine when I post one piece of data but when I try to post two I … |
An integer is loaded in from memory. ran through two loops to determine the tens place and the ones place. Integer is stored back to memory and displayed. Example #98 Tens place -->9 Ones place -->8 :) | |
Hi, I am a novice programmer at PHP. I want to redirect my webpage to another webpage. The problem is that First I want to output a file as an attachment and then redirect the web page I have used this code to output the attachment file [CODE] header("Content-Disposition: attachment; … | |
I am using a DIV to load pages that must be refreshed every so often however due to the delay in each load, it takes that amount of time to load the first preview. So what I want to do is while the page loads it up is there a … | |
please help. thanks. :icon_smile: | |
Syntax Highlighting Code [code] private void richTextBox1_TextChanged(object sender, EventArgs e) { string tokens = "(auto|double|int|struct|break|else|long|switch|case|enum|register|typedef|char|extern|return|union|const|float|short|unsigned|continue|for|signed|void|default|goto|sizeof|volatile|do|double|if|static|while)"; Regex rex = new Regex(tokens); MatchCollection mc = rex.Matches(richTextBox1.Text); int StartCursorPosition = richTextBox1.SelectionStart; foreach (Match m in mc) { int startIndex = m.Index; int StopIndex = m.Length; richTextBox1.Select(startIndex, StopIndex); richTextBox1.SelectionColor = Color.Red; richTextBox1.SelectionStart = StartCursorPosition; … | |
Hi, I have a GUI with a JTabbedPane. In the tabbedpane I used a JScrollPane to hold a JTextPane. How can I get the object name of JTextPane that I have created in my class or something which is unique for a jcomponent with which I can identify that the … | |
I am new to java Swing. I am trying to develop a tool, in which I used a Jtextpane as an editor. Jtextpane is enclosed in a Jtabbedpane to meet my requirement. But I have inserted the JTextpane in a Jscrollpane and then to the Jtabbedpane. Now, when I select … | |
So I am converting a bunch of very large #s to what I believe is the ASCII standard? or something similar. And I am getting some negative values which is bad, needless to say. the values are the exact value of the conjugate. Example Should be value 214, instead I … | |
sir, i'm using ASP.Net 2.0, i'm using a gridview in a form and i want to create a check boxes dynamically in each row of my grid view so that i can select multiple values from that grid, i want to use those selected values for some manipulation in the … | |
Hi, I'm really new to PHP and programming I can say. I really need your help. Basically I'm doing a dynamic dropdown menu using PHP and MySQL and when user select the company name at dropdown, then email address will be populated at new textfield. The company table consists of … | |
Having trouble running a do while with a if else statement. I'm getting an error saying the "variable 'distanceM' is being used without being initialized." [CODE]int main () { const double PI = 3.141592; double xM, yTheta, distanceM, thetaRad, thetaDeg, xRad, yRad, X, Y; char choice; cout << "This program … | |
hey guys where can i find free office 2010 ribbon for vb.net i found ribbon for c# but nothing for vb | |
[CODE]int main() { static short multiplycounter; static short dividecounter; double decimal; int rdecimal; cin >> decimal; rdecimal = int(decimal); cout << setprecision(10) << decimal << endl << rdecimal << endl; if(rdecimal % 1 != 0) { while(rdecimal % 1 != 0) { if(rdecimal % 1 == 0) { break; } … | |
Hi all, I have a problem with javascript function. I already do a dynamic dropdown menu where user have to select a company name at dropdown. And after select the company name, an email address will appear in textbox. The company table consists of Id, comp_name, email_add fields. But I … | |
I found this code, but I wanted to ask a fast question, does this give the maximum possible resolution? Or just the current resolution set? I know there is a System function but I am trying not to use any System functions if at all possible. [CODE]#include "wtypes.h" #include <iostream> … | |
Linking Comb Box Items to a Button to load a new form Combo box 3 has 2 items.....Item 1, Item 2 i want it so if you click on the button when item 1 is selected it will load form3 and if item 2 is selected the same button will … | |
Hello, I am trying to recall the $username in the private page (e.g. Welcome $username to your private page) and I think I'm having some difficulties. Actually I made working once before Christmas but now It drives me crazy. It's an assignment for the college. this the URL: http://www.dcs.bbk.ac.uk/~pparod01/index.php if … | |
So, I have to store ( in a variable?) the number as a Roman Numeral ( M = 1000, D=500 etc.) Convert it to decimal and store in decimal. Print the number as a Roman numeral or decimal number as requested by the user. I suppose it's 2 separate functions, … | |
Say I have an XML file as such: <contacts> <contact id="1"> <name>Steven</name> <address>Here</address> <phone>11111111</phone> </contact> <contact id="2"> <name>John</name> <address>There</address> <phone>22222222</phone> </contact> </contacts> ...etc. How can I transform that to HTML with XSLT so that it can be a collapsable/expandable tree? For example, If I click a button that shows contact{@id="1"] … | |
Hi i know the title seems a little bit confusing, let me explain. Let say i have 10 properties of bindingsource. The names are: bindingsource1, bindingsource2, bindingsource3, ....., bindingsource10 i want to develop a code using loop for these properties.. For i = 1 to 10 //bla bla bla Next … | |
can anyone provide compleate source code????..including userinterface..pls.. | |
Hi All, I have created a form for a user to create a booking of a meeting room, I need this form to do 3 things. have print functionality update the new booking to a dataset view the current bookings screen I seem to be struggling with the second task, … | |
I thought about something like this. Is this a good way to do it ? [code] std::stringstream Num; std::string str; Num << 5; str = Num.str(); [/code] I have this: [code] int ist = 5; [/code] How is it possible to convert ist to std::string ? | |
Hello I have a following line inside a .txt file This$is$my$Input$203 I would like to know whether is it possible only to store the 203 value in variable using fscanf. So without declaring char arrays to store all those strings. I was thinking of something like this ; [CODE]fscanf(fp,"%*[^$]$%*[^$]$%*[^$]$%*[^$]$%d",&number)[/CODE] But … | |
Hello I'm not too experience with c++ but I've learned some of the basics. I tried making a small txt file encryption program however my output prints one too many times to the 2nd txt file. This occurs both when encrypting and decrypting. [CODE] #include <iostream> #include <fstream> #include <cstdlib> … | |
I need Data Flow Diagram, Entity Relationship Diagram, Activity Diagram, Sequence Diagram, Architecture Design Diagram for the following Scenario. I can provide Use Case Diagram for this .. It might help u .. Please, Basically I m stuck in Sequence and Architecture Design Diagram. But I want to check whether … | |
This is the second piece of code I have ever written don't seem to understand what I'm doing wrong. It seems to be going over my head as I have no prior knowledge of any programming language and have literally just begun. I have tried searching the issue to resolve … | |
When executing the code below, I am getting the error: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given. From my understanding this would imply that mysql_query is returning false meaning the query is failing but I am not sure why.. Any ideas? [CODE]<?php include 'global.php'; $case=$_GET['case']; $query=" SELECT … | |
Hello, I am having a problem displaying database query in a DIV. I can display the data without issue using this code: [CODE]<?php if (isset ($_POST ['submitted'])) { include ('connect_php_projects.php'); $category = $_POST ['category']; $criteria = $_POST ['criteria']; $data = mysql_query ("SELECT * FROM discipline WHERE $category LIKE '%$criteria%'"); while … ![]() | |
I there everyone. I've been wondering if someone could help to glue up my broken head with this one. I've got some "labels" which show up, dynamicaly, the data coming from mySql through PHP. In those labels I've got 4 buttons for uploading an image, deleting the respective entry, editing … | |
Hello programmers out there again :) Im using this code (Thanks to adatapost): [CODE] private: System::Void textBox1_KeyPress(System::Object^sender,System::Windows::Forms::KeyPressEventArgs^ e) { if(Char::IsDigit(e->KeyChar)) return; if(e->KeyChar=='\b') return; if(e->KeyChar=='-') return; e->Handled=true; }[/CODE] To allows only digits, backspace and "-" But the problem is that you can put the "-" anywhere and as often as you … | |
I need to know how to work this out, say for example i have a method is C++ that is helloworld(), and i need to call it from a C program. [CODE] // in my C++ program void helloWorld(){ // some code; cout<<"hello world"; some code..... }[/CODE] [CODE]This is my … | |
Hi, programmers! there's global and local variables ? I've heard about [B][U]common variables[/U][/B]....what is it ? Does anybody know? if so - please - share your knowledge! Thanks in advance ! | |
Hello every body, Can any body help me for the 'video thumb' issue. I am using Embed code provided by site like youtube and vimio. But when I use youtube i can get and show the thumb image of that video. But I can not display or get the thumb … ![]() | |
Dear Friends, I have 5 check box and one submit button:: my problem is while checking first check box up to fifth check box is checked then i want to enter to form 2 i want that small code to check the check boxes,it may be in switch or if … | |
Hello, I am trying to make a contact us form for a website. The form and accompanying php should work, i think. I am new to php but know how to program in general. The form and verify.php are below with some modifications for security. contact.php snippet [CODE] <form method="post" … | |
7a. Create an abstract class named Salesperson. Fiels include first and last nams; the Salesperson constructor requires both these values. Include a get method that returns a string that holds the Salesperson's full name, which consists of the first and last name separated by a space. Save the file as … | |
Ok, i have a couple of questions. I am learning php and i built a log in and a register page. When u register it auto-increments the id row and the user name goes to row "user" in a mySQL database. now how would i make it so it says … | |
Hi , Am currently working on online examination web project.. i have a table like this.. sno question answer1 answer2 answer3 answer4 correctanswer 1 sql structured simple short none structured i just want to bind these 4 answers to my radiobuttonlist which is present inside the gridview.. am not able … | |
This is a great example for a thread stop. Simple debugging trick for any looped process that needs the "e-brake" applied while making sure that the thread is working correctly. The idea is that you can manually stop a thread, to prevent that hanging sensation during any process. This works … |
The End.