5,346 Posted Topics
Re: [b]>But maybe is a faster version?[/b] Use parametrized query. | |
Re: [b]>Can anyone guide me about this?[/b] [URL="http://msdn.microsoft.com/en-us/library/aa983613%28VS.71%29.aspx"]Inheritance.[/URL] | |
Re: [b]>cud any one tell me how to search particular data from database.[/b] Type SELECT statement with WHERE clause. [code=text] SELECT * FROM tablename WHERE firstname=@firstname or lastname=@lastname [/code] | |
Re: [b]> I have a text box which contains numbers separated with commas.[/b] Use Split method of string object. | |
Re: [b]>the program received data but with many symbols and unnecessary characters.[/b] There maybe a text-encoding problem. Have a look at this article - [url]http://www.dreamincode.net/forums/index.php?showtopic=35775[/url] | |
Re: [b]>but i don't know where to put clientsocket.close() and the other corresponding code.[/b] I suggest you to read this [URL="http://msdn.microsoft.com/en-us/library/aa478452.aspx"]article/tutorial[/URL]. [code] Private Sub Button2_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles connect_to_server.Click clientSocket=New System.Net.Sockets.TcpClient() readData = "Conected to Chat Server ..." msg() clientSocket.Connect("127.0.0.1", 8888) 'Label1.Text = "Client Socket … | |
Re: [b]>how do I show the relevant data on the Employee Jobs form when I click the Button on the Employee form?[/b] I presume that the table EmployeeJOB has a referential integrity constrained (just say employeecode or id or something like this) column so you can write select statement. For example, … | |
Re: [b]>if the main form is closed, all child forms are closed without prompting.[/b] Show/Create Owner form - a form (child) which is owned by other form. Also handle the FormClosing event of Owner form. Sample, [code] public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void … | |
Re: Have a look at - [URL="http://www.dotnetspider.com/tutorials/BestPractices.aspx"]Standards and Best Programming Practices[/URL] | |
Re: [b]>i need to get another Projects Form running and get text labels that are updating every sec in that from[/b] It is too difficult. Using the (WinAPI) FindWindowEx API you can roll down the structure and get any of the controls(that is loaded) Handle. | |
Re: [b]>Is it possible to use C++ code AND C# code in Visual Studio 2008.[/b] Yes. It is a [URL="http://en.wikipedia.org/wiki/Managed_Extensions_for_C%2B%2B"]managed c++[/URL]. | |
Re: [b]>I have trouble understanding, when I have to override and why I have to override.[/b] [QUOTE]From the [URL="http://en.wikipedia.org/wiki/Method_overriding"]wiki[/URL]: Method overriding, in object oriented programming, is a language feature that allows a subclass to provide a specific implementation of a method that is already provided by one of its superclasses. The … | |
Re: [b]>What if I have multple selections to define, would I have to expand my loop to set these?[/b] No methods to bind ListBox with multiselect options. You have to use loop. | |
Re: [b]>error - Syntax error in FROM clause[/b] Please check the syntax of select statement. [code=text] ... Dim cn as New OledbConnection("your connection string") Dim cmd as new OledbCommand("select [username] from LoginTable where [username]=@para1 and [password]=@para2",cn) cmd.Parameters.AddWithValue("@para1",TextBox1.Text) cmd.Parameters.AddWithValue("@para2",TextBox2.Text) cn.Open() Dim dr as OleDBDatareader = cmd.ExecuteReader() if dr.Read() Then 'Login success Else … | |
Re: Take a look at this sample, [code] Public Class Form1 Dim source1 As New BindingSource Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim dt As New Data.DataTable dt.Columns.Add("Name") dt.Rows.Add("foo") dt.Rows.Add("bar") dt.Rows.Add("baar") dt.Rows.Add("taj") Dim view1 As New Data.DataView(dt) source1.DataSource = view1 DataGridView1.DataSource = source1 End Sub … | |
Re: [b]>its not working in other computer in which vb is not install.[/b] You need to install appropriate version of the .net framework along with your application. By the way, Please do not resurrect old threads and have a look at forum [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. Please read before posting - [url]http://www.daniweb.com/forums/thread78223.html[/url] PS:If you … | |
Re: Welcome to the Daniweb. You didn't mention the name of database product (I guess! it is MS-SQL server). [b]>I don't know how to get the database to automatically detect when a DVD is overdue [/b] You can take the advantage of [URL="http://www.codeproject.com/KB/database/Formula_Column.aspx"]computed column specification[/URL] (MS-SQL server). | |
Re: [b]>Adding an entry to a database[/b] To add a record into a database you need to use insert query. [code] Private Sub regBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles regBtn.Click .... Dim conStr As String = "Provider=Microsoft.ACE.OLEDB.12.0;" & _ "Data Source=School1.accdb" Dim cn as new OleDbConnection(conStr) Dim cmd … | |
Re: [b]>Want to know how to move an object from one place to another for a project on interior decoration system[/b] By changing x and y coordinates. | |
Re: [b]>how can i force the Object to put string at cell that have different datatype, or how can i make the object to not "guess " the datatype[/b] [URL="http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbparametercollection.addwithvalue.aspx"]Parameters[/URL] collection of Command object. | |
Re: [b]>What I am looking for is any (including api calls, com calls etc.) way how to print rtf document from dist on default printer programmatically.[/b] Office InteOp service. | |
Re: Comma (,) separator instead of "OR". [code=text] UPDATE TableName set col1=@p1,col2=@p2 where col3=@p3 [/code] | |
Re: [b]>As far as I know, the jar file is a zipped file, and the version info should be stored in META-INF\MANIFEST.MF[/b] That's true. Another way to write small java app that uses JarFile class to get menifest details. | |
Re: Please do not resurrect old thread. Please read before posting - [url]http://www.daniweb.com/forums/thread78223.html[/url] Thread closed. | |
Re: [b]>showing current record of dataset in datagrid[/b] Use bindingSource method. | |
Re: [b]>and on the master page I have a search box.[/b] Wrap search box content into a panel. | |
Re: Handles the Enter, Leave, and KeyPress events. | |
Re: [b]>Can I use libxml++ to parse html.[/b] Yes you can use. Have a look at - [url]http://xmlsoft.org/html/libxml-HTMLparser.html[/url] I would suggest to use [URL="http://doc.trolltech.com/4.4/qtxml.html"]QTXml[/URL] or [URL="http://ticpp.googlecode.com/svn/docs/ticpp.html"]TinyXML[/URL] parser. | |
Re: Line #7 label1.parent =this; (Form1 is a type/class name). | |
Re: [b]>How can i encrypt access .mdb file ,make it .mde and add password[/b] [URL="http://msdn.microsoft.com/en-us/library/aa139961%28office.10%29.aspx"]Exploring[/URL] Microsoft Access Security. [b]>what is the connection string in C#[/b] The [URL="http://www.connectionstrings.com/"]connection [/URL]string that includes the source database name, and other parameters needed to establish the initial connection. [b]>how can i access it[/b] ADO.NET Oledb provider … | |
Re: [b]>Is there anyway to put the rest of them?[/b] [code] .... For Each cnt As Control In Me.Controls If TypeOf cnt Is GroupBox Then For Each child In cnt.Controls If TypeOf child Is Label Then CType(child, Label).BackColor = Color.Red End If Next End If Next .. [/code] | |
Re: [b]>how to connect database in c#[/b] You need to create an instance Connection class. This instance then uses connect information (connectionString) - database servername, userid, password and database name to connect. | |
Re: [b]>how to get two value in dropdownlist in asp.net c#[/b] Have a look at sample, [code] void page_load() { if(!IsPostBack) { DataTable dt=new DataTable(); dt.Columns.Add("ProdID",typeof(int)); dt.Columns.Add("ProdName"); dt.Rows.Add(1,"Pen"); dt.Rows.Add(2,"Pencil"); DropDownList1.DataSource=dt; DropDownList1.DataTextField="ProdName"; DropDownList1.DataValueField="ProdID"; DropDownList1.DataBind(); } } [/code] | |
Re: [b]>I want to get files(.doc,.docx) from Directory.[/b] Are those files are located under the root of your web-app? [b]>Is there any solution?[/b] Yes. Office-InterOp service. | |
| |
Re: [b]>To Show Sanskrit Font Properly on Web Page..... [/b] Use [URL="http://unicode.org/"]UniCode[/URL] [URL="http://www.alanwood.net/unicode/fonts.html"]Fonts[/URL]. | |
Re: System.IO.File.Delete method. for example, [code] file="~/samples/file.txt"; System.IO.File.Delete(MapPath(file)); [/code] | |
Re: [b]>for what we use {0} here??[/b] It is called Format parameter. A zero-based integer that indicates which element in a list of objects to format. [code] Console.WriteLine("Result is {0}",div); [/code] See [URL="http://msdn.microsoft.com/en-us/library/aa331875%28VS.71%29.aspx"]format parameters[/URL]. | |
Re: [b]>Select query error while retrieve data[/b] Please post that error. | |
Re: [b]>I would like to know how to pass the "strUserName from LoginForm to Form1[/b] There are number of ways to do that but here is simpler one. [code] public static string strUserName; private void buttonLogin_Click(object sender, EventArgs e) { strUserName = textBox1.Text; string strPassword = textBox2.Text; bool LoginSucceeded = CheckingLogin(strUserName, … | |
Re: [b]>Auto Customer ID generator. Is this possible? How do I get this started?[/b] Use AutoNumber column type in case you are using MS-Access. For MS-SQL server, set Identity column (autonumber) attribute. | |
Re: [b]>DB file cannot be found chck the path to the DB [/b] Use absolute path. [code] public string strCon = @"Data Source =x:\folder\MyMobilePhoneDB.sdf; Password =123@asu"; [/code] | |
Re: [b]>that the module of it not loaded..[/b] Check CF and Window Mobile components. Maybe there is a possibility, that you might have to reinstalled the Compact Framework and Windows Mobile. | |
Re: Have a look at CodeProject article - [url]http://www.codeproject.com/KB/GDI-plus/floodfillincsharp.aspx[/url] | |
Re: Char [b]@[/b] escapes a string so remove extra blackslash. [code] System.Diagnostics.Process.Start(@"F:\DotNet\Project\Web\Web\Web\book\work.txt"); [/code] | |
Re: [b]>vb.net step by step tutorial.[/b] Have a look at - [url]http://www.startvbdotnet.com/[/url] | |
Re: [b]>Sending HTML Msg. using system.net.mail[/b] HTML mail message requires Mime type (text/html). Take a look at this MSDN [URL="http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.alternateviews.aspx"]article[/URL]. | |
Re: [b]>can someone tell me how to clear the form upon load so that none of the textbox fierlds have data within them?[/b] I'm not quite following the problem. If you don't want to display data on form load then remove that particular code. | |
Re: [b]>if i only wants to view the file without saving it what should i use there.[/b] Inline content is displayed to the user. Use Content-Disposition; inline; header. [b]>if i want to download a file and then that downloaded file will be deleted from database..[/b] System.IO.File.Delete method. [code] string file="~/download/file.zip"; ..... … | |
Re: [b]How will i add lesson to chapters??[/b] Sorry, I'm not quite following the problem. [b]>is it possible in vb.net?[/b] Possible. |
The End.