Visual Basic 6.0 translation

Sunday, May 8, 2011

VB 6.0 - Make DataGrid Header Columns Equal To Each Others

Microsoft Visual Basic 6.0 Datagrid control trick
Say, we've DataGrid control called (DG) Connected to a database table, and we want to make the Header Columns' width equal to each other and equal the datagrid width at the same time .............

Private Sub DGHeader()
For Each Column In DG.Columns
    Column.Width = Me.Width / DG.Columns.Count
Next

End Sub

Note:
Not likely suggested to a many columns datagrid .

Visual Basic 6.0 Lessons, Tricks, Tutorials and help links :
- Visual Basic 6.0 Color Picker tool source code 

9 comments:

  1. An outstanding share! I've just forwarded this
    onto a friend who had been doing a little homework on this.
    And he in fact bought me lunch due to the fact that I discovered it for him...
    lol. So let me reword this.... Thank YOU for the meal!!
    But yeah, thanks for spending the time to talk about this subject here on your blog.



    Here is my website; TequilaEPock

    ReplyDelete
  2. Pretty! This has been an incredibly wonderful post. Thank you for providing
    these details.

    Feel free to surf to my blog; LaureenUAnand

    ReplyDelete
  3. I always emailed this blog post page to all my friends, since if like to read it afterward my links will
    too.

    my web-site - BrainNBillegas

    ReplyDelete
  4. Hi there! Do you know if they make any plugins to assist
    with SEO? I'm trying to get my blog to rank for some targeted keywords but
    I'm not seeing very good success. If you know of any please share.
    Cheers!

    Feel free to visit my blog; CheryQFedigan

    ReplyDelete
  5. I was recommended this website by my cousin. I am
    not sure whether this post is written by him as nobody else know
    such detailed about my problem. You are amazing!
    Thanks!

    Here is my blog ArlettaMPouge

    ReplyDelete
  6. Its like you learn my mind! You appear to know so much about this, such as
    you wrote the e book in it or something. I
    feel that you simply could do with a few p.c. to pressure the message house a little bit, however instead of that, that is wonderful blog.
    An excellent read. I'll definitely be back.

    my web-site ... CodyTReninger

    ReplyDelete
  7. It's an remarkable post in favor of all the online visitors; they will obtain advantage from it I
    am sure.

    Feel free to surf to my blog post ChasityQBothe

    ReplyDelete
  8. When I originally left a comment I seem to have clicked the -Notify me when new
    comments are added- checkbox and now every time a comment is
    added I get 4 emails with the same comment. Is there a way you can remove me from that service?

    Thanks a lot!

    Here is my web site CarrolGFjeseth

    ReplyDelete
  9. It's great that you are getting ideas from this paragraph as well
    as from our argument made at this time.

    Here is my blog - AugustusXThone

    ReplyDelete

visual basic 6 source code says (Hi)

Visual Basic Online Course

vb6 (63) Application Development (45) Visual Basic Online Course (45) Online Visual Basic Course (44) Visual Basic Help (44) Visual Basic Programming (42) IT Jobs (39) VB6 developer (38) Visual Basic Course (38) Visual Basic 6.0 (26) Microsoft Visual Basic 6.0 (25) VB6.0 (24) Visual Basic Programmers (24) vb 6.0 (24) visual basic programming tutorial (19) Third lesson (16) Source code download for Visual Basic 6.0 (14) Source code for Visual Basic 6.0 (10) visual basic tutorial (9) Visual Basic 6 (5) Visual Basic Courses (5) Lesson 3 (4) VB 0.6 - TreeView control (4) VB 0.6 With TreeView Control (4) VB6 Course (3) Create ActiveX (2) How to automate MS-Access from Visual Basic 6.0 (2) Add controls at runtime (1) Back up your Database (1) Change ActiveX icon (1) Change screen resolution (1) Create FTP (1) Crystal Reports 4.6 (1) Crystl32.ocx could not be loaded (1) DataGrid Columns re-size (1) Date Calculation (1) DateAdd Function (1) DateDiff function (1) FTP (1) Marquee Title Bar (1) Marquee VB 6.0 TitleBar (1) Method 'Action' of object 'CrystalCtrl' Failed (1) Microsoft Access with Visual Basic 6.0 (1) OpenSchema method (1) Save File Using CommonDilog (1) Track Database path (1) VB 0.6 - Registry (1) VB 0.6 With Registry Editor (1) VB 6.0 Access (1) VB 6.0 OOP (1) VB6 Access2003 ADO Like % (1) VB6 Add Date (1) VB6 Add Time (1) VB6 Date calculation (1) VB6 Subtract Date (1) Visual Basic Remote (1) Win7 (1) Windows7 (1) ms access networking details (1) remote Visual Basic DB (1) rounded and transparent forms (1) vb 0.6 style (1) vb 6.0 Remote Database (1)