Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
P

ProEnggSoft

@ProEnggSoft
About
Posts
54
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • digit roundoff
    P ProEnggSoft

    I want to add the following What is required when the number is half i.e. 200.5. Whether 200 or 201? By default Math.Round follows MidpointRounding.ToEven enumeration value.

    double number = 200.5;
    Console.WriteLine (Math.Round(number,0));
    Console.WriteLine (Math.Round(number,0, MidpointRounding.AwayFromZero));
    double number2 = 201.5;
    Console.WriteLine (Math.Round(number2,0));
    Console.WriteLine (Math.Round(number2,0, MidpointRounding.AwayFromZero));
    //The output from the above code will be
    //200
    //201
    //202
    //202

    So, if the next higher number is required always, when the value is half way, then MidpointRounding.AwayFromZero is to be used.

    C#

  • name of C# book
    P ProEnggSoft

    +5 for further links useful to beginners.

    C# csharp learning

  • name of C# book
    P ProEnggSoft

    Thank you.

    C# csharp learning

  • i want to start C#
    P ProEnggSoft

    Please see my answer here. http://www.codeproject.com/Messages/4203632/Re-name-of-Csharp-book.aspx[^] I think it may be useful to you

    C# csharp help learning

  • name of C# book
    P ProEnggSoft

    Illustrated CSharp by Daniel Solis, is good for a quick start, the subject is lucidly explained. http://www.apress.com/9781430232827[^] Then, detailed study can be done with Pro C# and .NET Platform by Andrew Troelsen http://www.apress.com/9781430225492[^] C# 4.0 in a Nutshell by Joseph Albahari, Ben Albahari is an excellent comprehensive reference book http://shop.oreilly.com/product/9780596800963.do?green=2FCA8E12-1FBB-5F44-BE6A-A7717A41D0FB&cmp=af-mybuy-9780596800963.IP[^] C Sharp in depth by Jon Skeet is an excellent book to know the corner cases in C Sharp http://manning.com/skeet2/[^] Effective C Sharp and More Effective C Sharp both by Bill Wagner are very good books, in which the author recommends best practices. http://www.amazon.com/Effective-Specific-Ways-Improve-Your/dp/0321245660[^] http://www.amazon.com/More-Effective-Specific-Ways-Improve/dp/0321485890[^] The LINQPad by Joseph Albahari is an excellent tool to quickly run and check the code snippets It can be downloaded from here http://www.linqpad.net/[^] The code samples from C# 4 in Nutshell are readily available for quick testing in LINQPad

    C# csharp learning

  • c++ or c# or vb.net
    P ProEnggSoft

    If you want low level systems programming or best performance for a large resource incentive application then C++ is good language as the C++ code is compiled directly as native code whereas in managed languages like C# and VB.NET the source code is first compiled to the MSIL and then to the native code by the JIT. But then be warned that the learning curve of C++ is steep and you have to be more cautious as the memory in C++ has to be managed by the programmer. A subtle mistake can lead to a memory leak which may be a nightmare. However, with Managed C++ both the C++ and managed C++ can be taken advantage of. If you want to program for a normal business application, managed programming language like VB.NET or C# is good. In managed programming language, the memory is handled by .NET run time, (Garbage Collector) and hence the programmer can be free from cumbersome memory management. Of course, there may be a little performance hit in managed programming languages when compared to C++, but the difference is not considerable in most of the Business Line Applications. The OOP concept also easy in managed programming languages like VB.NET and C# due to single inheritence rather than multiple inherintance in C++. VB.NET is more like C# except for syntatic difference and has very little resemblence to the VB6. So if you know VB6 it may be of little use. The advantage of C# is that there are so many books available on C# from beginner to advanced level. There are so many on line forums and articles available in C#. Most of the third party libraries are written in C# and the .NET itself is written in C#. If we are stuck in the program, it is somewhat easy to get guidance in C#. Hence, unless there is a specific requirement to use C++, I consider learning C# is easy and advantageous.

    C# csharp c++ com

  • restore
    P ProEnggSoft

    To the point. +5

    C# csharp database mysql sysadmin help

  • Issue with regular expression
    P ProEnggSoft

    Thank you

    C# regex help sysadmin json question

  • for get the tool bar
    P ProEnggSoft

    Thank you.

    C#

  • Textbox numbers values
    P ProEnggSoft

    Alternatively, if you want to show the user the fomatted text, the MaskedTextBox control with Mask property set as below may be used

    MaskTextBox1.Mask = "00 - 00 - 00"
    maskedTextBox1.TextMaskFormat = MaskFormat.IncludePromptAndLiterals
    string maskedText = maskedTextBox1.Text
    'Replace the blank characters
    maskedText = maskedText.Replace("_","0")

    The mask characters are explained here http://msdn.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.mask.aspx[^]

    Visual Basic help tutorial

  • How to create a chained combobox
    P ProEnggSoft

    The solution given by Bernhard Hiller works fine. Another option is in the DataSet designer or programmatically, create a relation between Country and Region DataTables like Relation Name: CountryRegion Parent Table: Country, primary key: CountryID Child Table: Region, Foreign key: CountryID

    'Now create a BindingSource for Country ComboBox
    Dim CountryBindingSource As New BindingSource(DataSet1, "Country")
    'Then create a binding source with CountryBindingSource as the parent using the relation
    Dim RegionBindingSource As New BindingSource(CountryBindingSource, "CountryRegion")
    'Now set the DataSource, DisplayMember and ValueMember properties of both the ComboBoxes
    comboBox1.DataSource = CountryBindingSource
    comboBox1.DisplayMember = "Country"
    comboBox1.ValueMember = "CountryID"
    comboBox2.DataSource = RegionBindingSource
    comboBox2.DisplayMember = "Region"
    comboBox2.ValueMember = "RegionID"

    Visual Basic database help tutorial

  • delet data
    P ProEnggSoft

    To clear data from each cell of a column of DataGridView, there is no method in DataGridViewColumn class. A method like the following can be used to clear all the cells of a column

    Public Sub ClearColumn(column As DataGridViewColumn)
    For Each row As DataGridViewRow In column.DataGridView.Rows
    row.Cells(column.Index).Value = Nothing
    Next
    End Sub

    Visual Basic tutorial

  • Issue with regular expression
    P ProEnggSoft

    The reason is the quantifier + is greedy quantifier, that is it matches everything that matches the pattern up to the end of the input string. In your case it matches password='e X65dere!@#$%^&*()' server = 'localhost' when = is put in the pattern as every thing in between the first ' and last ' matches according to the pattern given when = included. To change this behaviour use the lazy quantifier that is +? instead of + alone.

    C# regex help sysadmin json question

  • for get the tool bar
    P ProEnggSoft

    Have you seen the tutorial on building simple media player given here. http://visualcsharptutorials.com/net-framework/simple-media-player[^] I think it may be helpful to you.

    C#

  • Spam posts in Questions forum
    P ProEnggSoft

    There were lot of spam posts in the following question How to add a menu item into the Visual Studio 6.0 IDE from an Add-In made in VC++?[^] I have reported as spam. When went to the reputation history and clicked on How to add a menu item into the Visual Studio 6.0 IDE from an Add-In made in VC++?[^] it has opened the answer1 by Richard MacCutchan It seems I have mistakenly clicked on the link to this answer as there were so many spam answers. This is now at the top of the page as I have voted 5. Earlier it was mixed in the spam answers. If so I am extremely sorry. I could not find an option there to revert back. This may please be seen.

    Spam and Abuse Watch visual-studio question csharp c++ com

  • Cannot Resolve Path Error
    P ProEnggSoft

    5! :thumbsup:

    C# csharp linq help tutorial question

  • Cannot Resolve Path Error
    P ProEnggSoft

    5! :thumbsup:

    C# csharp linq help tutorial question

  • Cannot Resolve Path Error
    P ProEnggSoft

    5! :thumbsup:

    C# csharp linq help tutorial question

  • i need your help in ado.net
    P ProEnggSoft

    5!:thumbsup:

    C# csharp help

  • i prefer vb.net
    P ProEnggSoft

    Good advice. My 5!

    Windows Forms csharp database design question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups