5,346 Posted Topics
Re: [b]>how could i do it in managed c++? [/b] Use/Learn methods of [URL="http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx"]HttpWebRequest[/URL] class. [b]>i see many examples of this in c# but not in c++[/b] You could write your managed HttpWebRequest code into a C#, and compile it as a DLL. Use RegAsm.exe to register it as a COM … | |
Re: [b]>trying to do the updating through gridview but somehow doesn't work at all.[/b] Execute update query or invoke Update method of DataAdapter. | |
Re: [b]>but here when i do this then i am getting last row value not first row.[/b] In above code snippet, you are trying to assign values (approx. 60 rows) from datatable to a single textbox and optionlist control - and, that is a problem. To solve your problem, you must … | |
Re: Use [b]&[/b] (string concatenation) [code] booking_no = CStr(year) & "/" & sino [/code] | |
Re: You can't apply inner join directly on Typed DataSet. Take a look at this thread - [URL="http://forums.asp.net/p/996217/3353200.aspx#3353200"]http://forums.asp.net/p/996217/3353200.aspx#3353200[/URL] | |
Re: From the [URL="http://www.w3.org/TR/wsdl20/#intro"]http://www.w3.org/TR/wsdl20/#intro[/URL] WSDL - provides a model and an XML format for describing Web services. [b]>Can I add a XML WSDL to my VB .Net 2003?[/b] You have to create web service [URL="http://msdn.microsoft.com/en-us/library/d2s8y7bs%28VS.71%29.aspx"]Proxy[/URL] using web service [URL="http://msdn.microsoft.com/en-us/library/aa529578.aspx"]proxy class tool[/URL]. | |
Re: The best way to asynchronously load an BitmapImage in C# is [URL="http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx"]BackgroundWorker[/URL] class. (It executes an operation on a separate thread.) | |
Re: [QUOTE]From [URL="http://en.wikipedia.org/wiki/Multitier_architecture"]WikiPedia[/URL][/QUOTE] SUMMARY: In software engineering, multi-tier architecture (often referred to as n-tier architecture) is a client-server architecture in which the presentation, the application processing, and the data management are logically separate processes. For example, an application that uses middleware to service data requests between a user and a database … | |
Re: You are doing well. Take a look at this - [URL="http://www.vbforums.com/showthread.php?p=3708712"]http://www.vbforums.com/showthread.php?p=3708712[/URL] and [URL="http://social.msdn.microsoft.com/Forums/en/winformsdatacontrols/thread/8f713f45-fc25-4a31-b2ea-f38984d93d12"]http://social.msdn.microsoft.com/Forums/en/winformsdatacontrols/thread/8f713f45-fc25-4a31-b2ea-f38984d93d12[/URL] | |
Re: Welcome Snubnose, I suggest you to read this (CodeProject) article - [URL="http://www.codeproject.com/KB/GDI-plus/CsTranspTutorial2.aspx"]http://www.codeproject.com/KB/GDI-plus/CsTranspTutorial2.aspx[/URL] | |
Re: [b]>so can any body help me to develop this program?[/b] Showing your code might help. You can use Win32 API/PInvoke. | |
Re: [b]>Is there any way to show a PowerPoint presentation on a WebBrowser control?[/b] Take a look at this article - [URL="http://support.microsoft.com/kb/243058"]How to use the WebBrowser control to open an Office document[/URL] | |
Re: Thanks wingers1290. On behalf of all of daniweb members, we appreciate your feedback. I recommend custom serialization (BinaryReader and BinaryWriter) instead of BinaryFormatter. If your data is complex, high in quantity or you need to query it locally then object databases might be a valid option. I'd suggest looking at … | |
Re: [b]>Is there any development tool i can install on my mac for ASP.net?[/b] [URL="http://www.mono-project.com/Main_Page"]Mono[/URL] | |
Re: [b]>Disable a datagridview row from being selected.[/b] Set value false to Enabled property of datagrid. | |
Re: You have to target version 3.5 .net framework to use linq. Please verify the .net version at your school. Actually you can't use Linq in .NET 2.0. However you can download [URL="http://code.google.com/p/linqbridge/"]linqbridge[/URL] - which provides a LINQ implementation for Framework 2.0. | |
Re: [b]>how can i add thm to a specific location?[/b] Use [URL="http://msdn.microsoft.com/en-us/library/ty0ce8sc.aspx"]Table[/URL] server control. | |
Re: [b]>How to fill rows in ListView from DataRow?[/b] [code] DataTable dt = new DataTable(); dt.Columns.Add("No"); dt.Columns.Add("Name"); dt.Rows.Add("1","AA"); dt.Rows.Add("2","BB"); dt.Rows.Add("3","CC"); dt.Rows.Add("5","DD"); listView1.Columns.Add("No"); listView1.Columns.Add("Name"); foreach (DataRow row in dt.Rows) { string []ar=Array.ConvertAll<object,string>(row.ItemArray,p=>p.ToString()); listView1.Items.Add(new ListViewItem(ar)); } [/code] | |
Re: ASP.NET is an extended class library of .net framework or .net framework's web technology that allows developer that he/she can author applications in any CLS compliant language and [icode].net framework class library[/icode] to develop a web application. | |
Re: [b]>How to make datagridview current row bold?[/b] Use RowEnter and RowLeave event handler. [code] ..... ..... AddHandler DataGridView1.RowEnter, AddressOf test1 AddHandler DataGridView1.RowLeave, AddressOf test2 End Sub Sub test1(ByVal s As Object, ByVal e As DataGridViewCellEventArgs) DataGridView1.Rows(e.RowIndex).DefaultCellStyle.Font = New Font("Arial", 10, FontStyle.Bold) End Sub Sub test2(ByVal s As Object, ByVal e … | |
Re: From the MSDN - [URL="http://msdn.microsoft.com/en-us/library/ms173212.aspx"]extern alias (C# Reference)[/URL] SUMMARY: To reference two assemblies with the same fully-qualified type names, an alias must be specified at a command prompt. Take a look at this blog - [URL="http://blogs.msdn.com/abhinaba/archive/2005/11/30/498278.aspx"]http://blogs.msdn.com/abhinaba/archive/2005/11/30/498278.aspx[/URL] | |
Re: Try to set width, [code] <style type="text/css"> .FixedWidth { width:200px; } </style> <table> <tr> <td class="FixedWidth"> View Meetings </td> </tr> <tr> <td class="FixedWidth"> View Personal Details </td> </tr> </table> [/code] | |
Re: Take a look at [URL="http://www.ratz.com/features.html"]Good and Bad web design.[/URL] | |
Re: [b]>please can someone help, i wana add row to a xml file?[/b] You can manipulate xml document using System.Xml (DOM) or System.Data.DataSet classes. | |
Re: Take a look at an article - [URL="http://en.csharp-online.net/Deploying_Windows_Applications"]Deploying Windows Applications[/URL] | |
Re: Read [URL="http://jibbering.com/faq/"]http://jibbering.com/faq/[/URL] | |
Re: [b]What happens is that the error message is displayed first and when I press OK, only then can I move to the other textboxes. [/b] set CausesValidation property of OK button [code] OK.CausesValidation = false [/code] | |
Re: Fill() method? [code] ... dn.Fill(ds) ... dr = ds.Tables(0).NewRow() [/code] | |
Re: [b]>Trying to login to websitewith C++[/b] Consider using something like [URL="http://msdn.microsoft.com/en-us/library/aa384270%28VS.85%29.aspx#Posting_data_to_the_"]WinHttp [/URL] or [URL="http://curl.haxx.se/libcurl/"]libcurl[/URL]. EDIT: In this thread you are asking help for Managed C++ code. [URL="http://www.daniweb.com/forums/thread253746.html"]http://www.daniweb.com/forums/thread253746.html[/URL] | |
Re: [b]>i get false value of checkbox[/b] Don't use IsPosback. [code] protected void Page_Load(object sender, EventArgs e) { cb = new CheckBox[count - k]; //Database code......... while (dr.Read())//read data from access database { cb[z] = new CheckBox(); cb[z].Text = dr["Member_Name"].ToString(); Panel2.Controls.Add(cb[z]); Panel2.Controls.Add(new LiteralControl("</br>")); z = z + 1; } } [/code] | |
Re: In order to write code against external component, your project must first contain a reference to it. | |
Re: [b]>When I click second time I got error Procedure or function "procedure name display" - has too many arguments specified.[/b] You are adding a parameter object each time. Use MyCommand.Parameters.Clear() method, [code] MyConnection.ConnectionString = connstring MyCommand.Connection = MyConnection MyCommand.CommandText = "sp_developer_display" MyCommand.CommandType = CommandType.StoredProcedure MyCommand.Parameters.Clear() Dim param As SqlParameter = … | |
Re: [code] ... Dim mydst As New DataSet MyConnection.ConnectionString = connstring Dim disp As New SqlDataAdapter("sp_developer_display", MyConnection) disp.SelectCommand.Parameters.AddWithValue("@developerid",10) disp.Fill(mydst, "dev_display") ... [/code] | |
Re: A very good book to read - [URL="http://books.google.co.in/books?id=-l2HUDdYNzkC&pg=PA113&dq=Playing+sounds+Async+from+memory+with+high+performance&cd=1#v=onepage&q=&f=false"]High performance memory systems.[/URL] | |
Re: [b]>I need to serialize the array to do this but don't understand the process.[/b] [code] Dim no As Integer() = {11, 22, 33, 44} Dim MS As New System.IO.MemoryStream Dim bin As New System.Runtime.Serialization.Formatters.Binary.BinaryFormatter bin.Serialize(MS, no) Dim bytes(MS.Length - 1) As Byte MS.Position = 0 MS.Read(bytes, 0, bytes.Length) .... ... … | |
Re: [b]>Is there any dependency to be added to make sure that the exe run in any computer?[/b] You need a .net framework. Take a look at this FAQ - [URL="http://dotnet.mvps.org/dotnet/faqs/?id=deployframework&lang=en"]http://dotnet.mvps.org/dotnet/faqs/?id=deployframework&lang=en[/URL] | |
Re: Well, you need to learn GDI+ (drawing library) and other stuff. | |
Re: [b]>whenever i click the button next. But the code is only displaying the last record in the database.[/b] It will not work. DataReader instance reads a forward-only, read-only stream of data from a data source. Use DataSet (Relational classes) and DataAdapter. | |
Re: [b]>I want to apply primary key on sno+date columns[/b] Yes. It is called composite-primary key. Note: You can't assign blanks (spaces) to date and numeric fields. | |
Re: [b]>i want to display the inserted row to my datagridview. how can i accomplish this?[/b] You might want to show all rows having Inserted RowState. Use daaViewObject.RowStateFilter = DataViewRowState.Added | |
Re: Handles RowEnter event, [code] .... dataGridView1.RowEnter += new DataGridViewCellEventHandler(dataGridView1_RowEnter); } void dataGridView1_RowEnter(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex == 0) ((DataGridViewComboBoxCell)dataGridView1.Rows[e.RowIndex].Cells[0]).DataSource = new string[] { "1", "2", "3" }; if (e.RowIndex == 1) ((DataGridViewComboBoxCell)dataGridView1.Rows[e.RowIndex].Cells[0]).DataSource = new string[] { "11", "21", "23" }; if (e.RowIndex == 2) ((DataGridViewComboBoxCell)dataGridView1.Rows[e.RowIndex].Cells[0]).DataSource = new string[] … | |
Re: Set DrawMode property of treeview with OwnerDrawText or OwnerDrawAll. [code] private void Form1_Load(object sender, EventArgs e) { treeView1.DrawMode = TreeViewDrawMode.OwnerDrawAll; treeView1.DrawNode += new DrawTreeNodeEventHandler(treeView1_DrawNode); TreeNode root = new TreeNode("Programming"); treeView1.Nodes.Add(root); root.Nodes.Add("Java Programming"); root.Nodes.Add("C Programming"); } void treeView1_DrawNode(object sender, DrawTreeNodeEventArgs e) { string[] s = e.Node.Text.Split(' '); e.Graphics.DrawString(s[0], new Font("Arial",10f) ,Brushes.Red … | |
Re: .net compact framework is ideal for development/deployment on Pocket PC / Windows Mobile devices. Take a look at [URL="http://en.wikipedia.org/wiki/Mobile_development"]wiki [/URL]for more details. | |
Re: 1. [code] str = "Select * from [gpass] where [vou_no]=" & Val(Me.txtGat.Text) & " And [Date] = '" & Me.txtDat.Text & "'" [/code] 2. [code] Dim cmd As New SqlClient.SqlCommand("update [gpass] set [c]=@c, [bno]=@bno, code=@code, [vehicle_no]=@vehicle_no,[trasportr]=@transportr,[time]=@time where [vou_no]= @vou_no and [Date] =@date", con) [/code] | |
Re: Please read this article - [URL="http://msdn.microsoft.com/en-us/library/ms997636.aspx"]http://msdn.microsoft.com/en-us/library/ms997636.aspx[/URL] [QUOTE]SUMMARY: Icon Sizes There are four sizes of Windows icons—48 × 48, 32 × 32, 24 × 24, and 16 × 16 pixels.[/QUOTE] | |
Re: |[URL="http://social.msdn.microsoft.com/forums/en-US/sqlce/thread/dc31ea59-5718-49b6-9f1f-7039da425296/"]DataDirectory[/URL]| is a substitution string that indicates the path to the database. [code] Dim con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\Database\health.mdb;Persist Security Info=False") Public Sub opencn() [/code] | |
Re: Use [b]ReadAllLines[/b] method of File type. | |
Re: Welcome bilaman, >then whenever i click the student name it will automatically fill the name in a ready made .doc form Can you be more specific please? We only give help to those who show effort. You might want to read the [URL="http://www.daniweb.com/forums/announcement58-2.html"]homework[/URL] policy if you run into problems and … | |
Re: Don't put .exe extension. [code=vb.net] Dim p() As System.Diagnostics.Process = System.Diagnostics.Process.GetProcessesByName("calc") If p.Length = 1 Then p(0).Kill() End If [/code] | |
Re: Use order by desc clause. [code=text] SELECT * FROM TABLENAME ORDER BY OrderTakenDateTime DESC [/code] |
The End.