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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
C

CICCIOLO69

@CICCIOLO69
About
Posts
4
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • datagridview sort
    C CICCIOLO69

    I have a datagridview bound to a dataview. The user click on a column : - add a sort column type system.int - set the dataview.sort to the column field clicked - add several datarows to the datatable ( partial total row ) - while adding the total rows update the column added at the beginning to a numeric sequential value ( 1,2,3,4,....) - when the rows end change the dataview.sort to the sort column If the user click to another column : - delete the rows that contains the total - redo everything for the new column that the user click on it The problem is that everything is ok, because I see in the datagrid the sort column added with the sequential correct value, but the dataview doesn't update . Can someone help ? Regards Andrew

    Windows Forms help question announcement

  • combobox and dropdownitems
    C CICCIOLO69

    Hi, I'm trying to add a sub menu as a combobox filled by a dataset. Adding as main menu item it works, as a submenu not. Here is the code. Dim dsCBO As New DataSet Dim GiacCBO As New ToolStripComboBox Dim strSQL As String = "select item_id,descr from items;" Dim strConn As String = Me.SQLConnString Dim daLookups As New SqlDataAdapter(strSQL, strConn) Try daLookups.Fill(dsCBO) With dsCBO .Tables(0).TableName = "Item" End With Catch excFill As Exception End Try With GiacCBO .ComboBox.DataSource = dsCBO.Tables("Item") .ComboBox.DisplayMember = "descr" .ComboBox.ValueMember = "item_id" End With AddHandler GiacCBO.SelectedIndexChanged, AddressOf GiacCBO_SelectedIndexChanged GiacenzaArticoloToolStripMenuItem.DropDownItems.Add(GiacCBO) The combobox is still empty ?!?! Substituting the last code row with: MenuStrip1.Items.Add(GiacCBO) the GiacCBO object show all records of the dsCBO. What's wrong ?

    Windows Forms question

  • math.round function has a bug?
    C CICCIOLO69

    I'll try to explain : look this example : Module Module1 Sub Main() Dim num AsDouble = 1.25 Console.WriteLine(Math.Round(num, 1, MidpointRounding.AwayFromZero)) num = 1.225 Console.WriteLine(Math.Round(num, 2, MidpointRounding.AwayFromZero)) num = 1.2225 Console.WriteLine(Math.Round(num, 3, MidpointRounding.AwayFromZero)) num = 1.22225 Console.WriteLine(Math.Round(num, 4, MidpointRounding.AwayFromZero)) num = 1.222225 Console.WriteLine(Math.Round(num, 5, MidpointRounding.AwayFromZero)) num = 1.2222225 Console.WriteLine(Math.Round(num, 6, MidpointRounding.AwayFromZero)) EndSub End Module The output of this sample console application is : 1,3 1,23 1,223 1,2223 1,22222 1,222223 Is there something wrong ? In my application I must use five decimal digits and this round method. Regards Andrea

    Visual Basic help tutorial question

  • rounding to five decimal digits
    C CICCIOLO69

    I'll try to explain : look this example : Module Module1 Sub Main() Dim num AsDouble = 1.25 Console.WriteLine(Math.Round(num, 1, MidpointRounding.AwayFromZero)) num = 1.225 Console.WriteLine(Math.Round(num, 2, MidpointRounding.AwayFromZero)) num = 1.2225 Console.WriteLine(Math.Round(num, 3, MidpointRounding.AwayFromZero)) num = 1.22225 Console.WriteLine(Math.Round(num, 4, MidpointRounding.AwayFromZero)) num = 1.222225 Console.WriteLine(Math.Round(num, 5, MidpointRounding.AwayFromZero)) num = 1.2222225 Console.WriteLine(Math.Round(num, 6, MidpointRounding.AwayFromZero)) EndSub End Module The output of this sample console application is : 1,3 1,23 1,223 1,2223 1,22222 1,222223 Is there something wrong ? In my application I must use five decimal digits and this round method. Regards Andrea

    .NET (Core and Framework) tutorial 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