199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for prem2

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(); …

Member Avatar for prem2
0
251
Member Avatar for woofers

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 …

Member Avatar for woofers
0
157
Member Avatar for problematic:)

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 …

Member Avatar for AndreRet
0
103
Member Avatar for PM312

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

Member Avatar for AndreRet
0
1K
Member Avatar for chrishea

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 …

Member Avatar for imti321
0
195
Member Avatar for bbinais

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 …

Member Avatar for diafol
0
231
Member Avatar for horserider

Is there a way to make a file shredder in VB .NET..if is there plz explain it with code...

Member Avatar for lolafuertes
0
77
Member Avatar for noel9

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 …

Member Avatar for lolafuertes
0
145
Member Avatar for left19

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 …

Member Avatar for left19
0
146
Member Avatar for doctorphp

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 …

Member Avatar for hielo
0
2K
Member Avatar for Fabii23

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 :)

0
406
Member Avatar for gunjannigam

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; …

Member Avatar for gunjannigam
0
150
Member Avatar for public-image

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 …

Member Avatar for public-image
0
107
Member Avatar for luciahlocsin
Member Avatar for shajis001

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; …

Member Avatar for mcriscolo
0
132
Member Avatar for Janu Sam

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 …

Member Avatar for Janu Sam
0
104
Member Avatar for rohit2

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 …

Member Avatar for pbl
0
104
Member Avatar for MasterGberry

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 …

Member Avatar for MasterGberry
0
156
Member Avatar for Shubhib

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 …

Member Avatar for hopel7758
0
254
Member Avatar for waniejjang

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 …

Member Avatar for waniejjang
0
4K
Member Avatar for kra9853

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 …

Member Avatar for Zjarek
0
128
Member Avatar for y2kshane

hey guys where can i find free office 2010 ribbon for vb.net i found ribbon for c# but nothing for vb

Member Avatar for RenanLazarotto
0
146
Member Avatar for Rickay

[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; } …

Member Avatar for Rickay
0
638
Member Avatar for waniejjang

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 …

Member Avatar for waniejjang
0
2K
Member Avatar for MasterGberry

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> …

Member Avatar for MasterGberry
0
249
Member Avatar for JD69

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 …

Member Avatar for JD69
0
95
Member Avatar for paolonewage

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 …

Member Avatar for hielo
0
194
Member Avatar for XodoX

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, …

Member Avatar for XodoX
0
203
Member Avatar for f_atencia

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"] …

0
92
Member Avatar for wewehalim

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 …

Member Avatar for wewehalim
0
98
Member Avatar for arunwrc

can anyone provide compleate source code????..including userinterface..pls..

Member Avatar for chrishea
0
102
Member Avatar for discovery-power

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, …

Member Avatar for discovery-power
0
201
Member Avatar for Jennifer84

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 ?

Member Avatar for Nowayz
0
639
Member Avatar for Joey_Brown

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 …

Member Avatar for Joey_Brown
0
111
Member Avatar for davi0011

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> …

Member Avatar for jonsca
0
203
Member Avatar for bazigar286

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 …

Member Avatar for bazigar286
0
172
Member Avatar for K92

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 …

Member Avatar for Narue
0
92
Member Avatar for nasablast

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 …

Member Avatar for nasablast
0
102
Member Avatar for cubalibras

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 …

Member Avatar for diafol
0
2K
Member Avatar for fantasma

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 …

Member Avatar for fantasma
0
192
Member Avatar for Danny1994

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 …

Member Avatar for jonsca
0
163
Member Avatar for localp

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 …

Member Avatar for Narue
0
301
Member Avatar for vedro-compota

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 !

Member Avatar for vedro-compota
0
131
Member Avatar for arshadshaikh

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 …

Member Avatar for diafol
0
251
Member Avatar for shajis001

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 …

Member Avatar for shajis001
0
102
Member Avatar for crenfrow

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" …

Member Avatar for pritaeas
0
139
Member Avatar for CHOCHOCHO

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 …

Member Avatar for mcriscolo
0
530
Member Avatar for tcollins412

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 …

Member Avatar for TySkby
0
145
Member Avatar for Arun.Emm

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 …

Member Avatar for AhmedSaud
0
115
Member Avatar for zinnqu

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 …

0
3K

The End.