5,346 Posted Topics
Re: [code] da8 = new SqlDataAdapter("update c_item set item_quan =" + quan + "-" + quantity + " where item_name = '" + fname + "' and item_cat='1'", con); [/code] | |
Re: Take a look at Java Tutorial - [URL="http://download.oracle.com/javase/tutorial/2d/images/saveimage.html"]Writing/Saving an Image[/URL]. | |
Re: [b]>but don't know how to make it's EXE at my applications runtime.[/b] If you are running Visual studio then VS will do it for you. Please check out Bin\Debug or Bin\Release folder under your project folder. | |
Re: Right from the scratch, I guess there wasn't any problem. | |
Re: [b]>I know VB.Net But how I can create a new ASP.Net application[/b] File + New (New WebSite). PS: Purchase some good books of ASP.NET and also read MSDN online pages. | |
Re: @lal.ramesh Please read the rules before posting again, in particular the '[URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]keep it spam-fre[/URL]e'. If you hit 10 infraction points your account gets an automatic ban, so it is worth obeying the rules if you want to continue to benefit from DaniWeb help. PS: Please post well-formatted code on the … | |
Re: [b]>i use Running Total Field to sum (salary) but it not sum and it COUND, pls help me to solve. TKS[/b] You need to change "Type of Summary" value. Choose [B]sum[/B] (where this field must be numeric). | |
Re: Take a look at : [url]http://msdn.microsoft.com/en-us/library/Aa302415[/url] | |
Re: Few days ago I came across some threads entitled "Best practices/guidance for maintaining assembly version numbers." and "Best practices for assembly naming and versioning?" from stackoverflow where I found MSDN article - When to Change File/Assembly Versions. I hope this article and comments will help you. 1. [url]http://stackoverflow.com/questions/3768261/best-practices-guidance-for-maintaining-assembly-version-numbers[/url] 2. [url]http://stackoverflow.com/questions/310226/should-net-assembly-names-include-a-version-number[/url] … | |
Re: Please read the [URL="http://msdn.microsoft.com/en-us/library/fht0f5be.aspx"]String.Format[/URL] MSDN article. syntax: [code] {index[,length][:formatString]} [/code] | |
Re: Here is a great HTML-Parser API -[URL="http://htmlagilitypack.codeplex.com/"] Html Agility Pack.[/URL] | |
Re: I think you have to look at Thread usage,async calls and [URL="http://www.codeproject.com/KB/cs/globalhook.aspx"]keyboard hooks[/URL]. | |
Re: [b]>How to print a letter (BOLD and Italic) in C[/b] Use graphics lib. ([URL="http://www.gtk.org/"]GTK[/URL]). | |
Re: Welcome @samaniac. Please visit the [URL="http://www.daniweb.com/forums/thread70096.html"]sticky threads[/URL] - [B]c++ books[/B] and [B]C / C++ FAQ's and Practice problems[/B] of cplusplus board. | |
Re: [b]>I need to make a vb.net application that can download data from the gps logger . and to set its configuration parameters.[/b] So what is the problem? Please ask specific questions, don't ask people to do your work.If you're stuck post what you have and tell where you're stumped so … | |
Re: [code] Dim MySQL As String = "INSERT INTO [Contact Us] ([Name], [Company]) VALUES ('" & TextBox1.Text & "','" & TextBox4.Text & "')" [/code] | |
Re: Double thread - [url]http://www.daniweb.com/forums/thread327651.html[/url] Thread Locked. | |
Re: [QUOTE=paradox814;100601]I know it is possible to overload PHP functions as I have seen this done with many of the prebuilt functions. My question is how do you declare an overloaded function? Everytime I try doing this I always get some error about missing arguments (even if there exsist a function … | |
Re: You can use WebClient or WebRequest/WebResponse classes. Take a look at this [URL="http://stackoverflow.com/questions/930807/c-login-to-website-via-program"]thread[/URL]. | |
Re: It is a fairly basic programming exercise on Timer and progressbar. Please show us your code work. | |
Re: Take a look at this article - [url]http://www.codeproject.com/KB/cs/globalhook.aspx[/url] | |
Re: You need to select "dataTable" instance of DataSet. Use [B]Add[/B] method of DataTable's [B]Rows[/B] collection. | |
Re: Hi! @hardikwadhel, Welcome to the Daniweb. To develop a project you must have a decent understanding of C# language and the .net framework. Post here the work you have done so far for this assignment. Someone will help you with the places you are stuck. | |
Re: Which value you want to store? To store string/varchar then store the relevant data into memory variables and write them into database via ADO.NET API. [code] string result="No"; if(checkBox1.Checked) result="Yes"; ..... [/code] | |
Re: What kind of output are you expecting? Please read the rules before posting again - [url]http://www.daniweb.com/forums/thread78223.html[/url] and [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. | |
Re: Welcome nirmal111. Please create a new thread. If you have any questions please ask. You are welcome to start your own threads. | |
Re: Take a look at, [code] SqlDataAdapter adp = new SqlDataAdapter("select * from tableName", @"connection_str"); DataTable dt = new DataTable(); adp.Fill(dt); foreach (DataRow row in dt.Rows) { string key = row["pid"].ToString(); TreeNode[] tn = treeView1.Nodes.Find(key, true); if (tn.Length ==0) { treeView1.Nodes.Add(row["id"].ToString(), row["desc"].ToString()); } else { tn[0].Nodes.Add(row["id"].ToString(), row["desc"].ToString()); } } [/code] | |
Re: Use [B][URL="http://msdn.microsoft.com/en-us/library/system.runtime.serialization.iserializable.aspx"]Custom Serialization[/URL][/B]. With [b]basic serialization[/b], the versioning of objects may create problem. | |
Re: Use string.Join method. [code] string text = "Hello World"; string s=string.Join<char>(" ", text); Console.WriteLine(s); [/code] | |
Re: Please take a look at [URL="http://en.wikipedia.org/wiki/Shell_sort"]Shell sort algorithm[/URL] (pseudocode). | |
Re: [b]>password encryption[/b] You have to use/learn classes from System.Security.Cryptography namespace. | |
Re: [QUOTE=ciint;1394695]Why designers prefer div designing rather then table design ?[/QUOTE] Please take a look at [URL="http://stackoverflow.com/questions/83073/why-not-use-tables-for-layout-in-html"]this[/URL] thread. | |
Re: [b]>I want to show with the DataGridViewComboBoxColumn two fields from groups table . But i want only link field "articlenb" to column, but a want o show filed "Articlenb" and I want to show fields "groupnb" and "groupdef"[/b] It's possible I misunderstood - could you please clarify? | |
Re: [b]>an anybody help me out how to start and how to proceed.[/b] Tell us about the types of interaction you want to add in your project. | |
Re: Why not SELECT COUNT(*)? [code] ... command.CommandText = " SELECT count(*) FROM [A] WHERE [word]=@word" command.Parameters.AddWithValue("@word",TextBox1.Text) command.Connection = connection connection.Open() Dim count = command.ExecuteScalar() connection.Close() .... [/code] | |
Re: Use ADO.NET oledb provider to read [URL="http://stackoverflow.com/questions/15828/reading-excel-files-from-c"]Excel data[/URL]. | |
Re: Please check this out: [code] ... Dim index As Integer For index = 1 To RadioButtonList1.SelectedValue Dim newdiv As New HtmlGenericControl("div") Dim ht As New HtmlTable() ht.ID = "mytable" & index ht.Width = "100%" ht.CellSpacing = "0" ht.CellPadding = "0" ht.Border = 0 Dim htr, htr1 As New HtmlTableRow() Dim … | |
Re: I'm not sure but I think you want to show records into ListView control. [code] ... Dim Records As New List(Of Records) Dim rec As Records Dim counter As Integer = 0 Dim split() As String = IO.File.ReadAllLines("comiss.txt") Dim data() As String ListView1.Columns.Add("A1") ListView1.Columns.Add("A2") ListView1.Columns.Add("A3") ListView1.Columns.Add("A4") ListView1.View = View.Details For … | |
Re: Use hashing algorithms - MD5 or SHA1. Read MSDN [URL="http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.hashpasswordforstoringinconfigfile.aspx"]article[/URL] - FormsAuthentication.HashPasswordForStoringInConfigFile Method. | |
Re: Take a look at this sample. Sample.aspx [code] <form id="form1" runat="server"> <div> </div> </form> [/code] Sample.aspx.vb [code] Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim tx As New TextBox tx.ID = "txt1" form1.Controls.Add(tx) Dim bt As New Button bt.Text = "Submit" form1.Controls.Add(bt) AddHandler bt.Click, AddressOf … ![]() | |
Re: Line #19 (ReservationBook). Reservation isn't instantiated. Use [URL="http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf"]Generics[/URL] collection instead of arrays. | |
Re: Correct me if I'm wrong. I think you want to change the region of picture box. [code] System.Drawing.Drawing2D.GraphicsPath gp = new System.Drawing.Drawing2D.GraphicsPath(); gp.AddEllipse(1,1,pictureBox1.Width, pictureBox1.Height ); Region rg = new Region(gp); pictureBox1.Region = rg; [/code] | |
Re: Set the property TextBox1.Modifiers=Public on Form2. Form1 [code] ... private void button1_Click(object sender, EventArgs e) { Form2 f = new Form2(); f.ShowDialog(); treeView1.Nodes.Add(f.textBox1.Text); } ... [/code] Form2 [code] ... private void button1_Click(object sender, EventArgs e) { Close(); } ... [/code] | |
Re: Please close the ms-access database file/tool while running this page. | |
Re: This is the broader question. Please learn/use ADO.NET database integration class library of .net framework. | |
Re: [code] Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If Char.IsLetterOrDigit(e.KeyChar) Then e.Handled = False Else e.Handled = True End If End Sub [/code] | |
Re: There are number of ways(methods) to read/write XML document. [B]C#[/B] [U]Method:1 System.XML - DOM API[/U] [code=C#] string file=@"sample.xml"; System.Xml.XmlDocument doc = new System.Xml.XmlDocument(); doc.Load(file); //Iterate "Student" foreach (System.Xml.XmlElement student in doc.DocumentElement.ChildNodes) { foreach (System.Xml.XmlElement field in student.ChildNodes) { MessageBox.Show(field.Name + " : " + field.InnerText); } } [/code] [U]Method:2 System.XML.Linq … | |
Re: We only give homework help to those who [URL="http://www.daniweb.com/forums/announcement61-2.html"]show effort[/URL]. | |
Re: [b]>now i want to play video in other page by click on image which have hyperlink of video. so what to do?[/b] Set [B]target="_blank"[/B] attribute. [code] <a runat="server" target='_blank' href ='<%# Eval("video_url") %>'> [/code] |
The End.