Results 1 to 4 of 4

Thread: Application Design As Webpage !

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2006
    Posts
    7

    Exclamation Application Design As Webpage !

    Hi,
    I am trying to create an application that looks and works like a webpage. For example, a webpage has table with two columns, on the left columns are all the links, on the right column, data corresponding the left column hyperlinks is displayed. I want something on similar lines in VB6.

    All command button and links to several different forms are on right side, and the forms pertaining to the button/image/link on left side should be visible on right side.

    I was able to get something started on the same lines, however there are few things I am getting stuck at.

    Before you go through the queries, please download the accompanying zip file and try runing the application.

    1) The forms should stay a particular distance from the top. That means the top and and left are always defined. I tried something, and it aint working the was I want as on resizing the main form, the forms loaded within that are not positionin properply

    2) Also the first time the forms loads, its top position is differnt and next time the form position is different.

    3) Once the form is loaded, the main form becomes inactive, though I know it would be like that, however what is required is that the main windows stays active and sub forms opening within that should work for them selves.

    I know there is concept of MDI forms as well, I tried that also but of no success.

    I hope you were able to understand what I looking forward to. So please do assist me on the same, and I will be really glad.

    Thanks in advance.

    Regards
    Lovely
    Attached Files Attached Files

  2. #2
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: Application Design As Webpage !

    Welcome to the forums

    Why would you want to use Forms-in-Forms? You can simply use PictureBox, Frame... or any other Container control (much easier and less riskable) and make it scrollable with some ScrollBar-s.

    Here's a sample on how to make Label-s link look-a-like. Create a control array of 'lblHyperlink' Labels, and set their .AutoSize property to True:
    VB Code:
    1. Option Explicit
    2.     Private mouseOverIndex As Integer
    3.  
    4. Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    5.     clearAllHyperlinks
    6. End Sub
    7.  
    8. Private Sub lblHyperlink_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
    9.     If mouseOverIndex <> Index Then
    10.         clearAllHyperlinks
    11.                 With lblHyperlink(Index)
    12.                     .FontBold = True
    13.                     .FontUnderline = True
    14.                     .ForeColor = vbBlue
    15.                 End With
    16.                     mouseOverIndex = Index
    17.     End If
    18. End Sub
    19.  
    20. Private Sub clearAllHyperlinks()
    21.     Dim i As Integer
    22.         For i = 0 To lblHyperlink.Count - 1
    23.             With lblHyperlink(i)
    24.                 .FontBold = False
    25.                 .FontUnderline = False
    26.                 .ForeColor = vbBlack
    27.             End With
    28.         Next i
    29.             mouseOverIndex = -1
    30. End Sub
    You may also want to try the WebBrowser control (menu Project>>Components>>Microsoft Internet Controls)...

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2006
    Posts
    7

    Re: Application Design As Webpage !

    Thanks for the reply.

    The idea of frames is what I like. left side tool bar containing all the images...and on right side we get the frames with all the controls...however controling that becomes very untidy...as evrything is on the same page....is it possible that we create some sort a control, which has all those frames as contained and other controls on it, and I call it when a button is click on the left side.

    And I was not able to control the width of frame to the form after leaving the left hand side toolbar out.

    Any suggestions.

    Regards
    Lovely

  4. #4

    Thread Starter
    New Member
    Join Date
    Dec 2006
    Posts
    7

    Re: Application Design As Webpage !

    This is what I want my application to look like...developed in vb...doesnt look like vb...get some desing into it...theblank space on right is where i want my different forms/containers/controls to appear.

    Frames are looking a good option...however it is too cumbersome at design time...anything else that i can do....like desing entire form and then display it in that white space or maybe desing the entire container with control out side the main form...however once command one is click...frame1 container appears with all the different controls....command 2 clicked...frame1 disappers and frame 2 appears...

    how to control the frame height, width is also coming as some errors....

    [IMG]app-design.jpg[/IMG]

    thanks in advance
    Attached Images Attached Images  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width