5,346 Posted Topics
Re: Members. Rather then requesting user to use code-tags please use **"Flag Bad Post"** option to notify moderators about that post. (post missing codes or it is in wrong section) Thanks. | |
Re: [QUOTE=Anigmalee;1227954]The situation is like this, says: I have textbox1 to textbox20 to show real-time reading, then textbox21 to textbox40 for other purpose. So textbox1-20 can be manage in group through: [CODE]For index As Integer = 1 To 20 Form1.Controls("Textbox" & index).BackColor = SystemColors.Window Next [/CODE] The problem is, after some … | |
Re: I think you want to invoke a WebService Method of one WebService from [URL="http://www.c-sharpcorner.com/UploadFile/S_ahmed/InvokingWebMetthodsDSA11232005043323AM/InvokingWebMetthodsDSA.aspx"]another[/URL]. | |
Re: [code] lblUnitResult.Text = lcUnit2.ToString("N2") [/code] | |
Re: [QUOTE=khaled_jawaher;1226356]i am writing an application on my pc to insert record on a microsoft access database on another pc that has static ip address remotely.i can ping the remote address of the pc that i want to access without problems.the access database is in the folder c:\inetpub\wwwroot\db.mdb. i have the … | |
Re: Take a look at this article - [url]http://aspalliance.com/782_CodeSnip_How_to_Display_Sum_Total_in_the_Footer_of_the_GridView_Control[/url] | |
Re: Always use parametrized query. [code] String conString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=C:\\Documents and Settings\\Wasif\\My Documents\\studentLogin.mdb"; OleDbConnection empConnection = new OleDbConnection(conString); String insertStatment = "UPDATE StudentLoginData Set [username]='" + this.txt_username.Text + "',[password]='" + this.txt_password.Text + "' WHERE [ID]="+this.txt_id.Text+""; OleDbCommand insertCommand = new OleDbCommand(insertStatment, empConnection); empConnection.Open(); try { int count = insertCommand.ExecuteNonQuery(); … | |
Re: Welcome shiju8831 If you have any questions please ask. You are welcome to start your own threads. Please do not resurrect threads that are years old. By doing so you run the risk of confusing current posters. Thread Closed. | |
Re: [QUOTE=phoenix_dwarf;1227110]Hi there, I'm trying to create a regular expression in my ASP.NET (C#) page (using a validator controls). At the moment there are 3 different validators but i would like to try and combine them into one if possible, other-wise 2. Is there any body that knows how this might … | |
Re: [QUOTE=manalibhadula;1228095]hi I have web form in asp.net Now in 1 link i want to generate a report of this form field's, so that it can get print by user. how can i do that?[/QUOTE] You should have to use Crystal Report OR Microsoft Report tool. Read MSDN Pages Crystal/Microsoft report. | |
Re: Have a look at this[URL="http://techblogging.wordpress.com/2008/04/17/creating-a-chat-application-using-socket-in-silverlight/"] blog[/URL]. | |
Re: [QUOTE=prabinyovan;1226891]I found solution. No need of JavaScript [/QUOTE] :D Its called AJAX (Asynchronous JavaScript and XML). | |
Re: [QUOTE=Tank50;1227643]Hi There is save button using that I can save it into excel file.the problem if I selected data with one month(20010-01-01 to 2010-01-31) ,then there are more data,but in data grid its show only only first date(2010-01-01) data only. [/QUOTE] Are you looking for paging? Please post the query … | |
Re: [QUOTE=Isaaac;1226774]I'm using an access database to save plain textboxes. I've made a connection with the database. Now i need to find the code to add the textboxes to my database. I've tried to add with the bindingnavigator but it won't work... please help...[/QUOTE] Use System.Data.OleDb connection, command, and parameter classes. … | |
Re: [QUOTE=VirendraThakre;1227091]I want to upload photo on click in VB.NET and want to store it in SQL 2005,also want to retrive it in picture box on another click.[/QUOTE] Please show us your code work. Are you working with window or web (asp.net) app? | |
Re: Try this. [code] Dim r As Random = New Random() Dim dept_no As Integer = 3 Dim dept(3)() As Integer Dim i, j As Integer Dim output As String = String.Empty For i = 0 To dept_no ReDim dept(i)(8) For j = 0 To dept(i).GetUpperBound(0) dept(i)(j) = r.Next(300, 1000) output … | |
Re: [QUOTE=programming2010;1227164] 1.when you want labels and textboxes of form1.cs to be viewed in another form but as a read only information,what code do you put and where do you put it. [/quote] Disabled them. [QUOTE=programming2010;1227164] 2.if you wanted to save data entered e.g. like a student fills his/her details in … | |
Re: [b]>Can anyone tell me what is causing the FamilyForm size to increase when the parent is assigned? [/b] Please check the [B]Font[/B] property of MDIParent form. Size of child form can't be affected. | |
Re: Firstly, learn the .NET Framework, HTML,Css and JavaScript. | |
Re: From the solution explorer, choose Add + Existing item + frmContacts.vb (Rest files will be copied automatically) | |
Re: [QUOTE=daviddoria;1226489]I have some white text I am putting over a very light background. Is there anyway to outline the text in black? After some googling it looks like there are some pretty complicated solutions, but I am looking for something like a check box that says "outline". Is there such … | |
Re: Hi, [QUOTE=daviddoria;1226483]I set the .Interval of a timer to "10", which I believe means 10 milliseconds. Since there are 1000 ms in 1 second, if I count to 100, I should have 1 second, right? The problem is, if I use a physical stop watch and compare it to my … | |
Re: [QUOTE=iamchamith;1224873]I use asp.net with c#.net... My Question is...... I put the fileUplod tool & button to the asp page..at the run time..I was select some file using file Upload & then refresh the page or click the button,fileUploder become empty...how i keep fileUploader value until page submit Please help me[/QUOTE] … | |
Re: [QUOTE]I have a tool which takes the data from the microscope. A user can do some edit work in the file and can save the file anywhere in the system at the place of his choice.[/quote] Use System.IO.Directory class methods to search a file. [quote] Now, I want the file … | |
Re: Take a look at thread - [url]http://www.daniweb.com/forums/thread255412.html[/url] | |
Re: Welcome @elephant381 Please do not resurrect old threads.If you have any questions please ask. You are welcome to start your own threads. Thread Closed. | |
Re: Please do not flood the forum by posting the same question more than once (ie in multiple forums). 1. [url]http://www.daniweb.com/forums/thread284801.html[/url] (Closed.) 2. [url]http://www.daniweb.com/forums/thread285033.html[/url] (Closed.) | |
Re: [QUOTE=complete;1226562]How do you draw a line on a canvas in WPF that is 1 pixel thick? This is the method I am using for drawing a line on a canvas in WPF that uses the line class set to 1 pixel thick but it actually draws a line that is … | |
Re: [QUOTE=Mitja Bonca;1226756]I would like to know how to pass object array (object[]) between classes with the code bellow, which now sends string only: [/QUOTE] [code] static void Sample(object[] ar) { if(ar is string[]) Console.WriteLine( ((string[])ar)[0]); } static void Sample1(Array ar) { if (ar is string[]) Console.WriteLine(((string[])ar)[0]); } static void Main(string[] … | |
Re: [b]>The program runs fine but when after I enter a record and request to display it, for each record it only displays 'ConsoleApplication.Person'[/b] [code] for (int i = 0; i < people.Count; i++) Console.WriteLine(people[i].Name + " " + people[i].Salary); [/code] | |
Re: Use AddHandler. [code] AddHandler Post.Saved, Function() _Html = Nothing [/code] | |
Re: [b]>I was wondering if there is a simple way to use the button click events to call either the Next or Previous page without actually having to rewrite the code into each buttons click event?[/b] Attach a common handler (method) to the click event of buttons. [code] private void Form1_Load(object … | |
Re: Use Invoke method of domainUpDown control. [code] private void Form1_Load(object sender, EventArgs e) { domainUpDown1.Items.AddRange(new string[] { "A", "B", "C", "D", "E", "F", "G", "H" }); } private void button1_Click_1(object sender, EventArgs e) { domainUpDown1.Invoke(new Action(() => { Random r = new Random(); int n = r.Next(0, domainUpDown1.Items.Count); for (int … | |
Re: Replace [B]\n[/B] with [B]\r\n[/B] (CRLF). [code] string str = richTextBox1.Text.Replace("\n", "\r\n"); .... tw.WriteLine(str); tw.Close(); [/code] | |
Re: [b]>how can i retrieve data and compare it with the value that i got from user [/b] Form a select query. [code] string query="select [username],[password] from [tableName] where [username]=@username and [password]=@password"; [/code] Execute query using ExecuteReader method. [code] cn=new OleDbConnection("conn_string_here"); cmd=new OleDbCommand(); cmd.CommandText=query; cmd.Connection=cn; cmd.Parameters.AddWithValue("@username",UserName.Text); cmd.Parameters.AddWithValue("@password",PassWord.Text); cn.Open(); OleDbDataReader dr=cmd.ExecureReader(); string … | |
Re: [code] ListView1.View = View.Details Dim dt As DataTable = da.Table("AddressBook") For Each c As DataColumn In dt.Columns ListView1.Columns.Add(c.ColumnName) Next For Each r As DataRow In dt.Rows Dim item As New ListViewItem(r(0).ToString()) For i As Integer = 1 To dt.Columns.Count - 1 item.SubItems.Add(r(i)) Next ListView1.Items.Add(item) Next [/code] | |
Re: [code] ... Dim byteArray() as byte=System.IO.File.ReadAllBytes("c:\x.png") Dim Str As String = "update CARDHOLDER set PHOTO = (@Img) where CARDHOLDERID =@Card" Dim cmd As New OleDbCommand(Str, cn) cmd.Parameters.Add("@Img", odbcType.Binary,byteArray.Length).Value=byteArray cmd.Parameters.Add("@Card",odbcType.Varchar,20).value=myReader.Item(0).ToString() cn.open cmd.ExecuteNonQuery() cn close [/code] | |
Re: Read this [URL="http://blogs.telerik.com/VladimirEnchev/Posts/08-05-27/Client-side_edit_update_delete_and_insert_with_RadControls_for_ASP_NET_AJAX_WebServices_and_LINQ.aspx"]tutorial[/URL]. | |
Re: [b]>here is my Behind code I am not sure what to put after the Dim statement[/b] Write code which updates your database. Steps: 1. Create connection & command objects 2. Open connection and execute the command. 3. Close the connection. | |
Re: [QUOTE=havejeet;888001]Hi friends, I have a checkedlistbox control on my windows form. Now when Application runs, every item is unchecked and user checks the items as per his choice. I want that - next time when user runs the application - checkedlistbox should be loaded with the same items checked. Meaning … | |
Re: [b]>one of my .dll files that has been automatically created..[/b] (: Sorry, I'm not quite following the problem. | |
Re: Read : 1. [url]http://stackoverflow.com/questions/636932/in-c-why-is-string-a-reference-type-that-behaves-like-a-value-type[/url] 2. [url]http://stackoverflow.com/questions/1096449/c-string-reference-type[/url] | |
Re: @learner111 Please do not resurrect threads that are years old. By doing so you run the risk of confusing current posters. If you have any questions please ask. You are welcome to start your own threads. Thread Closed. | |
Re: [b]>The Microsoft Jet database engine could not find the object[/b] Don't seem any problem with your code. Have you found any solution? | |
![]() | Re: [code] XSQL = "Select stock from item where itemcode ='" & Trim(TextBox2.Text) & "'" CMD = New OleDb.OleDbCommand(XSQL, CONN) Dim obj as OleDbDataReader Dim found as boolean=false obj=CMD.ExecuteReader() if obj.Read() Then found=true End if obj.Close() If Not Found Then MsgBox("Alert") Else XSQL = "Update item set Stock = Stock - … |
Re: Read [URL="http://www.rfc-editor.org/rfc/rfc3117.txt"]RFC[/URL]. | |
Re: Insert statement should be, [code] nsertCommand.Append("insert into German values ('" + en.Key + "','" + al[i] + "')"); [/code] | |
Re: Don't use loop. Terminate the method execution through [b]return[/b] statement. [code] private void submit_btn_Click(object sender, EventArgs e) { if (vin_txt.Text.Length < 17) { MessageBox.Show("A VIN has more Characters"); anError = true; vin_txt.Clear(); return; } if (vin_txt.Text == "") { MessageBox.Show("You need to enter a VIN"); return; } ...... [/code] | |
Re: [b]>MDB database updateing from two forms?[/b] In this situation you need to write some code by hand. Don't rely on typed dataset. | |
Re: [b]>open custom file and display it when file is click[/b] Its called "Registered file types". Choose "Folder Option" of explorer tools menu to assign file extension to the application. |
The End.