Posts
 
Reputation
Joined
Last Seen
Ranked #24
Strength to Increase Rep
+16
Strength to Decrease Rep
-4
89% Quality Score
Upvotes Received
641
Posts with Upvotes
581
Upvoting Members
288
Downvotes Received
71
Posts with Downvotes
68
Downvoting Members
50
295 Commented Posts
~2.09M People Reached
About Me

Hi All,

I'm a software developer and nothing else.

Favorite Tags
java x 476
c# x 453
c++ x 402
Member Avatar for Mike Askew

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)

Member Avatar for Shahzad111
17
3K
Member Avatar for imhim45

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 }

Member Avatar for Deathstr0k3
0
3K
Member Avatar for jyotiu

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.

Member Avatar for Ahmad_74
0
2K
Member Avatar for mspriyya

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 …

Member Avatar for kvprajapati
0
22
Member Avatar for devianleong

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

Member Avatar for Ansh8390
0
2K
Member Avatar for trippinz

[b]>Openfiledialog and Savefiledialog when i press cancel ! [/b] [code] .. DialogResult res = fdlg.ShowDialog(); if (res == DialogResult.Cancel) { return; } .. [/code]

Member Avatar for JamesCherrill
0
3K
Member Avatar for Blink383

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

Member Avatar for JamesCherrill
0
1K
Member Avatar for ayesha789

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

Member Avatar for AhsanZaman
0
8K
Member Avatar for judithSampathwa

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

Member Avatar for Renathu
0
8K
Member Avatar for Lokesh_S

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

Member Avatar for RabidDog5150
0
829
Member Avatar for Saidar

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

Member Avatar for ALex_67
0
2K
Member Avatar for kgenn

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]

Member Avatar for diafol
0
6K
Member Avatar for rick.eavans

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 …

Member Avatar for chilaka2
0
2K
Member Avatar for cwarn23

I have tested "Making PHP Extension in C++" successfully. I had used - XAMPP, Source code of PHP (downloaded separately), and VS2008.

Member Avatar for Muhammad_137
0
1K
Member Avatar for poifull

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]

Member Avatar for pritaeas
0
1K
Member Avatar for murid

Use BB code tags to present your source code. Read this [URL="http://www.devasp.net/net/articles/display/192.html"]article[/URL].

Member Avatar for Haleem_1
0
2K
Member Avatar for yawar260

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

Member Avatar for Santhosh_3
0
271
Member Avatar for Churchillrl
Member Avatar for eURe

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 …

Member Avatar for Fernando_10
0
4K
Member Avatar for Smith5646

Have a look at MSDN article - [URL="http://msdn.microsoft.com/en-us/library/bb165951(v=VS.90).aspx"]Solution (.Sln) File[/URL]

Member Avatar for Bryan Anthony
1
2K
Member Avatar for edcaryl

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]

Member Avatar for vinod_10
0
7K
Member Avatar for fhau013

Which version of VB you are using? Try the VB.NET Express edition (its free and downloaded from Microsoft's site)

Member Avatar for ankit sriva
0
1K
Member Avatar for nosfa

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 …

Member Avatar for kvprajapati
0
198
Member Avatar for Sree007

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.

Member Avatar for JonyGreen
0
1K
Member Avatar for thaha01

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 …

Member Avatar for davidsaini
0
706
Member Avatar for crazyhorse09

[CODE] Label1.Parent = PictureBox1 Label1.BackColor = Color.Transparent Label1.BringToFront() Label1.Location = New Point(20, 20) [/CODE]

Member Avatar for Yunoos Shiddique
0
15K
Member Avatar for jockfaire

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]

Member Avatar for AnandK
0
2K
Member Avatar for ganesh_bala

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]

Member Avatar for chandanraj
0
689
Member Avatar for padma525

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.

Member Avatar for sankartomogo
1
3K
Member Avatar for uri3000

There are number of open-source APIs. Try [htmldocs](http://www.htmldoc.org/).

Member Avatar for jmind123
0
538