Click here to Skip to main content
Page 1 of 8,817
Page Size: 10 · 25 · 50


Category filtered by:  General Programming [x]
Question 14 May 2013   license: CPOL
I want deploy application on the server side, and client side but i dont know how install the server component on server and component Client on computers client , I like architecture Client server , view and view model and business logic and model on Client side and than install business logic...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
No, the keyword delegate and System.Delegate are not the same at all.You could be confused with the C# alias keywords. For example "int" is an alias for System.Int32. For delegates, this is not the case.Read the documentation on these type and look through all the cases of using the...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
Hello, I have a very important project, which is a monitor in the computer operationsThe project is: show if the window has been opened a new operation.I used this code in formLoad event: For Each p In Process.GetProcesses old_list.Items.Add (p.ProcessName) ...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
I found one easy code :)var client = new SmtpClient("smtp.gmail.com", 587); client.EnableSsl = true; client.Credentials = new NetworkCredential("jpbritopoker@gmail.com", "**********"); var mail = new MailMessage(); mail.From = new...
General Programming » Uncategorised Quick Answers » General
C#
Answer 14 May 2013   license: CPOL
For the server-side programming such as ASP.NET, prefer using Open XML SDK instead of Office Interop. Look at this Microsoft article:http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2[^].Use Open XML SDK:...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
The best idea so far is the Solution 4.The right solution for System.Windows.Forms is: create a custom control which behaves like a button and implement rotation property. If you want to rotate to an arbitrary angle, you should also set the property...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
Suppose the .mdf and .ldf are specifically the AdventureWorks2008R2:EXEC sp_attach_db @dbname = N'AdventureWorks2008R2', @filename1 = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Data\AdventureWorks2008R2_Data.mdf', @filename2 = N'C:\Program...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package neethu;/** * * @author neethu *///I'm trying to send an email using Java:import java.util.*;import javax.mail.*;import javax.mail.internet.*;import...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
Hi,I am using the database connectivity Using an Entity data model.Error: Data source is an invalid type. It must be either an IListSource, IEnumerable, or IDataSource.What can in replace with gvNewsGroup.datasource?NewsGroup newsgroup = new NewsGroup() {...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
if you are searching for .exe it is in your project YourProjectName\bin\Debug...bt if u want to create a Instaler package this will help youhttp://balanagaraj.wordpress.com/2007/05/29/create-exe-or-setup-file-in-net-windows-application/[^]
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
Intellisense for C++/CLI does not work on VS2010. I believe it is working in VS2012 though, so you might want to upgrade to that if you can.
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
Have a look at below links.http://forums.asp.net/t/1056508.aspx/1http://stackoverflow.com/questions/8270464/best-way-to-call-a-json-webservice-from-a-net-consoleAnd many more on Google.
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
You can't send a DataGridView to an email, any more than you could send a Button, and expect it to signal an event on your system when it was pressed. Suppose you could, and the remote system did not have .NET installed? What would happen then?Instead, set the mail body to HTML (use...
General Programming » Uncategorised Quick Answers » General
C#
Question 14 May 2013   license: CPOL
I have been trying to figure this out for a while now. I have been able to find sample code for console application to post data but i'm completely new to web services. I have a console app that does some calculations and i would like to then send those calculations to a web service. Could some...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
Hi all , i made a code that i can send an email to gmail.com with c# and it is working very well.Now i want to put my datagridview1 in the email body and send it.Somone can show me how i can do that?I searched a lot but i only found useless information and asp.net codes.Here is my...
General Programming » Uncategorised Quick Answers » General
C#
Question 14 May 2013   license: CPOL
Hi All,1. I am new to Managed C++, In my program, based on C++, In case I need to make a transition to Managed C++ and use the equivalent constructs.Eg., System::String ^ ptr = gcnew ("C:\Dir1\abc.txt"); // SomeClass ObjSomeClass should consume the...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
Dear All Experts, I am trying to fix one bug from 2 days. But unable to fix it. My application's work is to edit one word file and saving that in server.but i am getting one exception after hosting. The exception message is given below:- Retrieving the COM class factory for...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
I have created an application using Visual Studio 2008 c#, mysql. the database is exiting in xampp serverif you know how to do it then please help me.so please can you anwserme how can i create deploy my project for will be installing with your local database in various PC...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
Conaito offers a solid PowerPoint-to-Html5 SDK. Works amazing. link: powerpoint to html sdk
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
i have a webpart that i would make that the webpart follows the windows on the right site, so if i scroll down on the page the webpart are following the the screen and scroll??.. I want this because when a user in my first webpart updates something i want him to se in the other webpart what he...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
If My.computer.filesystem.FileExists ("Your Virus") thenMsgbox "Virus Found"ElseMsgbox "Virus Isn't Found"End ifend sub
General Programming » Programming Tips » General
Answer 14 May 2013   license: CPOL
As mentioned in Solution-1 use txtamt_words.Text.You are using inline query and passing your Input/TextBox values into it. This is a potential risk of SQL Injection.Have a look at below links to uderstand SQL...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
Table A -------- Mid orgID1 1 2 23 24 4Table B---------id Mid MemberID 1 1 2 2 1 3 3 1 4 4 2 1 5 2 3 6 2 4 7 4 2 8 4 3In above case orgId and MemberID is same in Table BIf I have orgID=1.I need...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
private void btn_Delete_Click(object sender, EventArgs e) { if (txt_mobile_no.Text == "") { DialogResult Case = MessageBox.Show(".رقم الجوال فارغة", "سجل فارغ", MessageBoxButtons.OK, MessageBoxIcon.Error); } ...
General Programming » Uncategorised Quick Answers » General
C#
Answer 14 May 2013   license: CPOL
You appear to have no value at all in eid, so the string just evaluates to:DELETE emp.*, emplogin.* FROM tbl_employee_details as [emp] LEFT JOIN tbl_user_login_access as [emplogin] ON emp.emp_id = emplogin.emp_id where emp.emp_id =SQL quite rightly throws a hissy fit and complains.Check...
General Programming » Uncategorised Quick Answers » General
C#
Question 14 May 2013   license: CPOL
Hi I have another requirement like this i have the data like301 1 june301 2 june301 5 june301 7 june301 10 june301 2 july301 3 july301 5 july301 8 july301 9 july303 5 june303 6 june303 8 june303 9 june303 2 july303 4 july303 8 july303 10 july In...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
you forgot to use the text property on txtamt_words, use this instead "txtamt_words.Text"
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
below i write my sql query "Insert into tblpayfee(regno,sname,lastname,course,sem,date,fee_amt,paid_amt,remain_amt,fine,tot_amt,amt_words)values('" + txtregno.Text + "','" + txtname.Text + "','" + txtlastname.Text + "','" + txtcourse.Text + "','" + DropDownList2.SelectedItem.ToString() +...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
The solution ended up looking like this:EventListModel modelEvent;AccessListModel modelAccess;modelEvent = new EventListModel { Id = 0, ...}modelAccess = new AccessListModel { Id = 0, ...}var modelFull = new EventFullModel { EventsList = modelEvent, ...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
You need to do it in the same way as previous:DECLARE @tdata TABLE (grp INT, val INT, mth NVARCHAR(30))DECLARE @dtmp TABLE (grp INT, val INT, mth NVARCHAR(30))INSERT INTO @tdata (grp, val, mth)VALUES(301, 1, 'june')INSERT INTO @tdata (grp, val, mth)VALUES(301, 2, 'june')INSERT...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
I never tried AForge.NET DesiredFrameSize, but I don't think it can possibly set any size you may wish. The cameras usually have some set of predefined modes, and some modes have different frame size. If your requested size is supported by one of the available modes, it will work, if not — it...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
I think what you are asking is to show a message box multiple times without clicking a button for each showing. A possible solution would be to use a timer that is started when you click the button then when the timer elapses, show the message box.See...
General Programming » Uncategorised Quick Answers » General
C#
Answer 14 May 2013   license: CPOL
just made some changes in mt regex and it works(?:\b)([0-9]{0,}[.][0-9]{2})(?=TTL)
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
i just made some changes in my regex and it works(?:\b)([0-9]{0,}[.][0-9]{2})(?=TTL)
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
There is nothing to prevent. Anyone can upload anything, including some code which would try to hack your site. So what? You should never execute any code, even anything which is harmless. I can imagine that you should show some uploaded content, including, for example, HTML, and HTML would mean...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
I have a div that I want to print it. I use css to print that specific div and it is right when i use it in windows seven.But when i use it in windows xp, my settings are ruined. I do not know whats the problem with windows xp?This is the code for print...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
private void formloaddata() { SqlDataReader read SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString01"].ConnectionString);conn.open //Open your Connection string strquery = "Select...
General Programming » Uncategorised Quick Answers » General
C#
Answer 14 May 2013   license: CPOL
Hi,the worst case is to use a type casting. In this case you have to be very carefull about the data types and the conversion that you use, because of possible corruption of the value.Much better sollution would be to modify the function/method, so that it will return the HWND in an...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
Good Day,I have created a web form for sumbmiting data to the database and it is working with no errors. It diplays on a griedviewnow i have decided to add an update button. but i dont know where to start with my updating satatement. can you please help me on how to write an update...
General Programming » Uncategorised Quick Answers » General
C#
Answer 14 May 2013   license: CPOL
jw player and flowpalyer both have lot of features and plugins ...done with help of flow player .which has plugin crrentpos which gives the current time line position ..fell free if any buddy have any query about video,rtmp,hls,jwplayer,flowplayer,rtsp,ffmpeg.please let me know ...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
http://www.youtube.com/watch?v=eUUPSddLi0A
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
Im a bit at lossThis is what I want to do:1. Open a transaction2. Read 1 Row and locking it from further reads, but allowing reading other records on the same table3. Update a value on it4. Do some stuff with the data while still holding the transaction open5. If everthing was ok:...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
try thisstring xmlval = "asdfsadfsadf"; string descriptval = xmlval.Substring(xmlval.LastIndexOf("")); string findfrom = ""; string findto = ""; int start = descriptval.IndexOf(findfrom); ...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
You need to add Launch Conditions to your setup. See How to install Mysql.Data Connector with C# setup[^] for some links on adding launch conditions. I've used that link specifically because it also tells you how to silently install the MySql database setup - you're going to have to ensure...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
Please how can I get the right LPITEMIDLIST to use for IShellLink::SetIDList?I triedHRESULT hr = S_OK;ULONG celtFetched;LPITEMIDLIST pidlItems = NULL;LPITEMIDLIST netItemIdLst = NULL;IShellFolder* pPrinterFolder = NULL;IEnumIDList* pEnumIds = NULL;IMalloc* pMalloc =...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
thanks lukeer for your great solution
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
I finished from the project, but I faced another problem !!It show a message:" Unhandled exception has occurred in your application.... etc"It seem that the program didn't find a file ?!!
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
check this http://www.youtube.com/watch?v=eUUPSddLi0A[^]
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
done with the help of rtmpdump ...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
Hi all,I have one application which is called as auto click event by the help of C# windows application.My doubts are:I have a button and when I click it, it is showing a message box like "hi" which is mentioned by the below code.What I want to do is I need to click one time on...
General Programming » Uncategorised Quick Answers » General
C#

Page 1 of 8,817
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web02 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid