Message Box Help in VB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shailja
    New Member
    • Feb 2007
    • 123

    #1

    Message Box Help in VB

    Is it possible to change the font style of text displayed in user defined textbox in VB? If yes, plz suggest me code for that.
  • vijaydiwakar
    Contributor
    • Feb 2007
    • 579

    #2
    Originally posted by Shailja
    Is it possible to change the font style of text displayed in user defined textbox in VB? If yes, plz suggest me code for that.
    Oh i'm late
    what do u mean by user defined text box i.e. textbox drawn naturally or .ocx created by the user?

    Comment

    • willakawill
      Top Contributor
      • Oct 2006
      • 1646

      #3
      textboxes have a font property that you can alter

      Comment

      • Shailja
        New Member
        • Feb 2007
        • 123

        #4
        Originally posted by vijaydiwakar
        Oh i'm late
        what do u mean by user defined text box i.e. textbox drawn naturally or .ocx created by the user?
        Message Box that displays generally i mean by MsgBox(). Is it possible to alter the font of message box?

        Comment

        • vijaydiwakar
          Contributor
          • Feb 2007
          • 579

          #5
          Originally posted by Shailja
          Message Box that displays generally i mean by MsgBox(). Is it possible to alter the font of message box?
          With general vb code its not possible but i think u can do this with the help of some API else u have to create ur ctrl for custom preferances

          Comment

          • willakawill
            Top Contributor
            • Oct 2006
            • 1646

            #6
            Originally posted by Shailja
            Message Box that displays generally i mean by MsgBox(). Is it possible to alter the font of message box?
            Shailja, it is very simple to design your own message box, after all it is only a label with a button or 2. Create your own design and make a custom function to call it and get a return value. You can use it for all the code that you write from now on.

            Comment

            • vijaydiwakar
              Contributor
              • Feb 2007
              • 579

              #7
              Originally posted by willakawill
              Shailja, it is very simple to design your own message box, after all it is only a label with a button or 2. Create your own design and make a custom function to call it and get a return value. You can use it for all the code that you write from now on.
              Sorry I'm not descouraging .....
              but in fact she will face the problem when she like to check the results like
              if msgbox1(<someth ing>,,vbyesno)= vbyes then

              for such condition she must be fullyprepaired

              Comment

              • hariharanmca
                Top Contributor
                • Dec 2006
                • 1977

                #8
                Originally posted by vijaydiwakar
                Sorry I'm not descouraging .....
                but in fact she will face the problem when she like to check the results like
                if msgbox1(<someth ing>,,vbyesno)= vbyes then

                for such condition she must be fullyprepaired

                No Prob Man,
                She can use all kind of commands and let the visible may true or false and the position of that command buttons.

                Comment

                • vijaydiwakar
                  Contributor
                  • Feb 2007
                  • 579

                  #9
                  Originally posted by hariharanmca
                  No Prob Man,
                  She can use all kind of commands and let the visible may true or false and the position of that command buttons.
                  yeh........
                  Excatly Visible tru/false , positioning of commands and geting the op is the key factors

                  Comment

                  • hariharanmca
                    Top Contributor
                    • Dec 2006
                    • 1977

                    #10
                    Originally posted by vijaydiwakar
                    Sorry I'm not descouraging .....
                    but in fact she will face the problem when she like to check the results like
                    if msgbox1(<someth ing>,,vbyesno)= vbyes then

                    for such condition she must be fullyprepaired

                    and we have form.Tag to pass the response of the command that the user had been choused

                    Comment

                    • hariharanmca
                      Top Contributor
                      • Dec 2006
                      • 1977

                      #11
                      Originally posted by vijaydiwakar
                      yeh........
                      Excatly Visible tru/false , positioning of commands and geting the op is the key factors
                      then, what you are looking for....

                      Comment

                      • vijaydiwakar
                        Contributor
                        • Feb 2007
                        • 579

                        #12
                        Originally posted by hariharanmca
                        then, what you are looking for....
                        hey man , I don't have any problem i've alredy made it & its working fine.
                        I'm just leting her what problems she might face..
                        k.........

                        Comment

                        • willakawill
                          Top Contributor
                          • Oct 2006
                          • 1646

                          #13
                          Originally posted by vijaydiwakar
                          Sorry I'm not descouraging .....
                          but in fact she will face the problem when she like to check the results like
                          if msgbox1(<someth ing>,,vbyesno)= vbyes then

                          for such condition she must be fullyprepaired
                          This is all very basic vb programming. The idea is to encapsulate this in a module and call it in any project. It is also easy to continue to use vb constants with it such as vbYes, vbNo etc. Call it through a function in the module and get the return value from the function. This is a good way to learn about vb because the form is simple and there is no database connectivity to worry about.

                          Comment

                          • sathiyaKala
                            New Member
                            • Mar 2007
                            • 1

                            #14
                            [QUOTE=hariharan mca]No Prob Man,
                            She can use all kind of commands and let the visible may true or false and the position of that command buttons.

                            HI...

                            HOW TO MAKE IT VISIBLE FOR THE ACTION EX.YES OR NO....

                            Comment

                            Working...