designing issue?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • karthimca07
    New Member
    • Nov 2008
    • 2

    designing issue?

    Hi experts,
    For my application i like to follow same design format in all windows forms. like actions buttons and navigation buttons on either side of the window(left and right). when mouse pointer enters left end or right end of the scrren i like to display the toolbars with buttons like Add,Save,Update ,etc. how can i achieve this? since im beginner in vb.net i hv no ideas..... awaiting for favourable reply...... thanks in advance
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    What have you tried so far?
    Are you developing a web application or windows application?
    What language are you using?
    Have you taken a look at the ToolBox in Visual Studio for an idea of the controls that you have available to you for designing screens?


    All the information you need on any .NET controls can be found in the MSDN Library. This resource should get you pointed in the right direction. I recommend bookmarking the MSDN Library and using it as your primary resource when developing in .NET.

    Please take the time to research the problem before you post your question. The experts here are more than willing to help you with a specific problem but you have to do your part to learn the basics. Please take the time to read over the posting guidelines specifically the section on Before you post your question.

    -Frinny

    Comment

    • karthimca07
      New Member
      • Nov 2008
      • 2

      #3
      Hi experts,
      I tried with toolstrip container. it has left and right panel, in which i added tool strip buttons.

      in form load event i forced the panels to visible false.

      i tried to toggle the visibility of left and right panels when the mouse pointer touches either left or right end of the form. its not working.

      Comment

      • joedeene
        Contributor
        • Jul 2008
        • 579

        #4
        Originally posted by karthimca07
        Hi experts,
        I tried with toolstrip container. it has left and right panel, in which i added tool strip buttons.

        in form load event i forced the panels to visible false.

        i tried to toggle the visibility of left and right panels when the mouse pointer touches either left or right end of the form. its not working.
        This worked for me in a windows form;

        Code:
               private void Form1_MouseMove(object sender, MouseEventArgs e)
                {
                    if (e.X >= panel1.Location.X)
                    {
                        if (e.X < panel1.Location.X + 100)
                        {
                            panel1.Visible = true;
                        }
                        else
                        {
                            panel1.Visible = false;
                        }
        
                    }
                    else
                    {
                        panel1.Visible = false;
                    }
                }
        Basically, when the mouse's x coordinate is between the panel's x plus it's width. I did it this way rather than using the panel mousehover handler because you can change when you want to show panel 1, rather than when it's hovering the panel. And I did this in a Windows Form, it should be near the same, if not already.

        So, does that help?

        joedeene

        Comment

        Working...