5,346 Posted Topics

Member Avatar for linkpraveen

@linkpraveen - I meant to say that "Value Types" goes into class and "Reference" Types goes into HEAP. I think you misinterpret the post #2. Take a look at this blog - [URL="http://blogs.msdn.com/ericlippert/archive/2009/04/27/the-stack-is-an-implementation-detail.aspx"]http://blogs.msdn.com/ericlippert/archive/2009/04/27/the-stack-is-an-implementation-detail.aspx[/URL]

Member Avatar for sknake
0
155
Member Avatar for ryno365

Check the code of Action and Form (bean) classes. Review the LoginAction and LoginForm classes.

Member Avatar for kvprajapati
0
176
Member Avatar for Creator00

dragonbone, Don't post source code [icode]until opening poster has put some effort.[/icode] Use [b]int main()[/b]. I use int main() - Depending on the exit code of the executable the initating application can determine if the invocation was a successful one or a failure. Its good when someone wants to wrap …

Member Avatar for Creator00
0
122
Member Avatar for S2009
Member Avatar for awestove

Check the filenames. [code] While d1 <= d2 If File.Exists("....") = False Then ........ End If d1 = d1 + 1 End While [/code]

Member Avatar for kvprajapati
0
112
Member Avatar for Darth Vader

@Darth : How to ->Add each line from TextBox1? Two ways: First, [code=Managed C++] List<String^>^ list=gcnew List<String^>(); for each(String^ str in textBox1->Lines){ list->Add(str); } [/code] Second, [code=Manged C++] List<String^>^ list=gcnew List<String^>(textBox1->Lines); [/code]

Member Avatar for kvprajapati
0
121
Member Avatar for gianrocks

It's a MSDN online page - [URL="http://msdn.microsoft.com/en-us/data/aa937699.aspx"]ADO.NET[/URL]. [QUOTE]SUMMARY: ADO.NET is a data-access technology that enables applications to connect to data stores and manipulate data contained in them in various ways. It is based on the .NET Framework and it is highly integrated with the rest of the Framework class library. …

Member Avatar for gianrocks
0
116
Member Avatar for facadie

Push initial values to an array, [code] .... arr[0]=cmb1.Text; .... [/code] Detect changes, [code] if(ar[0]!=cmd1.Text ......) { // statements } [/code]

Member Avatar for facadie
0
2K
Member Avatar for russey123

[B]russy123[/B], GCC is a free, open source, high quality, compiler. You can get it with [URL="http://www.cygwin.com/"]cygwin[/URL]. Microsoft makes a C compiler that comes with Visual Studio, which is Microsoft's integrated development environment. You can download the "Express" edition of Visual C++ to give it a try. Also, Intel makes a …

Member Avatar for kvprajapati
0
78
Member Avatar for Dajer

Use the classes of namespace [B]System.Globalization [/B] - [URL="http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx"]CultureInfo[/URL] class

Member Avatar for mIssy_ricco
0
278
Member Avatar for Traicey

Some confusion: 1. Do now show the data when user leave textbox empty and click on button. For this case, do not execute you code - use if statement to check the value of textbox. 2. Show a record for the book title entered into textbox. Do not use like …

Member Avatar for obicerno
0
192
Member Avatar for fafi_ali

Take a look at - [URL="http://msdn.microsoft.com/en-us/library/ms225227(VS.80).aspx"]Deployment Overview[/URL]

Member Avatar for fafi_ali
0
110
Member Avatar for lotrsimp12345

You forget to assign [b]siz[/b] member. [code] my_int_vector::my_int_vector(const my_int_vector& b) { numbers=new int[b.capacit]; siz=b.siz; for(size_t j=0; j<b.siz; j++) { numbers[j]=b.numbers[j]; } } [/code]

Member Avatar for mrnutty
0
253
Member Avatar for perumar

If your dynamic array is integer then, [code] Dim a() As Integer = {11, 22, 33, 44} System.IO.File.WriteAllLines("file.txt", Array.ConvertAll(a, New Converter(Of Integer, String)(Function(t As Integer) t.ToString()))) [/code] For string array, [code] Dim S() as String={"10","20"} System.IO.File..WriteAllLines("file.txt", S) [/code]

Member Avatar for CodeDoctor
0
1K
Member Avatar for MervinKoops

Take a look at online book at google - [URL="http://books.google.co.in/books?id=oVLDoO-V67cC&pg=PA420&lpg=PA420&dq=Point+is+lie+inside+the+circle+or+not&source=bl&ots=pzjId7LKuD&sig=FuI2I0JQ_rmPkM4D3VHBUejpdGA&hl=en&ei=Wm24SpHJINHglAfC0NzFDg&sa=X&oi=book_result&ct=result&resnum=8#v=onepage&q=Point%20is%20lie%20inside%20the%20circle%20or%20not&f=false"]Physics for game programmers By Grant Palmer[/URL] [QUOTE]SUMMARY: Determine if the point is inside the circle by computing the distance from the point to the center of the circle. If the distance is less than 1, the point is inside. [code] …

Member Avatar for MervinKoops
0
185
Member Avatar for serkan sendur

[b]OwnerDraw[/b] listview; It expands escape seq,. chars. [code] .... listView1.OwnerDraw = true; listView1.DrawItem += new DrawListViewItemEventHandler(listView1_DrawItem); } void listView1_DrawItem(object sender, DrawListViewItemEventArgs e) { e.DrawText(TextFormatFlags.Default | TextFormatFlags.ExpandTabs | TextFormatFlags.ExternalLeading ); } [/code]

Member Avatar for kvprajapati
1
389
Member Avatar for august_2007
Member Avatar for kvprajapati
0
383
Member Avatar for scantraXx-

scantraXx, Don't put piggy word like [b]urgent[/b]. It's a bad manner. Take a look at [URL="http://www.cplusplus.com/reference/stl/vector/"]Vector Reference[/URL].

Member Avatar for Alex_
0
165
Member Avatar for jamesrobb

You can't really parse HTML with regular expressions. It's too complex. Regular expression won't handle <![CDATA[ sections and reference enities correctly at all. I recommend [URL="http://htmlagilitypack.codeplex.com/"]Html Agility Pack[/URL] [QUOTE]SUMMARY: This is an agile HTML parser that builds a read/write DOM and supports plain XPATH or XSLT (you actually don't HAVE …

Member Avatar for sknake
0
768
Member Avatar for ctrl-alt-del

Use [URL="http://www.db4o.com/DownloadNow.aspx"]db4o's open source object database engine[/URL].

Member Avatar for kvprajapati
0
181
Member Avatar for hemchantra

How to: Display Images in Cells of the Windows Forms [URL="http://msdn.microsoft.com/en-us/library/2ab8kd75.aspx"]DataGridView Control?[/URL] [code] Public Sub CreateGraphicsColumn() Dim treeIcon As New Icon(Me.GetType(), "tree.ico") Dim iconColumn As New DataGridViewImageColumn() With iconColumn .Image = treeIcon.ToBitmap() .Name = "Tree" .HeaderText = "Nice tree" End With dataGridView1.Columns.Insert(2, iconColumn) End Sub [/code]

Member Avatar for GeekByChoiCe
0
2K
Member Avatar for serkan sendur
Member Avatar for helmX

Take a look at tutorial [URL="http://www.codeguru.com/vb/controls/vbnet_controls/listview/article.php/c3979"]How to fill ListView with ADO.NET dataset[/URL]

Member Avatar for kvprajapati
0
92
Member Avatar for nilesh.kalyanka

Don't assign a value to each cell. [code] private void Form1_Load(object sender, EventArgs e) { DataTable dt = new DataTable(); for (int i = 1; i <= 100; i++){ dt.Columns.Add("i"+i, typeof(Image)); } for (int i = 1; i <= 100; i++){ DataRow r = dt.NewRow(); for (int j = 0; …

Member Avatar for nilesh.kalyanka
0
178
Member Avatar for aomran

aomran, Welcome to daniweb. Please "Edit" your post. Use [code] tag to post source code.

Member Avatar for mrnutty
0
168
Member Avatar for Wolf CCMLG

Little correction to AD's post, [code] int DivSales::totalSales; [/code] To Wolf CCMLG, Take a look at [URL="http://www.cplusplus.com/doc/tutorial/classes2/"]static members[/URL] SUMMARY: [QUOTE]In fact, static members have the same properties as global variables but they enjoy class scope. For that reason, and to avoid them to be declared several times, we can only …

Member Avatar for Wolf CCMLG
0
207
Member Avatar for jonsca

Take a look at this code, [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Linq.Expressions; class MainApp { static void Main() { List<MyData> items = new List<MyData>(); items.Add(new MyData("A", "1")); items.Add(new MyData("A", "2")); items.Add(new MyData("B", "3")); items.Add(new MyData("A", "4")); var result = from all in items group all …

Member Avatar for jonsca
0
219
Member Avatar for timon_zed

Don't update or subtract values. Use aggregate sql functions. For example, 1. Calculate the sum of quantity of a specific product in your purchase table. 2. Calculate the sum of quantity of a specific product in your sales table. 3. Current stock = Sum of qty of purchase - Sum …

Member Avatar for timon_zed
0
467
Member Avatar for c-code-it

Maybe scott's suggestion is solution of your problem but I suggest [URL="http://www.codeproject.com/KB/dotnet/datetimeformat.aspx?display=PrintAll&fid=14260&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=432476"]Globalization[/URL].

Member Avatar for sknake
0
129
Member Avatar for danielagaba

Take a look at [URL="http://www.microsoft.com/dynamics/crm/using/customizing/reporttutorial.mspx"]http://www.microsoft.com/dynamics/crm/using/customizing/reporttutorial.mspx[/URL]

Member Avatar for CodeDoctor
0
112
Member Avatar for gk0110

Pagination requires both, server code (java) and client code (xhtml, javascript).

Member Avatar for ~s.o.s~
0
270
Member Avatar for Jumbo12

Text from [b]wiki[/b], [b][URL="http://en.wikipedia.org/wiki/Common_Language_Infrastructure"]Common Language Infrastructure[/URL][/b] The Common Language Infrastructure (CLI) is an open specification (published under ECMA-335 and ISO/IEC 23271) developed by Microsoft that describes the executable code and runtime environment that form the core of the Microsoft .NET Framework and the free and open source implementations Mono and …

Member Avatar for CodeDoctor
0
95
Member Avatar for sonia sardana

Use [b]parenthesis[/b]. [code] listView1.Items.Add(lcount.ToString()); [/code]

Member Avatar for DdoubleD
0
233
Member Avatar for ceyesuma

@ceyesuma : Can this be setup in netbeans? -- YES or NO - It may be. But I have a suggestion for you. Read & act this tutorial throughly - [URL="http://java.sun.com/docs/books/tutorial/jdbc/index.html"]JDBC(TM) Database Access[/URL]

Member Avatar for ceyesuma
0
238
Member Avatar for rajaseeth

Try it, [code] Regex r = new Regex(@"[a-z]:\\([a-z1-9\.\s]+\\)+[a-z1-9\.\s]+\.\w+", RegexOptions.IgnoreCase); MatchCollection m = r.Matches(url); foreach (var t in m){ Console.WriteLine(t); } [/code]

Member Avatar for kvprajapati
0
104
Member Avatar for ashok90
Member Avatar for rajeev_rsd

Take a look at [URL="http://msdn.microsoft.com/en-us/library/aa384252(VS.85).aspx"]WinHTTP[/URL] C/C++ API Reference.

Member Avatar for kvprajapati
0
142
Member Avatar for =OTS=G-Man

Take a look at MSDN page - [URL="http://msdn.microsoft.com/en-us/library/txafckwd.aspx"]Composite Formatting[/URL]

Member Avatar for sknake
1
191
Member Avatar for yonghc

You misspelt [b]cout[/b], [code] //arrcon[1]=*scon; //[b]count[/b] << "arrcon[1] " << arrcon[1]; [/code] [b]string arrcon[5][35];[/b] is a two-dimensional string array, [code] arrcon[0][0]="Hello"; arrcon[0][1]=*scon; cout << "\n" << arrcon[0][0] << " " << arrcon[0][1]; [/code]

Member Avatar for yonghc
0
409
Member Avatar for Lukezzz

FileAccess must be [b]FileAccess:Write[/b] when [b]FileMode::Append[/b] is used. [code] List<String^>^ FillUp = gcnew List<String^>(); for (int i = 0; i < 10; i++){ FillUp->Add("Hello"); } MemoryStream^ ms=gcnew MemoryStream(); for each(String^ s in FillUp){ array<Byte>^ b=System::Text::Encoding::UTF8->GetBytes(s); ms->Write(b,0,b->Length); } String^ OutPath = "C:\\csnet\\OutFile.txt"; FileStream^ fs = gcnew FileStream(OutPath, FileMode::Append, FileAccess::Write); ms->WriteTo(fs); fs->Flush(); …

Member Avatar for kvprajapati
0
186
Member Avatar for linkpraveen

Text from [b][URL="http://en.wikipedia.org/wiki/Generic_programming"]WikiPidia[/URL][/b], SUMMARY: [B]Generic programming [/B] is a style of computer programming in which algorithms are written in terms of to-be-specified-later types that are then instantiated when needed for specific types provided as parameters. [URL="http://msdn.microsoft.com/en-us/library/512aeb7t.aspx"]Generics C# Programming Guide[/URL]

Member Avatar for Rashakil Fol
0
2K
Member Avatar for networkmancer

Take a look at [URL="http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/7c6ec2ca-9f58-4a01-b309-c4fb6cffc704"]http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/7c6ec2ca-9f58-4a01-b309-c4fb6cffc704[/URL]

Member Avatar for kvprajapati
0
91
Member Avatar for vampke

>If I insert this date in my access database the days and months are switched (mm/dd instead of dd/mm). It is not a problem. >What could be causing this? Regional Settings - Control Panel. (Don't change country/language/datetime settings) Solution: Use format characters when displaying data.

Member Avatar for sknake
0
178
Member Avatar for khemalatha

Try it, [code] DataTable dt = new DataTable(); private void Form1_Load(object sender, EventArgs e) { dt.Columns.Add("No", typeof(int)); dt.Columns.Add("CheckBox",typeof(bool)); for (int i = 1; i < 10; i++) dt.Rows.Add(i, false); dataGridView1.DataSource = dt; } private void checkBox1_CheckedChanged(object sender, EventArgs e) { foreach (DataRow r in dt.Rows) r[1] = checkBox1.Checked; } [/code]

Member Avatar for sknake
0
2K
Member Avatar for gretty
Member Avatar for mrnutty
0
125
Member Avatar for Lukezzz

[b]Missing evidence.[/b] Isolated storage requires evidence (information about the assembly and its origin) in order to determine the identity of the code and connect it to the correct associated file space. Without this information, isolated storage cannot be used. Take a look at this article - [URL="http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragefilestream(VS.71).aspx"]http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragefilestream(VS.71).aspx[/URL]

Member Avatar for kvprajapati
0
322
Member Avatar for DustinS

Arrays are [URL="http://msdn.microsoft.com/en-us/library/490f96s2(VS.71).aspx"]reference[/URL] types.

Member Avatar for DustinS
0
218
Member Avatar for sacredmaiden

Welcome sacredmaiden, Show us your code work please. Read [URL="http://www.daniweb.com/forums/announcement8-2.html"]Homework policy[/URL]. Use bb code tag to post your code work. See, [URL="http://www.daniweb.com/forums/announcement8-3.html"]How to use code tags?[/URL]

Member Avatar for Sameer.coder
0
117
Member Avatar for murid
Member Avatar for serkan sendur

Here is my contribution, [code] NameValueCollection query = System.Web.HttpUtility.ParseQueryString("A=10&B=20&C=30"); Console.WriteLine(query["A"] + " " + query["B"] + " " + query["C"]); [/code]

Member Avatar for kvprajapati
1
1K

The End.