5,346 Posted Topics
Re: Variables which are declared outside the methods and not [icode]marked with static modifier[/icode] are [b]instance[/b] variables (fields). Local variables are such variables, which are declared inside the method body or inside the block within the method. In fact, instance variables constitute the object (real world object). For example, The class … | |
Re: Error says that Appendtext is a method not a property. [code] log.AppendText(clientLoaded) [/code] | |
Re: ArrayList is an ordered collection of objects so last element must be [B]Count-1.[/B] [code] ArrayList a = new ArrayList() { 11,22,33,44,55,77 }; object last=a[a.Count - 1]; List<int> b = new List<int>() { 11,22,33,44,55,66,77 }; int lastele=b.Last(); [/code] | |
Re: Take a look at Daniweb thread - [url]http://www.daniweb.com/forums/thread224795.html[/url] | |
Re: The best tool I've used. - Convert [URL="http://code.google.com/p/wkhtmltopdf/"]HTML to PDF.[/URL] | |
Re: >Is it possible to send data from one textbox in the first instance to the same textbox in another instance. Yes! but this controls must have public or friend accessibility. Check the [b]Modifiers[/b] property of control. | |
Re: Hi! sam1 Here is a [URL="http://www.switchonthecode.com/tutorials/wpf-tutorial-using-wpf-in-winforms"]tutorial[/URL] and tell me about your progress. | |
Re: Welcome Baby G Drop a Label onto the Form and write following code in Form Load event [code] private void Form1_Load(object sender, EventArgs e) { Timer timer = new Timer(); timer.Interval = 1000; //1sec timer.Tick+=(sa,ea)=> { label1.Text = DateTime.Now.ToString(); }; timer.Start(); } [/code] | |
Re: >How to write in Access Database! in .net .Net framework has ADO.NET database integration class lib to perform any Database operations. Take a look at MSDN pages to learn and implement. Here is a sample - [url]http://www.daniweb.com/forums/post1434777.html#post1434777[/url] | |
Re: >well i made it in my project using Email Attach File Take a look at [URL="http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.attachments.aspx"]classes[/URL] of [URL="http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.aspx"]System.Net.Mail[/URL] namespace. | |
Re: Hi guys! What progress have you made? I've some links on winform authnetication: 1. [url]http://msdn.microsoft.com/en-us/magazine/cc163807.aspx[/url] 2. [url]http://www.codeproject.com/KB/miscctrl/Application_Login.aspx[/url] 3. [url]http://www.microsoft.com/downloads/en/details.aspx?familyid=ba983ad5-e74f-4be9-b146-9d2d2c6f8e81&displaylang=en[/url] | |
Re: First of all create a collection of questions of different subjects and then after randomly pick some questions. | |
Re: [QUOTE]However I am interested in learning asp as well.[/QUOTE] Great! But here are two web technologies - [URL="http://en.wikipedia.org/wiki/Active_Server_Pages"]classic ASP (old one and not used)[/URL] and [URL="http://en.wikipedia.org/wiki/ASP.NET"]ASP.NET[/URL]. So you may start learning ASP.NET [QUOTE]My question is what is a good development environment to use for my personal private development at home?[/QUOTE] … | |
Re: > can u help me how in html file i use to embed asp.net c .htm or .html files are not able to process the VB.NET/C# code. You have to create .aspx file and use GridView or DataList control to show database result. | |
Re: >C# search line by line text Use System.IO.File.ReadAllLines method. [code] string []lines=System.IO.File.ReadAllLines("filename.txt"); foreach(string line in lines) { // } [/code] | |
Re: The System.IO.TextReader (character oriented stream) is the abstract base/super class of System.IO.StreamReader. So, there is inheritance relationship between these two classes. [code] TextReader myreader = new StreamReader(); [/code] Above statement is an example of boxing. i.e Super class reference variable can hold a reference of sub-class object. | |
Re: >Anyone could tell me how to set the limit of a certain column to accept 10 the same inputs only. Sorry, I'm not quite following the problem. Correct me if I'm wrong. Do you want to update a specific column value of this table? | |
Re: Firstly, read one after one record from the ms-access database and assign it to List or Dictionary. [code] Dim Adp as New OleDbDataAdapter("select * from yourtableName","connection_string_here") Dim Dt as New DataTable Adp.Fill(Dt) Dim coll As New Dictionary(Of String, String) For Each row As DataRow In Dt.Rows coll.Add(row("Code"), row("Letter")) Next [/code] | |
Re: >FormBorderStyle to something, the Center Screen property stops working? Please post that code here. | |
Re: After setting up PageIndex, please rebind the detailsview In case, if you are using SqlDatasource then [code] detailview1.PageIndex = GridView1.SelectIndexl; defailview1.DataBind(); [/code] | |
Re: Have you placed wizard control inside the UpdatePanel? If no then put wizard control inside the updatepanel and set triggers. | |
Re: >get vb.net run on browser Are you familiar with the "[URL="http://www.silverlight.net/learn/quickstarts/"]SilverLight[/URL]"? | |
Re: Put some debug statements/break points and see what happen while debugging app. | |
Re: >i want to convert .xls file to .txt file using C#, plzz can any one help me? Yes! we will. Post your code/problem here. Please use BB code tags while posting source program. [noparse] [code] .... [/code] [/noparse] | |
Re: Fetch result from the database. [code] Dim Adp as New SqlDataAdapter("select col1 from yourtableName","connection_string_here") Dim Dt as New DataTable Adp.Fill(Dt) For Each row As DataRow In Dt.Rows CheckedListBox1.Items.Add(row(0)) Next [/code] | |
Re: > whenever i click in mdi parent form i doesont show its design pane. I guess! The designer of MDI form is not shown at your side. Isn't it? | |
Re: Take an advantage of DataTable. [code] DataTable dt = new DataTable(); dt.Columns.Add("Col1"); dt.Columns.Add("Col2"); for (int i = 0; i < arrayOne.Length && i < arrayTwo.Length; i++) { dt.Rows.Add(arrayOne[i], arrayTwo[i]); } dataGridView1.DataSource = dt; [/code] | |
Re: Take a look at codeproject article - [URL="http://www.codeproject.com/KB/cs/PrintScreen.aspx"]Print Screen.[/URL] | |
Re: Put break point at foreach statment and start debug your application. You can also check the length of [b]files[/b] array. [code] if (Directory.Exists(@"D:\")) { DirectoryInfo LookingAtDir = new DirectoryInfo(@"d:\"); FileInfo[] Files = LookingAtDir.GetFiles("*.txt"); //Debug statement System.Diagnostics.Debug.Assert(Files.Length!=0,"No files"); foreach (FileInfo IndividualFile in Files) { byte ar[]=File.ReadAllBytes(IndividualFile.FullName); //Another debug statement - output … | |
Re: Use [b]using[/b] statement, it provides a convenient syntax that ensures the correct use of [URL="http://msdn.microsoft.com/en-us/library/yh598w02(v=VS.90).aspx"]IDisposable[/URL] objects. [code] using (StreamWriter writer = new StreamWriter("file.txt")) { //statement here. } [/code] | |
Re: Have a look at [URL="http://msdn.microsoft.com/en-us/library/ms229605(v=VS.90).aspx"]Automatic Scaling in Windows Forms[/URL] and [URL="http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=e49820cb-954d-45ae-9cb3-1b9e8ea7fe8c"]Windows User Experience Interaction Guidelines[/URL] | |
Re: [QUOTE=Fenrir();1447532]Create labels for the current user. And assign their values from your variables. in the logout button or form close just run the following sql statement. [CODE]SqlCommand cmd = new SqlCommand("Update employee SET logout = "+Datetime.Now+" WHERE Username = "+usernamelbl.text+"")[/CODE] code not tested.[/QUOTE] Non-numeric data must be enclosed within the … | |
Re: >so my question is if you enter "exit" how do i get the console to exit? [b]return[/b] statement > i wanted to then convert 'input' in to an integer value [code] int no; string input="100"; int.TryParse(input,out no); [/code] | |
Re: VB.NET uses upperbound not a size to create an array. Dim params(1) as Object will create two variables of an Object type. [code] Dim params(0) As Object params(0) = Nothing .. [/code] | |
Re: Take a look at - How to send a message to other computers in your network with “[URL="http://www.bobhobby.com/2008/02/16/how-to-send-a-message-to-other-computers-in-your-network-with-net-send-command/"]net send[/URL]” command. | |
| |
Re: Take a look at - [URL="http://weblogs.asp.net/scottgu/archive/2010/02/07/built-in-charting-controls-vs-2010-and-net-4-series.aspx"]Built-in Charting Controls (VS 2010 and .NET 4 Series)[/URL] | |
Re: >but if in a subdir, it fails to function normally Yes! it will fails. So keep this file in [URL="http://msdn.microsoft.com/en-us/library/t990ks23(v=VS.90).aspx"]Bin[/URL]. | |
Re: Try, [code] Response.Redirect("your_requested_page.aspx"); [/code] | |
Re: >hey yaar .. a very rude comment. >i want to send that usind w-mail so how can i use that file upload control please give me some examples... To send an email try this: [code] System.Net.Mail.SmtpClient sc = new System.Net.Mail.SmtpClient("put.her.smtp.serever.com", port); try { sc.Credentials = new System.Net.NetworkCredential("account_username", "password"); System.Net.Mail.MailMessage msg … | |
Re: User is reserved keyword of MS-SQL. [code] Dim CmdStr As String = "insert into [user] (emp_name,category,city) values ('" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "')" [/code] [code] Dim Query2 As String = "select * from [user]" [/code] | |
Re: [code] void Test() { for each (DsrItem ^item in inTables::SelectMany(Method1)); { Trace::Assert(oldDrs->Position == item->Start); item->Data = reader::ReadBytes(safe_cast<int>(item->Size)); } } private: void Method1(Object ^table) { .... } [/code] | |
Re: If html form's tag enctype attribute is set with "multipart/form-data" then you cannot use request.getParameter. | |
Re: Sorry, I'm not quite following the problem. My understanding from your description is that you want to install/keep both version of application. | |
Re: pikkas, Is this web (ASP.NET) or win app? Try this, [code] String username = txtusername.Text; String password = txtpass.Text; String connStr = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; SqlConnection conn = new SqlConnection(connStr); SqlCommand cmd = new SqlCommand(); cmd.Connection = conn; cmd.CommandText = "select password from Details WHERE username=@p1"; cmd.Parameters.AddWithValue("@p1",username); conn.Open(); object pass = cmd.ExecuteScalar(); … | |
Re: >because after presing update buttion i go to sql and execute select statement to check whether it has been updated or not.. Of course Update statement will write changes to the underlying datasource. So, I think no need to execute select statement. | |
Re: Of course! What progress have you made with the code yourself? Post your code here and someone will help you. Do wrap your programming code blocks within [noparse][code]..[/code][/noparse] tags. | |
Re: Try this, [code] Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then Dim dt As New DataTable Dim folder As String = "\\Server\folder$\" & Request("UR") 'Dim folder As String = "\\Server\folder$\" & ("UR") dt.Columns.Add(New DataColumn("FileName", GetType(String))) dt.Columns.Add(New DataColumn("cbsel", … | |
Re: Will you be more specific? please. Do you have problems in **calculating** random numbers? What is meaning of "calculate random numbers." |
The End.