64,152 Solved Topics
Remove Filter ![]() | |
after saving a image in a folder at runtime how to get its height and width in asp.net. i am writing this code: string filesavepath = AppDomain.CurrentDomain.BaseDirectory + "\\admin\\fullimages\\"; System.Drawing.Imagefullsizeimg=System.Drawing.Image.FromFile("AppDomain.CurrentDomain.BaseDirectory" + filesavepath ); this code gives me following error: System.NotSupportedException: The given path's format is not supported. i m not … | |
Hi all, I am about to upgrade my VS2005 system to VS2010. (My OS is Windows XP SP3) I would like to know if there is anything that I should do before upgrading that will make the process a little easier? Also, what problems will I have with my existing … | |
Hello everyone, I have tried the code for start and stop time and been successful in doing so.Now I am trying to compare values of start and stop time as shown below in the code. I have used two masked txtbox. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using … | |
Hi guys, I have a problem. When i want to logged out from the system or close an account etc i want to display this message.[B] " Are you sure you want to logged or something like" and "Yes and " No" buttons[/B] are there. How this can be achieved?? … | |
Hi all, I have a form contains customer details. The text fields are filled with data values, which retrieve from the database ([B]customer table[/B]). There is a [B]button [/B]below the form called "[B]Modify[/B]". If user clicks on this button the user should be able to modify the details if he … | |
Hi guys, I want to search customer details based on National ID. The customer table is related to this.The structure of the table looks like this. customer(customer_id, nic, full_name, name_with_initials, address, contact_number, gender) customer_id is the primary key of the table. When the user types the National Id (nic) of … | |
Hi, My transaction table looks like this.It includes following fields. [B]tran_ID,account_type,account_number,transaction_type,amount,Date[/B] The records regarding each transaction is stored in this table. I want to know how i [B]retrieve the data[/B] from this table into another form or table.The coding is what i want... My actual purpose would be to allow … | |
Hi guys, In my projects i handle cash transactions. Whenever user enters transaction details it stored in the transaction_table. This is my 5 tables relevant to this. transaction_table(tran_ID,account_number,account_type,transaction_type,amount) savings_investment(ID,account_type,full_name,balance,interest,customer_id) shakthi(ID,account_type,full_name,balance,interest,customer_id) surathal(ID,account_type,full_name,balance,interest,customer_id) abhimani_plus(ID,account_type,full_name,balance,interest,customer_id) If the user enters wrong amount, the supervisor of my system wants to correct it immediately. so far … | |
Hello all, I am getting the following linker error when I try to pass an object of type "string" to a function. Otherwise, the code compiles correctly. exercise_3.10.obj : error LNK2019: unresolved external symbol "void __cdecl reshuffle(unsigned int,unsigned int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?reshuffle@@YAXIIV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main Here is … | |
Hi all, I am new to C#,i just need your help in figuring out the issues. I have two windows forms :"background form " and "foreground form". 1)minimise the background form when foreground form is minimised. 2)move the "background form" when "foreground form is moved" Please tell me how to … | |
hi... what we need to send sms from pc to mobile and how using java?? plz help me if you can thx | |
I use Visual Basic 2008 + MySQL Database I have create a textbox1.text MySQL Table [COLOR="Green"]Test[/COLOR] with Two Columns: Column Name DataType RecordID INT(11) Money Decimal(10,2) [CODE] TextBox1.Text = "€ 22,07" [/CODE] I want the [COLOR="green"]contents[/COLOR] of field [COLOR="Green"]textbox1.txt [/COLOR]save it into [COLOR="green"]money[/COLOR] in the column of the [COLOR="Green"]Test[/COLOR] table! … | |
hi, How to code, if let say i want only 10 records to inserted in listview. By mean listview only can accept 10 records. please guide thank you | |
![]() | Hi all, I got this Error Message while I try to preview the records in Dataset Designer: "The connection string could not be found or Data provider associated with the connection string could not be loaded" Here is my dataset.xsd code [CODE] <Connections> <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="loginConnectionString1" IsAppSettingsProperty="true" Modifier="Assembly" Name="loginConnectionString1 (MySettings)" … |
Right so I have a pretty simple code that draws the contents of a 2D array onto a panel and the panel is placed onto a frame. The array is of type String and just houses a number of different fruit. The problem is that when the contents is painted … | |
Im trying to create an object of my CAMERA class in my APP class, but I am getting the error: error C2146: syntax error : missing ';' before identifier 'myCam' error C4430: missing type specifier - int assumed. Note: C++ does not support default-int error C4430: missing type specifier - … | |
Hey just started working with inheritance in my java class, my account class compiles fine, but i get a .class expected error when i try to compile the CheckingAccount class, can anyone tell me why? thx [CODE] package bank; abstract class Account { public Account(int accountNumber, String accountOwner) { number … | |
Hello! I have a problem with filtering JTable (AbstractTableModel)... So, this is my code: [CODE] //Create table and filter public TableRowSorter<MyTableModel> sorter; public static MyTableModel tableModel; ... //Define table and fill it with List "userDataList" List<UserDataRow> userDataList = readuserdatafromfile(); filetree.Form.tableDetails = new JTable(); tableModel = new MyTableModel( userDataList ); filetree.Form.tableDetails.setModel(tableModel); … | |
Greetings, I have table CUSTOMER: [CODE] mysql> describe CUSTOMER; +---------------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------------+--------------+------+-----+---------+-------+ | CUSTOMER_NUM | char(3) | NO | PRI | NULL | | | CUSTOMER_NAME | char(35) | NO | | NULL | | | STREET | … | |
I was just wondering how to pass two objects s1 and s2, both of which have to arguments, to a function, someFunction(). I actually only want to pass the second argument of each object for s1 and s2 to the same function, compare the two arguments and then display some … | |
I'm currently learning Python, and at the moment I'm writing a simple grocery list program. At one point in the program, the user is asked how many items are on their shopping list. What I want to do is take the number that the user inputs (lets say it's 5), … | |
I wonder if someone can point me toward some native functions to help me locate the physical co-ordinates of a flash object on a webpage. Its not static and depends whether there are advertisements on the page and other user specific options. Unfortunately I have no code yet as I'm … | |
Hello! I was making simple programm for word search, but found an error I can't explain. This code piece of code that causes it is: if (word==search){ printf("\n %i %s ", i, word); i++; } I can only suppose that the compiler(visual studio express) dosn't support such comparisions of sth … | |
how to print the below triangle without using arrays a a b a e i a b c d a e i o u | |
Hello. I know this is lame questinon but what is multi-if syntax? Like this: [CODE]if (a == 0) doSometihng(); if (a == 1) doSomething(); else doElse();[/CODE] Or like this: [CODE]if (a == 0) doSometihng(); else if (a == 1) doSomething(); else if (a == 2) doSomething(); else doElse();[/CODE] I'm useing … | |
I have program in VB.NET 2008 where I want to update the premamt cell value in the tblPrem Access table, where the premno is the maximum (autogenerated as 1,2,3...), but only within a specified set of common numbers in a column (contno) I am currently saving. This contno is from … | |
Hi folks, I have a mathematic Vector3 class that looks like [CODE] class Vector3 { public: union { struct { float x; float y; float z; // btw, if declared like // float x, y, z; // will there be a difference in packing order? }; float v[3]; }; // … | |
I am writing a program that duplicates the command: [CODE]grep -cr Thread nachos/ | sort -t : +1.0 -2.0 --numeric --reverse | head --lines=5 [/CODE] My code: [CODE] #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <sys/wait.h> #define R_FILE "/proc/meminfo" #define GREP_EXEC "/bin/grep" #define SORT_EXEC "/bin/sort" #define … | |
I am creating buttons in a table programmatically and the click event has stopped working. I must have done something earlier in the page, as it used to work. Any suggestions as to where I might look would be much appreciated. The buttons are built into a table row, one … | |
Hi.. I got a problem with the date and time in php.. This is the story. [B]1)[/B]I want to get the date and time automatically whenever a person write onto the field that i have made(eg. the blogpost field). [B]2)[/B]Then,after i stored it into the database, i want to output … | |
I need help with a dynamic link on my web page. This is a site where accommodation establishments register their details and upload a photo. Here is the problem I have: I have a page listing all users (user_list.php) where I retrieve details (acc_name, address, photo) of registered users from … | |
You need to submit printouts for question 4c only. We want to display one of the following blocks on the screen, using the same program: [code] *************************** ************************ * * * * * * * * * * * * * * * *************************** * * * * * * … | |
i want to print number after decimal point.Is there any way to do it e.g This is a decimal number 6.28 and i want to print .28.can any help me out with a simple example | |
.hi guys! good day to all, i am currently developing a library system as one of my school projects using Visual Studio C# 2008 and SQL Server 2008. however there are several problems i have encountered. 1st: How to retrieve the value of an auto-incremented field. 2nd: How to use … | |
From my home directory, I created a directory [B]pkg[/B] and wrote 2 files [B]A.java[/B] and [B]B.java[/B] in it. [B]A.java[/B] [CODE]package pkg; class A { B b; }[/CODE] [B]B.java[/B] [CODE]package pkg; class B { }[/CODE] I went back to my home directory and typed the following : [CODE]javac -classpath . /pkg/A.java[/CODE] … | |
Hi all, I was reading Vijaya Mukhi's The 'C' Odyssey UNIX - The Open-Boundless C (1st ed.). This is in reference to program 43 in the first chapter when file buffering is introduced. [CODE]#include <stdio.h> int main() { FILE *fp; char buff[11]; int pid; fp=fopen("baby1","r"); pid=fork(); if(!pid) { printf("initial file … | |
hi, i have read around and all i seem to find is one and in the where clause along with an OR or either but i was wondering if it was fine to use 2 or maybe 3 AND in the where clause? most of my where clauses in past … | |
hello friend i have a text file name url.txt contain lots of url, one url in a line. now i want to get the content of each an every page which are open on the basis of those urls, here is my code: [ICODE] using System; using System.IO; using System.Net; … | |
Can anyone tell me how or what's the JavaScript code to perform the following: 1. I have two frames on my web page. (Top and Bottom) 2. Top Frame is data 3. Bottom Frame are some Controls. (Print button, Back Button, Close Button.) 4. I'm using VB.Net creating aspx pages. … | |
Hi.. now i'm working with asp.net c#.. i want to view the data from database in the textbox in order to make editing to the data is avaiable..but i'm using user stored procedure.. now this is my code where i want to display the data.. [CODE] <tr> <td class="style1">Company Code … | |
Hi, I'm not sure what this code does. [CODE]int total(int value1, int value2) { int sum; sum = value1 + value2; return sum; }[/CODE] This method should take in 2 values and calculate the sum and return it. But I don't understand where it returns it to? In my main … | |
Hey, I'm trying to figure out how pointers and C String work together I know the basics about pointer arithmetic but I am having trouble implementing it in my program. I am having a problem at the for loop. [code=CPLUSPLUS]/* Trying to print a string from an offst using pointer … | |
Hi, I am using ubuntu linux system.In that I am unable to use strrev() function for reversing a string.Is there any library function in linux equivalent to strrev(). Thanks in advance. | |
Hi i download Android 2.2 SDK and install nbandroid plugin on netbeans. when i run project i get this message on netbeans out put and emulator did not start !!! [QUOTE]init: deps-jar: Compiling 1 source file to C:\Users\mahdi\Documents\NetBeansProjects\Hello Android\build\classes compile: =C:\Users\mahdi\Documents\NetBeansProjects\Hello was unexpected at this time. C:\Users\mahdi\Documents\NetBeansProjects\Hello Android\nbproject\build-impl.xml:411: exec returned: … | |
Hi I am developing a program that uses Breadth First Search to map a grid(2d array) out. Breadth First Search involves storing nodes in a stack and then exploring these nodes based on Breadth or level. I know how to create a vector array which I shall use as a … | |
Is it possible to get system utilization information in pl/sql? are there any routines to get them? | |
im using eclipse helios and i seem to not have the .scanner function, can someone please help | |
Suppose you have a node declared like this:[code] struct node { int data; node * next; };[/code] and a list class declared like this:[code] struct myList { node * head; node * tail; int numNodesInList; //member functions etc, but no other member variables. };[/code] Then what is the size of … | |
Hey guys, i'm just starting in VB and am experimenting with programs. I'm trying to make a simple program that when you type in your name and phone number it displays it in a label. So i have everything good up until getting the info from the box to the … | |
Trying to get a program to fine the slope and intercept of a line on a graph.... I've got it all working so far...except the last line. I broke it down into pieces and ran it assigning numbers to the variables, but in the program, it doesn't work. Here is … |
The End.