5,346 Posted Topics
Re: Please have a look at this thread - [url]http://social.msdn.microsoft.com/Forums/en-US/vstswebtest/thread/0f143e24-65e7-4f44-8d64-a8f920f410af[/url] | |
Re: Don't generate commandbuilder object in each handler. [code] da = New OleDb.OleDbDataAdapter(sql, con) Dim cb As New OleDb.OleDbCommandBuilder(da) da.Fill(ds, "Premier") [/code] | |
Re: Please read this thread - [url]http://www.daniweb.com/forums/thread88469.html[/url] | |
Re: [b]>What's this control called in VB.NET? [/b] DataGridView. | |
Re: Have a look at these threads: 1. [url]http://www.daniweb.com/forums/thread119460.html[/url] 2. [url]http://www.daniweb.com/forums/thread198891.html[/url] | |
Re: Declare a field of type DataView in a form and assign a reference to it. [code] public class Form1 : Form Dim dv as DataView Sub SomeMethond_oR_Click_Event() dv=new dbUtilities().GetDataView("put_argument") End Sub End Class [/code] | |
Re: [b]>i want to edit records on datagrid,then update into access database! Please help me! [/b] You need to configure Connection, DataAdapter and Dataset objects. Please show us your code work. You might want to read [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]Daniweb [/URL]rules and homework policy ~[URL="http://www.daniweb.com/forums/announcement61-2.html"]We only give homework help to those who show effort[/URL]~ … | |
Re: [b]>I am looking for a C# grid component[/b] Think about DataGridView windows control. | |
Re: [b]>WHERE should I put the video? and how to set the source?[/b] Put video in root of the appplication and set property Copy to output Directory=Copy always from properties window. PS:To play, you need a Media player version 10.0 or higher. | |
Re: [b]>how can i read each value and and create a new csv with my functions for the new columns in the csv?[/b] 1. Use System.IO.File.ReadAllLines("file.csv") method to read all lines from the file. 2. [B]String.Split()[/B] method to split each line and store result into new file. | |
Re: [code] <asp:LinkButton ID="lkbName" runat="server" PostBackUrl='<%# Eval("pId","Product.aspx?pid={0}") %>' Text='<%# Eval("name") %>'> </asp:LinkButton> [/code] | |
Re: You can easily configure smtp server using WAT (WebSite Menu + ASP.NET Configuration). [code] ...... <system.net> <mailSettings> <smtp from="admin@abc.com"> <network host="127.0.0.1" password="aa" userName="aa" /> </smtp> </mailSettings> </system.net> [/code] | |
Re: I think [URL="http://msdn.microsoft.com/en-us/library/system.componentmodel.design.idesignerhost.aspx"]this [/URL]link might help you. | |
Re: Set obj.TopMost=true. [code] Form2 frm = new Form2(); frm.TopMost = true; frm.Show(); [/code] [code] Form2 frm = new Form2(); frm.Show(); frm.BringToFront(); [/code] | |
Re: Hi, Showing your code might help. This is not a right way to ask for help. You might want to read [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]Daniweb [/URL]rules and homework policy ~[URL="http://www.daniweb.com/forums/announcement61-2.html"]We only give homework help to those who show effort[/URL]~ if you run into problems and want to ask for help here. | |
Re: [b]>why i can coding only 128 bytes text?[/b] You must use a supported key length (128, 192, 256) appropriate for your algorithm of choice. Wiki reference: [url]http://en.wikipedia.org/wiki/Advanced_Encryption_Standard[/url] | |
Re: Have a look at this thread - [url]http://stackoverflow.com/questions/1398570/idesignerhost-designsurface-catching-mouse-move[/url] | |
Re: [b]>Dynamic Resizing of Form Elements Relative to Form Shape in C# [/b] You can use [B]Anchor[/B] and [B]Doc[/B] property. | |
Re: [b]>Can somebody help me to add a row directly to a datagridview without updating it.[/b] Show your code please. You might want to read [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]Daniweb [/URL]rules and homework policy ~[URL="http://www.daniweb.com/forums/announcement61-2.html"]We only give homework help to those who show effort[/URL]~ if you run into problems and want to ask for help … | |
Re: By passing integer index to the Rows collection you can select a row. A row is made up of Cells collection. [code] TextBox1.Text=GridView1.Rows[0].Cells[0].Text; [/code] | |
Re: [b]>After storing the data of a table or tables(join), how do we extract the name of that table/tables[/b] You could use regular expression. | |
Re: Have a look at - [url]http://www.musicdsp.org/archive.php?classid=3[/url] | |
Re: [b]>i want to update both tables[/b] Create two dataAdapters, and two commandBuilder objects. (Have you turn on/off Cascade update/delete Ms-Access feature?) [code] OleDbDataAdapter EmployeeAdapter = new OleDbDataAdapter("SELECT * FROM Employee", conn); OleDbCommandBuilder cb1=new OleDbCommandBuilder(EmployeeAdapter); OleDbDataAdapter BankingAdapter = new OleDbDataAdapter("SELECT * FROM BankingDetails", conn); OleDbCommandBuilder cb2=new OleDbCommandBuilder (BankingAdapter); EmployeeAdapter.Fill(ds, "Employee"); BankingAdapter.Fill(ds, … | |
Re: [b]>I have used xaml to define the canvas so that i can later add a map from Expression Design to it[/b] You have to create a Usercontrol. Have a look at msdn article - [url]http://msdn.microsoft.com/en-us/library/cc294992.aspx[/url] | |
Re: [b]>So what I want is that they are connected to each other. [/b] Please be more specific. I guess you have to use [B]and[/B] operator. [code] List<string> query = new List<string>(); if (txtSearch1.Text.Length != 0) query.Add("firstname like '" + txtSearch1.Text + "%'"); if (txtSearch2.Text.Length != 0) query.Add("middlename like '" + … | |
Re: Open a text file, read it line by line, split each line with ":" delimiter character. | |
Re: Have a look at - [url]http://mail.google.com/support/bin/answer.py?hl=en&answer=57143[/url] | |
Re: [b]>how I can use a combobox or checkbox to automatically add @gmail.com or @ live.com.[/b] You need to store both username and email into database and fetch corresponding email from the database when user input username. | |
Re: I would like to suggest you to use [URL="http://www.beansoftware.com/ASP.NET-Tutorials/Using-Crystal-Reports.aspx"]Push[/URL] model to design [URL="http://www.codeguru.com/csharp/.net/net_general/toolsand3rdparty/article.php/c13253"]crystal reports.[/URL] | |
Re: Have a look at this [URL="http://stackoverflow.com/questions/537998/register-silverlight-mime-types-in-iis-programmatically"]thread[/URL]. | |
Re: @compeng You cannot hijack another thread to ask your question but you have to start your own thread instead. Please do not resurrect old threads. Have a look at forum [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. Please read before posting - [url]http://www.daniweb.com/forums/thread78223.html[/url] Thread Closed. | |
Re: Press F5 key or Right click on Project DataSource/ADO.NET set and select Refresh. | |
Re: [b]>Stack over flow exception[/b] That Method is called again and again - recursively. | |
Re: The name of class should be: [B]System.Net.Sockets.TcpListener[/B] | |
Re: [URL="http://msdn.microsoft.com/en-us/library/ms173179%28VS.80%29.aspx"]lock[/URL] keyword. | |
Re: [b]>when i load pic as application it considers picture box empty[/b] Look at line #13 to #18. Unnecessary loop. [code] foreach (object s in o) { pictureBox1.Image= Image.FromFile(s.ToString()); if (pictureBox1.Image != null) .... [/code] [b]>i dont know how to access array indiviuial element if its length is growing according to … | |
Re: You need to configure dataAdapter object. Fill() method of dataadapter will retrieve data where as Update() method of dataadapter will write back changes to the database. | |
Re: [b]>What's the meaning of 1.0F in VB?[/b] [B]F[/B] - floating (single) point constant. The value 1.0 is considered as Double datatype. 1.0f - where suffix [B]f[/B] tells the compiler that the type of value is Single(float). | |
Re: Show us your code work please. You can insert/save JavaScript code if your code uses Parameters - SqlParameter. | |
Re: Don't use string concatenate to form a query. Use Parameters. [code] Dim SQLCon As New SqlServerCe.SqlCeConnection Dim SQLCom As New SqlServerCe.SqlCeCommand SQLCon = New SqlServerCe.SqlCeConnection("Data Source = BK.sdf") SQLCom.Connection = SQLCon SQLCom.CommandText = "INSERT INTO [Current Rentals](MemberID,DVDID,DaysonRent,DateRented,DueDate,TotalPrice,Overdue,DaysOverdue,OverduePrice) VALUES (@p1,@p2,@p3,@p4,@p5,@p6,@p7,@p8,@p9)" SqlCom.Parameters.Add("@p1", SqlDbType.Varchar, 4).Value=tbMemberid.text ...... ...... SqlCom.Parameters.Add("@p8", SqlDbType.Int, 4).Value=DBNull.Value SqlCom.Parameters.Add("@p9", SqlDbType.Int, 4).Value=DBNull.Value … | |
Re: [b]>used for a little note holder instead of a premade message box[/b] Yes, you can create custom dialog. | |
Re: Don't append "throws SQLException" [code] i1=st1.executeUpdate("insert into commissiondtls(CompanyCode,BranchCode,LineNo,PartnerCode,CustomerName,InvoiceNo,InvoiceDate,InvoiceAmount,ReceivedAmount,CommissionPer,CommissionPayable,PaymentRef,PaymentDate,InstrumentNo,InstrumentDate,BankName,BankBranch,CommissionPaid,Narration) values('"+CompanyCode+"','"+BranchCode+"','"+commissionDtlsmaxid+"','"+PartnerCode+"','"+CustomerName[i]+"','"+InvoiceNo[i]+"','"+InvoiceDate[i]+"','"+InvoiceAmount[i]+"','"+ReceivedAmount[i]+"','"+CommissionPer[i]+"','"+CommissionPayable[i]+"','"+Paymentno+"','"+Paymentdate+"','"+chequeOrDdNo+"','"+chequeDate+"','"+bankName+"','"+bankBranch+"','"+Amount+"','"+narration+"')"); [/code] I would suggest to use - [URL="http://java.sun.com/docs/books/tutorial/jdbc/basics/prepared.html"]PreparedStatement.[/URL] | |
Re: Welcome @LittleMeemz. Always wrap programming code within posts in CODE-tags. | |
Re: To view the current record, you have to open .sdf which is located under Bin\Debug folder. | |
Re: @shashwat_2010 Please do not resurrect old threads and have a look at forum [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. Please read before posting - [url]http://www.daniweb.com/forums/thread78223.html[/url] Thread Closed. | |
Re: To [B]timbomo[/B] Please read - [URL="http://www.daniweb.com/forums/announcement8-3.html"]How to use code tags?[/URL] before posting again. | |
Re: You have created two instances - each in separate form. [code] Class1 a = new Class1(); public Form1() { InitializeComponent(); } private void label1_Click(object sender, EventArgs e) { label1.Text =("hello"); a.Greeting = "hello"; } private void button1_Click(object sender, EventArgs e) { Form2 F2 = new Form2(); F2.PassRef(a); F2.Show(); } [/code] … | |
Re: [code] Dim Command As String Command = "ipconfig /all" Shell("cmd /k" & Command, 1, True) [/code] | |
Re: Thread will improve the performance of your app. [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; public class MainForm : Form { TextBox textBox1; Button buttonStart = new Button(); Button buttonExit = new Button(); StringBuilder stringbuilder; public MainForm() { InitializeComponent(); } … |
The End.