5,346 Posted Topics

Member Avatar for NewOrder

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 …

Member Avatar for NewOrder
0
166
Member Avatar for TheInfam0usNZ

Error says that Appendtext is a method not a property. [code] log.AppendText(clientLoaded) [/code]

Member Avatar for kvprajapati
1
107
Member Avatar for bhagawatshinde

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]

Member Avatar for bhagawatshinde
0
91
Member Avatar for arunkumars

Take a look at Daniweb thread - [url]http://www.daniweb.com/forums/thread224795.html[/url]

Member Avatar for kvprajapati
0
111
Member Avatar for Rohith Reddy

The best tool I've used. - Convert [URL="http://code.google.com/p/wkhtmltopdf/"]HTML to PDF.[/URL]

Member Avatar for Rohith Reddy
0
269
Member Avatar for get connected

>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.

Member Avatar for codeorder
0
119
Member Avatar for sam1

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.

Member Avatar for sam1
0
170
Member Avatar for Baby G

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]

Member Avatar for Baby G
-3
264
Member Avatar for afaque01

>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]

Member Avatar for afaque01
0
123
Member Avatar for afaque01

>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.

Member Avatar for afaque01
0
170
Member Avatar for TheDocterd

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]

Member Avatar for TheDocterd
0
207
Member Avatar for Nitin Daphale

First of all create a collection of questions of different subjects and then after randomly pick some questions.

Member Avatar for Nitin Daphale
0
216
Member Avatar for fuston05

[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] …

Member Avatar for fuston05
0
72
Member Avatar for selicon.valley

> 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.

Member Avatar for kvprajapati
0
59
Member Avatar for moone009

>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]

Member Avatar for Mitja Bonca
0
5K
Member Avatar for james6754

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.

Member Avatar for kvprajapati
0
80
Member Avatar for paulablanca

>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?

Member Avatar for paulablanca
0
173
Member Avatar for sanjon

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]

Member Avatar for kvprajapati
0
101
Member Avatar for MrCapuchino

>FormBorderStyle to something, the Center Screen property stops working? Please post that code here.

Member Avatar for darkagn
0
188
Member Avatar for kiran.madke

After setting up PageIndex, please rebind the detailsview In case, if you are using SqlDatasource then [code] detailview1.PageIndex = GridView1.SelectIndexl; defailview1.DataBind(); [/code]

Member Avatar for Ramesh S
0
86
Member Avatar for savitasagar

Have you placed wizard control inside the UpdatePanel? If no then put wizard control inside the updatepanel and set triggers.

Member Avatar for savitasagar
0
60
Member Avatar for mogaka

>get vb.net run on browser Are you familiar with the "[URL="http://www.silverlight.net/learn/quickstarts/"]SilverLight[/URL]"?

Member Avatar for kvprajapati
0
65
Member Avatar for soft_coder
Member Avatar for kieky

>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]

Member Avatar for kvprajapati
0
107
Member Avatar for virl2806

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]

Member Avatar for kvprajapati
0
28
Member Avatar for Bhaumik Vyas

> 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?

Member Avatar for Bhaumik Vyas
0
113
Member Avatar for agam360

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]

Member Avatar for kvprajapati
0
89
Member Avatar for zeke188

Take a look at codeproject article - [URL="http://www.codeproject.com/KB/cs/PrintScreen.aspx"]Print Screen.[/URL]

Member Avatar for kvprajapati
0
116
Member Avatar for Flyleafian

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 …

Member Avatar for kvprajapati
0
91
Member Avatar for MrCapuchino

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]

Member Avatar for kvprajapati
0
218
Member Avatar for MARKAND911

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]

Member Avatar for kvprajapati
0
429
Member Avatar for muzikhera

[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 …

Member Avatar for kvprajapati
0
93
Member Avatar for james6754

>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]

Member Avatar for kvprajapati
0
89
Member Avatar for NikRadSystem

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]

Member Avatar for kvprajapati
0
193
Member Avatar for Jayson83

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.

Member Avatar for kvprajapati
0
369
Member Avatar for derozza

Try this, [code] SELECT approval_date FROM itemdetail WHERE approval_date BETWEEN '2011/01/01' AND '2011/01/15' [/code]

Member Avatar for smantscheff
0
107
Member Avatar for rbeach1955
Member Avatar for pikkas

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]

Member Avatar for kvprajapati
0
74
Member Avatar for paolodinhqd

>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].

Member Avatar for kvprajapati
0
126
Member Avatar for baladeveloper
Member Avatar for Dimpalpatel

>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 …

Member Avatar for kvprajapati
-1
77
Member Avatar for Josef01

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]

Member Avatar for Josef01
0
705
Member Avatar for MasterGberry

[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]

Member Avatar for MasterGberry
0
416
Member Avatar for loken

If html form's tag enctype attribute is set with "multipart/form-data" then you cannot use request.getParameter.

Member Avatar for cute_adi
0
4K
Member Avatar for dre-logics

Sorry, I'm not quite following the problem. My understanding from your description is that you want to install/keep both version of application.

Member Avatar for Teme64
0
113
Member Avatar for pikkas

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(); …

Member Avatar for pikkas
0
271
Member Avatar for dinesh.isuranga

>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.

Member Avatar for dinesh.isuranga
0
172
Member Avatar for sham.karankal
Re: dos

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.

Member Avatar for kvprajapati
-1
54
Member Avatar for caz1224

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", …

Member Avatar for kvprajapati
0
88
Member Avatar for Resentful

Will you be more specific? please. Do you have problems in **calculating** random numbers? What is meaning of "calculate random numbers."

Member Avatar for Resentful
0
121

The End.