5,346 Posted Topics

Member Avatar for speedy94519

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.

Member Avatar for speedy94519
0
294
Member Avatar for Anigmalee

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

Member Avatar for Anigmalee
0
162
Member Avatar for mmatos

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

Member Avatar for mmatos
0
126
Member Avatar for Funsize
Member Avatar for khaled_jawaher

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

Member Avatar for khaled_jawaher
-1
116
Member Avatar for smd5049

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]

Member Avatar for reach_yousuf
0
564
Member Avatar for leowasif

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

Member Avatar for kvprajapati
0
163
Member Avatar for ellenski

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.

Member Avatar for kvprajapati
-4
298
Member Avatar for phoenix_dwarf

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

Member Avatar for kvprajapati
0
78
Member Avatar for manalibhadula

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

Member Avatar for kvprajapati
0
71
Member Avatar for TotoTitus

Have a look at this[URL="http://techblogging.wordpress.com/2008/04/17/creating-a-chat-application-using-socket-in-silverlight/"] blog[/URL].

Member Avatar for Diamonddrake
0
935
Member Avatar for prabinyovan

[QUOTE=prabinyovan;1226891]I found solution. No need of JavaScript [/QUOTE] :D Its called AJAX (Asynchronous JavaScript and XML).

Member Avatar for finito
0
879
Member Avatar for Tank50

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

Member Avatar for Tank50
0
127
Member Avatar for Isaaac

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

Member Avatar for Isaaac
0
138
Member Avatar for VirendraThakre

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

Member Avatar for elshan0011
0
106
Member Avatar for Lanoosh

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 …

Member Avatar for kvprajapati
0
154
Member Avatar for programming2010

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

Member Avatar for kvprajapati
0
86
Member Avatar for Smith5646

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

Member Avatar for Smith5646
0
118
Member Avatar for tractorguy
Member Avatar for varaprasad.j
0
87
Member Avatar for Learner7

From the solution explorer, choose Add + Existing item + frmContacts.vb (Rest files will be copied automatically)

Member Avatar for Learner7
0
188
Member Avatar for daviddoria

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

Member Avatar for daviddoria
0
1K
Member Avatar for daviddoria

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 …

Member Avatar for kvprajapati
0
271
Member Avatar for iamchamith

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

Member Avatar for kvprajapati
0
184
Member Avatar for vaibhav.s.jain

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

Member Avatar for kvprajapati
0
50
Member Avatar for fadi-ft
Member Avatar for kvprajapati
0
158
Member Avatar for vbpro

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.

Member Avatar for kvprajapati
0
792
Member Avatar for sdhawan

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

Member Avatar for kvprajapati
-1
727
Member Avatar for complete

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

Member Avatar for kvprajapati
0
198
Member Avatar for Mitja Bonca

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

Member Avatar for nick.crane
0
107
Member Avatar for elliot81

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

Member Avatar for kvprajapati
0
132
Member Avatar for Dr-Delta

Use AddHandler. [code] AddHandler Post.Saved, Function() _Html = Nothing [/code]

Member Avatar for Dr-Delta
0
143
Member Avatar for Cap'nKirk

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

Member Avatar for Cap'nKirk
0
136
Member Avatar for roachae

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 …

Member Avatar for roachae
0
95
Member Avatar for Isaaac

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]

Member Avatar for Isaaac
0
828
Member Avatar for leowasif

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

Member Avatar for leowasif
0
104
Member Avatar for Learner7

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

Member Avatar for kvprajapati
0
70
Member Avatar for kerek2

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

Member Avatar for kerek2
0
973
Member Avatar for sureshrajanmca

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

Member Avatar for kvprajapati
0
52
Member Avatar for grafiksinc

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

Member Avatar for grafiksinc
0
126
Member Avatar for havejeet

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

Member Avatar for kvprajapati
0
864
Member Avatar for rachS25

[b]>one of my .dll files that has been automatically created..[/b] (: Sorry, I'm not quite following the problem.

Member Avatar for kvprajapati
0
62
Member Avatar for born star

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]

Member Avatar for kvprajapati
0
33
Member Avatar for boyz

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

Member Avatar for kvprajapati
0
484
Member Avatar for VIPER5646

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

Member Avatar for Luc001
0
271
Member Avatar for LeafProduction

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

Member Avatar for kvprajapati
0
63
Member Avatar for tweakernut
Member Avatar for kvprajapati
0
91
Member Avatar for sdhawan

Insert statement should be, [code] nsertCommand.Append("insert into German values ('" + en.Key + "','" + al[i] + "')"); [/code]

Member Avatar for kvprajapati
0
382
Member Avatar for coop123

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]

Member Avatar for coop123
0
116
Member Avatar for malcomm

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

Member Avatar for malcomm
0
143
Member Avatar for DrkNite

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

Member Avatar for DrkNite
0
134

The End.