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

5,346 Posted Topics

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
24
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
2K
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
833
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
275
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
200
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
708
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
702
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
541
Member Avatar for cutedipti

[B]Compound literals[/B] C99 added compound literals, is based on the brace-enclosed initializer syntax. The motivation for adding this feature to C99 was its notational conciseness, convenience, and usefulness, rather than an abstract desire to make struct a first class type. Sample - 1 [code=c] #include <stdio.h> // compound literals. struct …

Member Avatar for mungara
0
1K
Member Avatar for vadarfone

Have a look at CodeProject article - [URL="http://www.codeproject.com/KB/edit/alphablendtextbox.aspx"]http://www.codeproject.com/KB/edit/alphablendtextbox.aspx[/URL]

Member Avatar for kplcjl
0
5K
Member Avatar for silent.saqi
Member Avatar for myaccount
0
8K
Member Avatar for yoyoo

Have a look at this [URL="http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/c1d74b1d-d49b-4dec-b48c-d42c11accddd"]thread[/URL].

Member Avatar for muka12
0
73
Member Avatar for sydoggs

You should save both date & time. However, use DateTime or Timespan to parse the string time. Example: DateTime date = DateTime.Parse("10:10:10 AM"); Console.WriteLine(date.TimeOfDay); TimeSpan time = TimeSpan.Parse("20:10:10"); Console.WriteLine(time); Or you can use TryParse / TryParseExact methods to parse the string.

Member Avatar for kvprajapati
0
326
Member Avatar for ASHISH_15

Use CSS `width,height, and overflow` properties. PS: Try to learn and use twitter bootstrap

Member Avatar for kvprajapati
0
101
Member Avatar for Maideen

You should have to use `System.DateTime` type. Dim newDate = DateTime.ParseExact("20111120", "yyyyMMdd", CultureInfo.InvariantCulture) Me.txtSoNo.text=newDate.ToString("yyyyMMdd")

Member Avatar for kvprajapati
0
1K
Member Avatar for ~s.o.s~
Member Avatar for 111ron222

Use System.XML namespace DOM classes. getElementsByTagName method. [CODE=C#] ..... System.Xml.XmlDocument doc = new System.Xml.XmlDocument(); doc.Load(@"c:\csnet\46\CSonsole\a1.xml"); System.Xml.XmlElement root = doc.DocumentElement; System.Xml.XmlNodeList lst = root.GetElementsByTagName("id"); foreach (System.Xml.XmlNode n in lst) { Console.WriteLine(n.InnerText); // print id text } [/CODE]

Member Avatar for shwetawaghmare
0
922
Member Avatar for Lee21

Have a look at this thread [url]http://www.daniweb.com/forums/post1122852.html#post1122852[/url] please.

Member Avatar for mankuji
0
1K
Member Avatar for kazek

[QUOTE]If all experts are agree then there is a problem.[/QUOTE] -- Unknown. Great !!! I appreciate your time.

Member Avatar for stultuske
0
5K
Member Avatar for alex.alekan

Use @parameterized sql statement and that want you can compare data without formating data into string. Example: string sql = "select txt from [Sheet2$] where HHMM=@dateParam"; OleDbCommand command = new OleDbCommand(sql,conn); command.Parameters.AddWithValue("@dateParam",maskedTextBox1.Text);

Member Avatar for kvprajapati
0
204
Member Avatar for sajee1

Welcome, You can do (search from database) in many ways - executing queirues or LINQ to SQL or EntityDataModel. Please show your code to us so we can suggest or guide you on that issue.

Member Avatar for kvprajapati
0
186
Member Avatar for rehpolin

Not so hard. Take a look at - [url]http://en.wikipedia.org/wiki/K-means_clustering[/url]

Member Avatar for Cesar_3
0
51
Member Avatar for VIeditorlover

[b]>how to protect .NET exe and dlls against decompilation?.[/b] Some kind of decompilation will always be possible using reflection and similar tools. (Consider, if it were impossible, the processor/runtime couldn't understand it either.) [b]>portability is not an issue - the only goal is strong protection.[/b] Try to [b]precompile[/b] assemblies into …

Member Avatar for JOSheaIV
1
1K
Member Avatar for sciprog22

Your code invokes `toString()` method (when an object reference is used in string context) and it returns string representation of an object. Take a look at [toString() - Oracle Tutorial.](http://docs.oracle.com/javase/tutorial/java/IandI/objectclass.html)

Member Avatar for sciprog22
0
181
Member Avatar for Gurleen_Kaur
Member Avatar for du_1
0
321
Member Avatar for JiThU89

[b]>I want to make it easy to creating new language files. And i don't want to use the built-in VS stuffs. [/b] Disjoint presentation from programming. Resource bundles (Resource files) are easier and faster to use than xml. In my experience, it is easier to have all of your localized …

Member Avatar for doxa.paradoxa
0
569
Member Avatar for eluciveLu

You need to read request parameter value: `String createfolder = request.getParameter("createfolder");` Then, construct the `path` (the location where you wish to create a folder): //Create a new folder at app context ` String realPath = application.getRealPath(createFolder);`

Member Avatar for stultuske
0
2K
Member Avatar for y2kshane

>how to resize a image thtz lager than picturebox?? You can use SizeMode property of picture control. [code] pictureBox1.SizeMode=PictureBoxSizeMode.AutoSize [/code]

Member Avatar for Reverend Jim
0
9K

The End.