64,152 Solved Topics
Remove Filter ![]() | |
I tried to create a context menu for a griedview and when i test it it works greacefully private void gridView1_PopupMenuShowing(object sender, DevExpress.XtraGrid.Views.Grid.PopupMenuShowingEventArgs e) { ContextMenu c = new ContextMenu(); DevExpress.XtraGrid.Views.Grid.GridView view = (DevExpress.XtraGrid.Views.Grid.GridView)sender; DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo HitInfo = view.CalcHitInfo(e.Point); if (HitInfo.InRow) { view.FocusedRowHandle = HitInfo.RowHandle; c.MenuItems.Clear(); c.MenuItems.Add("sample", sampsss); c.MenuItems.Add("sample", sampsss2); c.Show(view.GridControl, … | |
I am calling an mvc controller method vaia ajax call..When i put debugger on then that controller method is called sucessfully otherwise my ajax call is failing. What to do? ![]() | |
Hey guys, I need assistance with my program need to write a program that writes a series of random numbers to a file. Each random number should be in the range of 1 through 100. The application should let the user specify how many random numbers the file will hold. … | |
I am trying to extract blogs related to economy using the RSS feeds in python. I have no idea how to get a specific number of blogs and how to get those blogs in a particular domain (like economy). My project requires analysing these blogs using NLP techniques, but I'm … | |
I have been reading about exec() and passthru() and system() and different ways to use these, but so far not one of them is working. The Closest I have gotten is to get a request from CMD printed up on the page and so I researched how to pass a … | |
i'm building a class with std::function for recive several parameters or none: class event2 { public: typedef std::function<void(...)> OnSomethingHandler; void operator() (...) { eventwithoutarg (...); } event & operator = (OnSomethingHandler Handler(...)) { eventwithoutarg(...) = Handler(...); return *this; } private: OnSomethingHandler eventwithoutarg(...); }; what i'm doing wrong with '...'? | |
Hey guys i have a table made and when a value changes i want to update the table to the new value so other can see it on their screen. example ( if i update the status dropdown too unavailable i want other users to see that change) Anyone have … | |
How do I display the name of a user, in Facebook, using their uid? ![]() | |
[CODE] SELECT count(*) FROM information_schema.`COLUMNS` C WHERE table_name = 'your_table_name' AND TABLE_SCHEMA = "your_db_name" [/CODE] TABLE_SCHEMA is required only if table name exists in more than one db | |
Hello Community, I was wondering if there is a possibility to pass a dictionary to another program? What I want to do is send some information from one program to another, I want to use an array but I can't set keys and that is what I really need and … | |
Hello Community, I was wondering if it is possible to use an ID ($_GET) after a file in the address bar so it would look like this http://example.com/file.php/ID_HERE Instead of http://example.com/file.php?id=ID_HERE I know there is a way of doing something like that but I'm only getting it to work on … | |
Hello! I hve a question, how I can display last 3 years? i.e I would like to display them in the second format - 2013, 2012, 2011, All(...) P.S in All I want to display all other years... Here is code how I get year list now(it displays all years): … ![]() | |
I am currently working on a project that has a textbox I need to do a validation on. I want to actually do two validations: 1) Make sure it is an integer and 2) Make sure it is divisible by 10. I have done a lot of searching and have … | |
Hi all I am trying to call a simple function and I keep getting an error "Parse error: syntax error, unexpected ';', expecting '{' in C:\wamp\www\david\remoteaccess\index.php on line 15" This relates to the call and I don't understand why it does not work. I am using WAMP if that makes … | |
I'm trying to send data back and forth between two computers using a Socket (TCP). The data is in the form of serialized Packet objects. At an early point in the application, it must send 25 or so Packets of the same type to the other side. See Case 1 … | |
Hi eVeryone, Please help me on below code. I don't know what's the erorr mean. Error Message *test.c: In function ‘main’: test.c:12:2: warning: passing argument 2 of ‘tokenise’ from incompatible pointer type [enabled by default] test.c:5:6: note: expected ‘char **’ but argument is of type ‘char * (*)[100]’ test.c: In … | |
When the page opens all 12 popupDiv (large) images are centered in a stack. Why ? Having closed them all, the page then behaves the way I want i.e. onclick the popupDiv appears and one can go to the next or preceding large image. Can someone explain what is making … ![]() | |
Let's say that i have an array of objects. So, I need to delete the count objects starting at the given index. Make sure to compress myObjects and update currentObject. You must also verify that the given index exists in myObjects and that there are count entries starting from there. … | |
Hello! I got a neaty tricky situation here.. I have a picturebox1 and listbox1 and a few items in listbox1. I got images in resources.resx (bmp) and want to load different images depending on what index is selected.. I wanted for it to be something like this.. Bitmap bmp = … | |
I would like to know if there is a class wich generates RANDOM words which have sense(are in use in the daily language in englis). I am making a project where uppon a given random generated word i would like to collect letters for that given word so once i … | |
Hello, I was revising for my exam and can't think what would go in this space... What do you guys think it is? Images can be stored as bitmaps. A bitmap is a description of the bits that make up an image. Each pixel is represented by a number that … | |
So my code to test a prime number is as follows: PrimeTest(): test = input ( "What number would you like to test? " ) test = int(test) true = 0 divisor = 0 for divisor in range (2, 10): if ( (isinstance( test/divisor, int )== True) & (test/divisor == … | |
Good day, I need help with my code. It's very simple and I was compiling it successfully at school, but at home I'm having problems with it. Here is the code. http://gyazo.com/dc78a310f529374338a244227b56215f and #include <cmath> #include <iostream> #include <conio.h> using namespace std; int main () { float a, b, c; … | |
i successfully designed and filled my Crystal report via code not via wizard. i added Crystal report via addNEWITEM i added dataset in aap_code via addNEWITEM i added datatable into dataset via addNEWITEM Via code i made report and filled dataset and table with data Run and display. Successfully done. … | |
im trying to get the values of the text field displayed even after inserting the data into the database but im not doing it right because this error "<br /><b>Notice</b>: Undefined index: basic in <b>C:\xampp\htdocs\CashFlow\income.php</b> on line <b>77</b><br />" is shown inside the text field instead. There was one thread … | |
I want to open an Instance of a form in MDI Container here is my code I just want an instance of a form to Edit records in the database Private Sub BtnEdit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnEdit.Click Dim Emp As New Employee() Emp.MdiParent = Me … | |
Let's say that i have an array of objects. So, I need to delete the object at the given index and make sure to compress myObjects and update currentObject. Also, I have to verify that the given index exists in myObjects. This is what I got: NOTE: I will just … | |
Would anyone know of a C++ library which can enable me to encode and decode Ascii base 85 encoding? I'm having trouble finding one on the web. Thanks | |
I think this is a javascript query rather than css. The script opens and resizes images centering div on the screen. I have inserted function opendiv(id) so that one can go forward and back through the images on the webpage. This part works except that the images no longer center … ![]() | |
Hi, I am new to writing code and am doing a programming assignment for a class that has to be separated into different functions. I figured most of it out, but can't seem to get the validation part to work at all. could someone with more experience than me please … | |
I am using VB.Net 2008 Express Edition, I created project its works fine, Now I want to add Word File that Project and When run Setup File (from Publish) on another computer that Word file also autocopy with this project, Is possible to do this..? How I code to open … | |
Based on the loan application records of a bank and the example of query, write a program that determines whether a loan applicant is to be approved or disapproved his/her loan application. Criteria of an application to be considered are assets, income and the loan value. Applicant with assets > … | |
<?php $dbc=mysqli_connect('localhost','root','','sam_telephone'); $query="SELECT * FROM master_name"; $result= mysqli_query($dbc,$query); $display=mysqli_fetch_array($result); echo $display['f_name']; /// its show me the result which is fine // but when i apply while loop it does not show any thing. while($y = mysqli_fetch_array($result)){ echo $y['f_name']; } // $y['f_name'] should give me a result becuase it showing me … | |
I am attemping to paginate for a public salaries database I am building for my newspaper. I have the code figuring out that it should only display X rows, however, each page displays the same rows. I also have noticed that clicking the links I've created for Previous/Next Page only … | |
I was wondering is there any way to put my e.Graphics.DrawString() method into a variable(object) so that i can do some actions aftewards. The thing is that I ve got my words falling and rotating on the form. I ve also got a object wich is a Image which moves … | |
I just want to create an application where the user click on the "check for Update" button, My application start to check update. Uptill this I hav done so. I use this Code for this: Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("pastebin link") Dim response As System.Net.HttpWebResponse = request.GetResponse() Dim sr … | |
I create application (Notepad) and finished too. Last thing i am missing. That whenever I open the application 'Adv. Notepad.exe' double click the exe file on desktop I open with my project file but when i try to open again at that time I just get focus to my main … | |
Hello, I need some help on my table report using php.. So this is my coding <?php while($row=mysql_fetch_array($result)) { echo "</td><td>"; echo $row['full_name']; echo "</td><td>"; echo $row['section']; echo "</td><td>"; echo $row['time']; echo "</td><td>"; echo $row['reason']; echo "</td></tr>"; } echo "</table>"; ?> so, this is what i need to do .... … | |
In this main class I used a **ListIterator** variable, **hasnext()** and **next()** method to print LIST memebers. I created litr variable of ListIterator, I performed some functions on the list i.e, sorting(ascending and descending) etc. I used the same litr variable and a while loop for outputing the list again … | |
i almost spent 3 hours on EXISTS operation, used in SQL especially with subqueries, i got its purpose :) that's ok but what i don't get is that WHY TO USE IT ? e.g. couldn't understand this example: *TABLE STORES* storeName----Sales-------Txn_date *TABLE GEOGRAPHY* regionName----storeName SELECT SUM(Sales) FROM Store_Information WHERE EXISTS … | |
write c++ code that has a function int GreaterThan (int array [], int size, int searchItem). The fucntion should count and return number of elements in the array greater than SearchItem. you are free to generate the element randomly or let the user enter them, the size must be less … | |
I have a method which does something. However to do the desired thing i must call the CreateGraphics method. I Created a new class (added a new class) and now inside my method i can t call this method. What am i missing? I can call the CreateGraphics method inside … | |
<?xml version="1.0" encoding="utf-8"?> <extension version="2.5" type="plugin" group="system"> <name>plg_system_log_teacher</name> <author>arti shrivas</author> <creationDate>nov 8 2013</creationDate> <license>GNU General Public License</license> <authorEmail>bradm@inmotionhosting.com</authorEmail> <authorUrl>http://www.inmotionhosting.com</authorUrl> <version>1.0</version> <description>simple system plugin.</description> <files> <filename plugin="log_teacher">log_teacher.php</filename> <filename>index.html</filename> </files> </extension> this is my plugin xml file <?php // no direct access defined('_JEXEC') or die; class plgSystemLog_Teacher extends JPlugin { public function … ![]() | |
I have hese two classes which are not in the same folder. Coffee.aspx.cs is in folder named Pages and the other class ConnectionClass.cs is in other folder named App_data can anybody help me to correct the code i ma having the errors see the code: i am getting these errors … ![]() | |
I wonder how the screen recorder and screen capture application capture the window screen.? As I know How to take Snapshot in this But the question is that their application were minimize/minimize to notify icons.... And by the one click: (F11) screen get capture... I tried this. Form1.hide() notifyicon1.show()... etc … | |
Hi I have a website which is ready to launch apart from one of the key request forms which is not working properly and I just can't understand why. I click 'submit' and the form stays on the screen. I get the following message: ***Warning: Invalid argument supplied for foreach() … | |
This is my html. When I put name and press ENTER , browser opening download box for report.php . I don't know how to fix that. I have Apache MySQL started. Windows 8. <form action="report.php" method="post"> <label for="Your Name">Your Name</label> <input type="text" id="firstname" name="firstname"><br> </form> this is report.php <?php $first_name … | |
I want to know how CLIPS works so I thought of taking problems already solved and see how they work. It's this problem which I don't know how to get it to work. The requirements say: Fires are classified according to the principal burning material. Translate the following information to … | |
i need a program to implement stock maintainance system using c++ |
The End.