5,346 Posted Topics
Re: Please read these articles: 1. [url]http://www.codeproject.com/KB/cs/EventyList.aspx[/url] 2. [url]http://damieng.com/blog/2006/06/14/observing_change_events_on_a_listt[/url] 3. [url]http://msdn.microsoft.com/en-us/library/dd783449.aspx[/url] | |
Re: Use TableLayoutPanel control. [code] private void Form1_Load(object sender, EventArgs e) { TableLayoutPanel tp = new TableLayoutPanel(); tp.AutoScroll = true; tp.ColumnCount = 2; tp.RowStyles.Add(new RowStyle(SizeType.AutoSize)); tp.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize )); tp.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize )); tp.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize )); TextBox tx1 = new TextBox(); TextBox tx2 = new TextBox(); Button bt1 = new Button() { Text … | |
Re: @Spacenoobie Welcome! Sorry, I'm not quite following the problem. Do you want to split that string? | |
Re: [code] Dim myArr() As String = ListBox1.Items.OfType(Of String)().ToArray() [/code] | |
Re: @Dheerajpro Welcome. I think some more information is required so that the best course of action can be taken. Please show us your code work. | |
Re: What have you done so far? Please post your code here and someone will help you. Do wrap your programming code blocks within [noparse][code]..[/code][/noparse] tags. | |
Re: Try to learn from this code snippet. [code] <?php $username = $_post ['username']; $password = $_post ['password']; if (isset($username,$password)) { $connect = mysql_connect ("localhost","root","webdesigning1") or die ("couldnt connect to mysql data base "); mysql_select_db("phplogin") or die("couldnt find db") ; $query = mysql_query("SELECT * FROM `users` WHERE `username`='$username' and `password`='$password'"); if($row … | |
Re: Try [URL="http://msdn.microsoft.com/en-us/library/ms187384.aspx"]SOUNDEX[/URL] and [URL="http://msdn.microsoft.com/en-us/library/ms188753.aspx"]DIFFERENCE[/URL]. | |
Re: >Dynamic buffer size for socket ? Take a look at [URL="http://stackoverflow.com/questions/2811006/what-is-a-good-buffer-size-for-socket-programming"]this[/URL] thread. | |
Re: Two ways to do so: 1. Use Office-InterOp library. 2. Use ADo.NET OleDB provider. | |
Re: My answer is [URL="http://msdn.microsoft.com/en-us/library/aa0416cz.aspx"]Optimistic Concurrency[/URL]. | |
Re: Advice: Use parameterized queries. [code] protected void Page_Load(object sender, EventArgs e) { if (Session["admin"] == null) { Response.Redirect("Default.aspx?msg=1"); } if (string.IsNullOrEmpty(Request.QueryString["id"]) && btn_addcategory.Text!="update") { SqlConnection conn = new SqlConnection(); conn.ConnectionString = helper.ConnectionString; string edit = Request.QueryString["id"]; SqlCommand cmd = new SqlCommand("select * from category where id=@id", conn); cmd.CommandType = CommandType.Text; … | |
Re: [code] Dim s As String = Environment.GetEnvironmentVariable("UserProfile") [/code] | |
Re: Warm welcome whatsername97. >is this possible to do? if so, i could really use the help. Of course, yes. If you're stuck post what you have and tell where you're stumped so people can direct you towards a solution. Please Read forum [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]rules and homework [URL="http://www.daniweb.com/forums/announcement61-2.html"]policy[/URL] here at Daniweb. | |
Re: Remove [B]else [/B]part. [code] ... foreach (DataRow myRow in ds1.Tables[0].Rows) { if (Convert.ToString(myRow[i]["u_name"]) == uname && Convert.ToString(myRow["u_pass"]) == upass) { return true; } i++; } return ... [/code] | |
Re: You have invalid [URL="http://www.connectionstrings.com/"]connection[/URL] string. | |
Re: [B]Pending[/B] is a column name then, [code] String query = "SELECT * FROM " + currentYearLbl.Text + " WHERE Pending='" + jobsPendingToolStripMenuItem + "'"; [/code] | |
Re: [code] $DOCUMENT_ROOT=$_SERVER['DOCUMENT_ROOT']; $root_file = "$DOCUMENT_ROOT"."mysite2/downbooks/"; $down_url = "$root_file.$book_name.pdf"; header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0") header("Content-Description: File Transfer"); header("Content-Type: application/pdf"); header("Content-disposition: attachment; filename=$book_name.pdf"); header("Content-Transfer-Encoding: binary"); header('Content-Length: ' . filesize($down_url)); @readfile($down_url); exit; [/code] | |
Re: Don't use [B]resolveExternal[/B] when xml document is constructed without exernal/internal DTD. Please post XML document here. | |
Re: Welcome ITATIES Take a look at links of tutorials 1. [url]http://www.devx.com/dotnet/Article/35649[/url] 2. [url]http://www.businessobjects.com/global/pdf/dev_zone/VS2005_Walkthroughs.pdf[/url] 3. [url]http://msdn.microsoft.com/en-us/library/ms227881(v=vs.80).aspx[/url] | |
Re: If your application saves login-info into database/file then you can easily retrieve this kind of result. | |
Re: Code to count words [code] Dim sLine As String = "This is teh sample text" Dim Count As Integer = sLine.Split(New String() {" ", ",", "?"}, StringSplitOptions.RemoveEmptyEntries).Count [/code] | |
Re: What have you done so far? Post your code here and someone will help you. Do wrap your programming code blocks within [noparse][code]..[/code][/noparse] tags. Read forum [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL] and homework [URL="http://www.daniweb.com/forums/announcement61-2.html"]policy[/URL] here at Daniweb. | |
Re: Take a look at [URL="http://www.webanddesigners.com/15-jquery-slideshow-and-plugins"]jQuery demo [/URL]about slide-show. | |
Re: If that file is XML document then use XML parsers. | |
Re: [QUOTE=Bijaya123;1418427]How can i copy from a treeview control to a text box or list box. Please help me soon.[/QUOTE] Want to give us the code you have so far and some further explanation? | |
Re: I'm big fan of [icode]Head First series[/icode] and loved to read [icode]Murach's book[/icode] but personaly I like [icode][b]C# Nutshell[/b] and [b]Accelerated C# book[/b].[/icode] | |
Re: Take a look at [URL="http://stackoverflow.com/questions/545173/sending-fax-with-net"]this [/URL]thread. | |
Re: Welcome @anki1986 If you can't design menubar via CSS then Google it please - Google is your friend. | |
Re: >type or namespace definition, or end-of-file expected in c# Error causes when a source code file does not have a matching set of braces. [code] using System; class Program { public static void Main(string[] args) { string[] colorList = new string[10]; colorList[0] = "sunday"; colorList[1] = "monday"; colorList[2] = "tuesday"; … | |
Re: Before commencing the journey to develop a project you must have a decent understanding of the .net framework, C# language and other technologies. So I'd rather suggest you dig deep into your mind to find concepts/ideas that you really find your natural interest in. | |
Re: >what I want to do in addition is to show a value in the combobox corresponding to the pds.Tables[1].Row. Do not bind "ComboBox". Add ListItems via [b]Add[/b] method. | |
Re: [b]>php's strtotime() alternate for C#[/b] Nope! But use the type [B][URL="http://msdn.microsoft.com/en-us/library/system.datetime.aspx"]DateTime[/URL][/B] and its method. | |
Re: Remove double quote " chars from the connection string database path. [code] Dim MyConnection As SqlConnection Dim SqlString As String = "INSERT INTO items_table (item) VALUES (@item)" Dim data_base As String = "Data Source=.\SQLEXPRESS;AttachDbFilename=C:\vb2008\Visual Studio 2008\Projects\morevariables\morevariables\App_Data\test_db.mdf;Integrated Security=True;User Instance=True" MyConnection = New SqlConnection(data_base) MyConnection.Open() Dim cmnd As SqlCommand = New SqlCommand(SqlString, … | |
Re: Steps: 1. Open VS2008 + File Menu + Project + VisualBasic + Console Application 2. Remove the content of Module1.vb 3. Copy+paste the code you just posted into the Module1.vb 4. Solution explorer + Right click on project name + Properties + Startup Object = Sub Main (choose Sub Main … | |
Re: Always use parameterized queries. Sample: [code] Dim cn As New MySqlConnection("Server=localhost;Database=testdb;Uid=root;Pwd=;") Dim cmd As New MySqlCommand cmd.CommandText = "update testTable set col1=?p1, col2=?p2 where col3=?p3" cmd.Connection = cn cmd.Parameters.AddWithValue("?p1", value1) cmd.Parameters.AddWithValue("?p2", value2) cmd.Parameters.AddWithValue("?p3", value3) cn.Open() cmd.ExecuteNonQuery() cn.Close() [/code] | |
Re: Urgent sounds unfriendly. Being rude is not the best type of first post. Read the rules, learn how to ask a question. Read forum [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]rules and homework [URL="http://www.daniweb.com/forums/announcement61-2.html"]policy[/URL] here at Daniweb. | |
Re: Why are you searching [URL="http://msdn.microsoft.com/en-us/library/aa140277(v=office.10).aspx"]rtf[/URL] [URL="http://en.wikipedia.org/wiki/Rich_Text_Format"]markup[/URL]? | |
Re: Cross forum [URL="http://www.dreamincode.net/forums/topic/202625-runtime-change-math-type-font-using-vbnet/"]question[/URL]. Take a look at - [url]http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/dbd70417-f623-4ddf-b9b0-78c9f1547243[/url] | |
Re: [code] FolderBrowserDialog fb = new FolderBrowserDialog(); DialogResult result = fb.ShowDialog(); if (result == DialogResult.OK) { string foldername = fb.SelectedPath; foreach (string f in Directory.GetFiles(foldername)) this.listBox1.Items.Add(f); } [/code] | |
Re: [code] Range a1 = ws.Cells[5, 2]; double rawValue; if(a1.Value == null) { rawValue = 0; } else { rawValue = double.Parse(a1.Value.ToString()); } ws.Cells[5, 2] = final + rawValue; [/code] | |
Re: You can do this by handle "KeyPress" event. For further reference read MSDN pages. | |
Re: >I want to join 2 strings, but it has been impossible. What is the size of buffer (length of buffer array)? [code] string str = System.Text.Encoding.UTF8.GetString(buffer,0,2) + "\\"; [/code] | |
Re: Control ID must be unique and use [b]FindControl[/b] Method to get reference of CheckBox control. | |
Re: [b]>How can I share the data loaded in main EXE across the DLLs?[/b] Via method arguments & return type. | |
Re: Can you maybe provide some more information about what it is you are trying to do? Choose static variables, if you are trying to share data. | |
Re: Read the [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL], learn how to ask a [URL="http://www.catb.org/~esr/faqs/smart-questions.html"]question[/URL]. | |
Re: Download the Providers for [URL="http://dev.mysql.com/downloads/connector/net/"]MySQL Connector/Net[/URL] and read [URL="http://dev.mysql.com/doc/refman/5.1/en/connector-net-tutorials.html"]tutorials[/URL]. | |
Re: Welcome @Patel44 >How to connect sql data base on asp.net page Take a look at : [url]http://www.connectionstrings.com/[/url] |
The End.