- Strength to Increase Rep
- +16
- Strength to Decrease Rep
- -4
- Upvotes Received
- 641
- Posts with Upvotes
- 581
- Upvoting Members
- 288
- Downvotes Received
- 71
- Posts with Downvotes
- 68
- Downvoting Members
- 50
Hi All,
I'm a software developer and nothing else.
Re: I've started learning **C#** by reading **MSDN** resources: 1. [C# Language Specification](http://msdn.microsoft.com/en-us/library/ms228593.aspx) 2. [Visual C# Resources](http://msdn.microsoft.com/en-us/vstudio/hh341490.aspx) 3. [C# Reference](http://msdn.microsoft.com/en-us/library/618ayhy6.aspx) 4. [C# Programming Guide](http://msdn.microsoft.com/en-us/library/67ef8sbd.aspx) | |
Re: You have to define `factorial()` function and don't use *old* turboc compiler. Here you can find name of some [compilers](http://www.stroustrup.com/compilers.html). #include<iostream> int factorial(int); // function declaration int factorial(int value) //function definition { //code } int main() { //code } | |
Re: Please do not resurrect old threads. 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] Thread Closed. | |
Re: Well you need help and I'm happy. Here are some steps: 0. Create a ArrayList<String[]> to hold split strings. 1. Use BufferedReader to read the content of file line by line ( BufferedReader#readLine() method) 2. Use String#split() method to split the string and add an array into arrayList object Please … | |
Re: Try to *escape* the reserved field names and also use parameterized query. Dim sql = "SELECT [Username],[Password] FROM [AdminUser] WHERE [Username]=@user and [Password]=@pass" cmd = New OleDbCommand(sql, con) cmd.Parameters.AddWithValue("@user",Logintxt.Text) cmd.Parameters.AddWithValue("@pass",Passwordtxt.Text) con.Open() Dim dr As OleDbDataReader = cmd.ExecuteReader ... | |
Re: [b]>Openfiledialog and Savefiledialog when i press cancel ! [/b] [code] .. DialogResult res = fdlg.ShowDialog(); if (res == DialogResult.Cancel) { return; } .. [/code] | |
Re: Do not add `button` into `contentPane` of JFrame directly instead create a `JPanel (with FlowLayout)` and add that `button` in it. JPanel bottom=new JPanel(); bottom.add(button); frame.add(bottom, BorderLayout.SOUTH); | |
Re: >How to Approve,Edit,Delete? Here is a sample code. I have used emp table with following structure. [CODE=Sql] create table emp ( eno int primary key, ename varchar(50), edate date ) [/CODE] showemp1.php [CODE=PHP] <?php $server="localhost"; $user="root"; $pass="root"; $database="sampledb"; $cmd=$_POST["cmd"]; $eno=$_POST["eno"]; $ename=$_POST["ename"]; $edate=$_POST["edate"]; # Connect to database $cn=mysql_connect($server,$user,$pass); if(!$cn) { die … | |
Re: [QUOTE=judithSampathwa;1250511]i am taking it as a string parameter and the MS SQL datatype is money in the MDF file in visual studio. thankx[/QUOTE] Convert it to decimal. [code] decimal s; decimal.TryParse(valueFromDb, out s); maskedTextBox1.Text = s.ToString("$00000000.00"); [/code] | |
Re: [b]>Problem in adding image in word doc in C#[/b] You need to use [b]Word Object Model[/b]. Take a look at thread - [url]http://social.msdn.microsoft.com/forums/en-US/vsto/thread/5d68fa72-3fd2-49ca-bf4b-dce4c2899839/[/url] | |
Re: [b]>Merging multiple text files into one csv text file[/b] [code] System.IO.File.AppendAllText("common.txt", System.IO.File.ReadAllText("file1.txt")) System.IO.File.AppendAllText("common.txt", System.IO.File.ReadAllText("file2.txt")) .... [/code] | |
Re: Hi! I presume that your image is stored inside [B]Images[/B] folder under root of your web-app. Code your web-page [code] <head runat="server"> <style type="text/css"> .sample { background:url(Images/image1.jpg); } </style> </head> <body> <div class="sample"> <h1>Sample Text</h1> </div> </body> [/code] | |
Re: Connection will be busy till dataReader is not closed. [code] Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click exitwithout() Me.Close() End Sub Private Sub exitwithout() myCommand.Connection = myConnection myConnection.Open() myCommand.CommandText = "Select * from orders where o_id= " & val(txtb1.Text) dr = myCommand.ExecuteReader() Dim isfound as … | |
Re: I have tested "Making PHP Extension in C++" successfully. I had used - XAMPP, Source code of PHP (downloaded separately), and VS2008. | |
Re: Hi, You can't draw anything on a webpage directly instead you can generate drawing dynamically - [url]http://www.developerfusion.com/article/2569/creating-images-on-the-fly-with-aspnet/2/[/url] | |
Re: Use BB code tags to present your source code. Read this [URL="http://www.devasp.net/net/articles/display/192.html"]article[/URL]. | |
Re: [b]>creating labels at runtime.[/b] Instantiate the control class and add this object into form collection. [code] ... Label sam1=new Label(); sam1.Text="something."; sam1.Location=new Point(30,30); this.Controls.Add(sam1); ... [/code] | |
Re: Have a look at [url]http://www.codeproject.com/KB/vb/WebCapture.aspx[/url] | |
Re: Presume that the sql table named "fileTable" has filename(varchar(50)) and filedata(image) fields. [code] string cnStr = "your_connection_string"; string sql = "select filedata from fileTable where filename='sample.txt'"; string filename=saveFileDialog1.FileName; SqlDataAdapter adp = new SqlDataAdapter(sql, cnStr); DataTable dt = new DataTable(); adp.Fill(dt); if (dt.Rows.Count != 0) { byte[] b = (byte[])dt.Rows[0]["filedata"]; FileStream … | |
Re: Have a look at MSDN article - [URL="http://msdn.microsoft.com/en-us/library/bb165951(v=VS.90).aspx"]Solution (.Sln) File[/URL] | |
Re: We are glad you got it helpful.Please do not resurrect old threads. [icode]If you have any questions please ask. You are welcome to start your own threads.[/icode] Please read the rules before posting again - [url]http://www.daniweb.com/forums/thread78223.html[/url] and [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. [B]Thread Locked.[/B] | |
Re: Which version of VB you are using? Try the VB.NET Express edition (its free and downloaded from Microsoft's site) | |
Re: I guess, you want to request an action without adding parameters. Take a look at second parameter of action; it is non-nullable (value type). You need to convert `Char` type to `Nullable`. Function mostrar(cor As String, alinea? As Char) As ActionResult ViewBag.cor = cor ViewBag.alinea = alinea Return View() End … | |
Re: Hi, We appreciate your help. Have you ever noticed that the current thread is four years old? Please do not resurrect old threads or solved threads. If you want to ask question, start your own thread. 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] Thread Closed. | |
Re: Welcome @thaha01 Take a look at this code and try to understand how to display image on grid. [code] public class SampleImage { public string Path { get; set; } public Image Content { get; set; } } public class SampleImages : List<SampleImage> { } private void Form1_Load(object sender, EventArgs … | |
Re: [CODE] Label1.Parent = PictureBox1 Label1.BackColor = Color.Transparent Label1.BringToFront() Label1.Location = New Point(20, 20) [/CODE] | |
Re: Add TreeView control and set [b]internal[/b] value to the [B]Modifier[/B] and [b]false[/b] to [B]HideSelection [/B] property of TreeView1 of main or Parent form (say Form1). Click handler of button in child form (say Form2) [code] Form1 parent = this.MdiParent as Form1; if(parent.treeView1.SelectedNode!=null) parent.treeView1.SelectedNode.Nodes.Add(textBox1.Text); parent.treeView1.Refresh(); [/code] | |
Re: ganesh_bala, You normally use exit(0) if everything went ok. But if your program detects an error and decides to abort, you would use exit(1). Or you might use exit(1), exit(2), etc, with each exit code meaning some specific error. Read more about exit code - [URL="http://www.chicagotech.net/troubleshooting/exitcode0.htm"]http://www.chicagotech.net/troubleshooting/exitcode0.htm[/URL] | |
Re: You may visit : [URL="http://www.eephp.com/"]http://www.eephp.com/[/URL] [B]ExcelExplorer[/B] is a set of PHP5 classes that can read data from a MS Excel file without using COM, ODBC, etc. It can import data from binary Excel file (XLS) using only standard PHP functions. | |
Re: There are number of open-source APIs. Try [htmldocs](http://www.htmldoc.org/). |