5,346 Posted Topics

Member Avatar for Lolalola
Member Avatar for kvprajapati
0
91
Member Avatar for Seregwethrin

[b]>Can anyone guide me about this?[/b] [URL="http://msdn.microsoft.com/en-us/library/aa983613%28VS.71%29.aspx"]Inheritance.[/URL]

Member Avatar for Seregwethrin
0
85
Member Avatar for rohitmanhas_12

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

Member Avatar for rohitmanhas_12
0
350
Member Avatar for koushikha

[b]> I have a text box which contains numbers separated with commas.[/b] Use Split method of string object.

Member Avatar for koushikha
0
47
Member Avatar for tazko

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

Member Avatar for tazko
0
97
Member Avatar for arou_1

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

Member Avatar for arou_1
0
88
Member Avatar for martin71

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

Member Avatar for martin71
0
83
Member Avatar for DAVe3283

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

Member Avatar for Geekitygeek
0
817
Member Avatar for DaveTran

Have a look at - [URL="http://www.dotnetspider.com/tutorials/BestPractices.aspx"]Standards and Best Programming Practices[/URL]

Member Avatar for Geekitygeek
0
133
Member Avatar for jamio007

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

Member Avatar for jamio007
0
123
Member Avatar for DrueY

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

Member Avatar for kvprajapati
0
141
Member Avatar for fiaolle

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

Member Avatar for kvprajapati
0
182
Member Avatar for FidoNZ

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

Member Avatar for kvprajapati
0
74
Member Avatar for Danny_williams2

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

Member Avatar for kvprajapati
0
99
Member Avatar for ena_gb

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 …

Member Avatar for kvprajapati
0
398
Member Avatar for gauravvmahhajan

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

Member Avatar for kvprajapati
-2
2K
Member Avatar for BigPandaCake

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

Member Avatar for BigPandaCake
0
187
Member Avatar for rumpleteaser33

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

Member Avatar for rumpleteaser33
0
238
Member Avatar for Goodoory

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

Member Avatar for kvprajapati
0
42
Member Avatar for eyal27

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

Member Avatar for eyal27
0
962
Member Avatar for VIeditorlover

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

Member Avatar for kvprajapati
0
101
Member Avatar for student21

Comma (,) separator instead of "OR". [code=text] UPDATE TableName set col1=@p1,col2=@p2 where col3=@p3 [/code]

Member Avatar for Oxiegen
0
123
Member Avatar for tiwas

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

Member Avatar for kvprajapati
0
95
Member Avatar for tadhg

Please do not resurrect old thread. Please read before posting - [url]http://www.daniweb.com/forums/thread78223.html[/url] Thread closed.

Member Avatar for kvprajapati
0
3K
Member Avatar for digitalsindhx
Member Avatar for digitalsindhx
0
627
Member Avatar for lukeduke

[b]>and on the master page I have a search box.[/b] Wrap search box content into a panel.

Member Avatar for llarose
0
96
Member Avatar for Ana D.
Member Avatar for Talguy

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

Member Avatar for Talguy
0
467
Member Avatar for toko
Member Avatar for toko
0
93
Member Avatar for adobe71

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

Member Avatar for _V_
0
105
Member Avatar for riahc3

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

Member Avatar for Oxiegen
0
1K
Member Avatar for adil30000mir

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

Member Avatar for edgias
0
74
Member Avatar for hery

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

Member Avatar for kvprajapati
0
165
Member Avatar for Pankaj18

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

Member Avatar for kvprajapati
0
52
Member Avatar for london-G
Member Avatar for ramsham

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

Member Avatar for ramsham
0
171
Member Avatar for Pari13

System.IO.File.Delete method. for example, [code] file="~/samples/file.txt"; System.IO.File.Delete(MapPath(file)); [/code]

Member Avatar for amitshrivas
0
219
Member Avatar for loliana

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

Member Avatar for ddanbe
0
111
Member Avatar for jallan2010
Member Avatar for pritesh2010
0
148
Member Avatar for Mitja Bonca

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

Member Avatar for kvprajapati
0
258
Member Avatar for hiz460

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

Member Avatar for hiz460
0
85
Member Avatar for omar isaid

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

Member Avatar for omar isaid
0
560
Member Avatar for omar isaid

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

Member Avatar for omar isaid
0
393
Member Avatar for ejazmusavi

Have a look at CodeProject article - [url]http://www.codeproject.com/KB/GDI-plus/floodfillincsharp.aspx[/url]

Member Avatar for Geekitygeek
0
190
Member Avatar for adobe71

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]

Member Avatar for Geekitygeek
0
178
Member Avatar for arulamman6

[b]>vb.net step by step tutorial.[/b] Have a look at - [url]http://www.startvbdotnet.com/[/url]

Member Avatar for cuteaji
0
51
Member Avatar for sbanks_charles

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

Member Avatar for sbanks_charles
0
201
Member Avatar for RSP86

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

Member Avatar for RSP86
0
226
Member Avatar for amitshrivas

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

Member Avatar for amitshrivas
0
76
Member Avatar for mercury113

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

Member Avatar for mercury113
0
72

The End.