5,346 Posted Topics
Re: [b]>it gives no error but when i open my database table to see the inserted data it is not working.[/b] Connection string with [URL="orums/en-US/sqlce/thread/dc31ea59-5718-49b6-9f1f-7039da425296"]|DataDirectory|[/URL] will write any changes at database under the Bin\Debug. | |
Re: Read MSDN [URL="http://msdn.microsoft.com/en-us/library/2ab8kd75.aspx"]article[/URL] on - How to: Display Images in Cells of the Windows Forms DataGridView Control. | |
Re: This is a must read. I suggest you to read this article - [url]http://support.microsoft.com/kb/910443[/url] | |
Re: [b]>Is this "normal" or is there a way to prevent this?[/b] Text From MSDN - The CellFormatting event occurs every time each cell is painted, so you should avoid lengthy processing when handling this event. This event also occurs when the cell FormattedValue is retrieved or its GetFormattedValue method is … | |
Re: [b]>please I need to perform a silent download in visual studio 2008[/b] Don't use GUI. (Thread, WebRequest, IO classes). | |
Re: Try, [code] GridView1.DataSource = objDs.Tables[0]; GridView1.DataBind(); [/code] | |
Re: Take a look at CodeProject article - [url]http://www.codeproject.com/KB/office/BulkWordProtectionUtility.aspx[/url] | |
Re: [b]>Now I want to print the records individually on a separate page.[/b] Think about Microsoft Report or Crystal Report. | |
Re: [b]>can u help me do it in Visual basic 2008 express.[/b] Well. You have to use OleDB data-provider (ADO.NET) class to connect with MS-Access database to retrieve the result. | |
Re: I'm glad you got it helpful. If you want to ask question, start your own thread. Thread Closed. | |
Re: Set URL of opener window. [code] .... <head runat="server"> <title>Sample Page</title> <script type="text/javascript"> function CloseIt() { close(); window.opener.document.URL = "Default.aspx"; } </script> </head> <body> <form id="form1" runat="server"> <div> <input type="button" value="Close" onclick="CloseIt()" /> </div> </form> </body> </html> [/code] | |
Re: [b]>check to see if the computer is shuting down or logging off?[/b] Ping. | |
Re: [b]>how can i do that?[/b] Without effort: It is not possible. | |
Re: [b]>I am working on class project .i face difficulties on uploading images.[/b] Show your code please. | |
Re: [b]>Issue with date formats in OLEDB Excel Import[/b] Use [URL="http://msdn.microsoft.com/en-us/library/h9b85w22.aspx"]Date.TryParseExact[/URL] method. | |
Re: Controls (TextBoxes) are already been bound with datasource. Remove lines from code #69 to #79. | |
Re: [b]>Is there anyway to incorporate the spreadsheet into a VS 2008 VB project so that I can use the "Publish" facility to distribute updated versions of the spreadsheet from a web page[/b] Add spreadsheet document into your VB.NET project and set following properties of spreadsheet file. 1. Build Action=Content 2. … | |
Re: Have a look at [URL="http://www.codeproject.com/KB/aspnet/DataScraping.aspx"]codeproject[/URL] article. | |
Re: Take a look at [URL="http://sourceforge.net/search/?words=Project+management&type_of_search=soft&pmode=0&words=Project+management&search=Search&fq[]=trove%3A271"]sourceforge.net[/URL]. | |
Re: [b]>in case I do what should I look for in a provider to be able to use C# and SQL Server?[/b] Have a look at blog - [url]http://www.asp.net/%28S%28sf10gzjodvrpce55el2p5cnk%29%29/learn/hosting/tutorial-01-cs.aspx[/url] | |
Re: [b]> i want to be able to call a function from there to the array of individuals..how would i do that?[/b] Use generic. [code] using System; using System.Collections.Generic; class Program { static void Main(string[] args) { List<PersonInfo> a = new List<PersonInfo>(); a.Add(new PersonInfo()); a.Add(new PersonInfo()); a[0].setFirst_Name("Mr.A"); a[1].setCity("City1"); } } [/code] | |
Re: Have a look, [code] cmd = New OleDbCommand("UPDATE [Lani] SET [First Name] =@fname,[Middle Name] = @mname,[Last Name] = @lname,[Company Name] = @cname,[Lani Rs] =@rs, [Date] =@date WHERE [Sr No]=@srno", con) cmd.Parameters.AddWithValue("@fname", txtfirst.Text) cmd.Parameters.AddWithValue("@mname", txtmiddle.Text) cmd.Parameters.AddWithValue("@lname", txtlast.Text) cmd.Parameters.AddWithValue("@cname", txtcomp.Text) cmd.Parameters.AddWithValue("@rs", txtlani.Text) cmd.Parameters.AddWithValue("@date", DateTimePicker1.Value.Date) cmd.Parameters.AddWithValue("@srno", txtid.Text) ..... [/code] | |
Re: Have a look at this blog - [url]http://theclevermonkey.blogspot.com/2009/05/multi-touch-in-wpf-4-beta-1.html[/url] and an article - [url]http://www.codeproject.com/KB/WPF/MultiTouchRSS.aspx[/url] | |
Re: Use [b]&[/b] operator to concat string. [code] =IIF(IsNothing(Fields!Duration.Value) ,"Not released ",Int((Fields!Duration.Value/12)).ToString() & "Y " & (Int(Fields!Duration.Value) Mod 12).ToString() & "M") [/code] | |
Re: [b]>how can i call paint event inside of mouseclick event?[/b] You can handle all paint actions by getting/creating a reference of Graphics class. [code] Point oldp = new Point(); Point newp = new Point(); Graphics gc; private void Form1_MouseClick(object sender, MouseEventArgs e) { Graphics ps = this.CreateGraphics(); oldp.X = newp.X; … | |
Re: Use LINQ Skip() and Take(). [code] .. int[] p = ar.Skip(skip).Take(rnd).ToArray(); ... [/code] | |
Re: Turn off [b]Copy to Output Directory[/b] property of .mdf (database) file from the properties windows. Set Copy To Output Directory=Copy if newer. | |
Re: We don't have a source code. Please read forum rules before posting - [url]http://www.daniweb.com/forums/thread78223.html[/url] | |
Re: [b]>there are a few errors with in the code[/b] Please post the error. Use INSERT statement to add a record into a database. | |
Re: [b]>the problem is with computers that don't have visual installed.[/b] Microsoft Office Outlook 2007 add-in on a computer requires the installation of many prerequisites 1. Microsoft .NET Framework version 2.0/3.0/3.5. 2. Microsoft Visual Studio 2005/2008 Tools for Office runtime. 3. Microsoft Office 2007 primary interop assembly. | |
Re: [b]>How to install these services to our web site ?[/b] If you get a virtual/dedicated server you can do anything you want. With dedicated you can even put whatever OS you want on the machine. If you don't have dedicated service then go for subversion/mantis hosting plan. Have a look … | |
Re: [b]>Merging data from xml file to another[/b] Use Merge method of DataSet class. [code] DataSet ds1 = new DataSet(); DataSet ds2 = new DataSet(); ds1.ReadXml(@"c:\file1.xml"); ds2.ReadXml(@"c:\file2.xml"); ds1.Merge(ds2); ds1.WriteXml(@"c:\file3.xml"); [/code] | |
Re: Please read these two articles: 1. [url]http://msdn.microsoft.com/en-us/magazine/cc164123.aspx[/url] 2. [url]http://msdn.microsoft.com/en-us/library/aa645736%28VS.71%29.aspx[/url] | |
Re: Use [URL="http://www.codeproject.com/KB/database/databindingconcepts.aspx"]DataBindings[/URL] technique. Take a look, [code] Public Class Stock_Control Dim dbConnection As OleDbConnection Dim dbcommand As OleDbCommand Dim dbdataAdapter As OleDbDataAdapter Dim connectstring As String = "Provider = Microsoft.Jet.OLEDB.4.0;" & "data source = COMP4.mdb" Dim dtStockControl As DataTable Dim inc As Integer Dim MaxRows As Integer Private Sub Stock_Control_Load(ByVal … | |
Re: [b]>How to do compile all of your files into one .exe[/b] [URL="http://msdn.microsoft.com/en-us/library/6t3612sk.aspx"]Resource [/URL]files. | |
Re: [b]>I was wondering how can I save my form's contents to a database?[/b] Read/Learn/Implement - [URL="http://msdn.microsoft.com/en-us/library/h43ks021%28VS.71%29.aspx"]ADO.NET[/URL] [b]>how do I export it to an excel file?[/b] There are number of ways but I'd suggest Microsoft Report. | |
Re: [b]>How do i save a query from datagridview back to the database table?[/b] The answer is - DataAdapter and relational class (DataSet/DataTable). | |
Re: [b]>when i click the button it says 'There is no row at position 0' on the [/b] Make sure that COMP4DataSet.Tables("Stock Control") table is not empty. [code] IF COMP4DataSet.Tables("Stock Control").Rows.Count<>0 Then .... End If [/code] | |
Re: [b]>Trying to write data to Excel[/b] The easiest way is OleDB. [code] System.Data.OleDb.OleDbConnection cn = new System.Data.OleDb.OleDbConnection( @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\file.xls;Extended Properties=Excel 8.0;"); cn.Open(); System.Data.OleDb.OleDbCommand cmd = new System.Data.OleDb.OleDbCommand(); cmd.Connection = cn; cmd.CommandText = "Insert into Sheet1 (A1,B1) values (10,'Foo')"; cmd.ExecuteNonQuery(); cn.Close(); [/code] | |
Re: Have a look at codeproject article - [url]http://www.codeproject.com/KB/cpp/GetLocalVersionInfos.aspx[/url] | |
Re: [b]>how Console app acts as a DOS shell.[/b] Show us your code work please. Please read before posting - [url]http://www.daniweb.com/forums/thread78223.html[/url] and [url]http://www.daniweb.com/forums/faq.php?faq=daniweb_policies[/url] | |
Re: [code] Dim str = "the bird fly away" str=str.Replace("fly", "fly1").Replace("the", "fly").Replace("fly1", "the") [/code] | |
Re: [b]>Syntax error in INSERT INTO statement.[/b] Remove blanks/space between MS-Access columns. [b]>Deleted row information cannot be accessed through the row.[/b] [code] .. da.Update(ds, "SuperTronicsWorld") Navigaterecords() .. [/code] | |
Re: [b]>Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound[/b] Add data into dgvBill's DataSource. For example, I presume that you have a [b]myDataSet[/b] dataSource which was bound with dgvBill datagridview control. [code] myDataSet["yourTableName"].Rows.Add(colVal1,ColVal2,...) [/code] | |
Re: [b]>the last line give "out of memory " error.[/b] Image file has invalid file-format. | |
Re: [b]>Exception has been thrown by the target of an invocation.[/b] First of all check for an inner exception. | |
Re: It was a bug and fixed in MySQL Connector/NET 5.2.0. | |
Re: [b]>Listview size [/b] I'm not quite following the problem. My understanding from your description is that you want to set height & width of listview control. | |
Re: Redirect method. [code] Response.Redirect("uri") [/code] | |
Re: [b]>I want that you people give me suggestions in order to make this project perfect...[/b] Follow the [URL="http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller#Implementations_of_MVC_as_GUI_frameworks"]MVC.[/URL] |
The End.