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
B

BabyEmperor

@BabyEmperor
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Which of the following is faster
    B BabyEmperor

    Thanks Briga, dotnethead, and Steve for your replies. As suggested by briga, i ran a test program with loop of 9999999. When i run the test about many times, each time the result was different. Some times Case #1,#2,#3 all took same time, at times #1 was the fastest, at times #2 , another time #3 and at other times there was a tie b/w the cases. so could not reach a conclusion. As Steve pointed out [it was the reason i posted the question] #1 involves an implicit type conversion [integer is converted to boolean], #2 a comparison and #3 an explicit type conversion, it is difficult to say which would run faster. After much thought i too reached the conclusion that #2 is better [it atleast explains the code better] Thanks every one

    Visual Basic question

  • Which of the following is faster
    B BabyEmperor

    Which of the following is faster : 1. if drRows.Length then end if 2. if drrows.length > 0 then end if 3. if Cbool(drrows.length) then end if Any Suggestions? Thanks

    Visual Basic question

  • In Datagrid the Error tooltip does not pop up even though ErrorIcon is displayed
    B BabyEmperor

    Hi, i have made a form which follows the following logic :- The form displays various panels which are used to get criterias from the user. then form.layout is suspended and the following algorithm executes : 1. Based on these criterias i add various column to a datatable say dtRecordsReturned. 2. Then datagridcolumnstyles [some of them are instances of classes i inherited from datagridcolumnstyle] are made and added to a datagridtablestyle , which is then added to the TableStyle property of a datagrid say dgRecordsReturned. 3. the dtRecordsReturned is then bound to a dataview dvRecordsReturned. 4. dvRecordsReturned is bound to the dgRecordsReturned. 5. then records(rows) are added to dtRecordsReturned by executing a sqlQuery. 6. Then Values of some of the columns of each row are set according to the criterias got from the user. While doing this some special conditions may arise, which i am displaying to the user by setting an errormessage on that particulare column by calling .SetColumnError(columnname,strSpecialContidionDescription). 7. then the panel [pnlRecordsReturned] which contains dgRecordsReturned is brought to the front by calling pnlRecordsReturned.BringToFront(). 8.Finally the form.Resumelayout() is called. Now the Problem i am facing is that though the ColumnErrorIcon is displayed in the columns, no tooltip message pops up when the cursor is hovered over the icon. I tried using .RowError instead of .SetColumnError still the result is similar. ErrorIcon appears in the rowheader but no tooltip message pops up. Any Suggestions? Thanks

    Visual Basic help algorithms 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