Conforming form like message box in C#

I want to create a windows form like a message box. This form will act as a calculator. Can I perform this I mean, can I create a form which can move on the pocket pc's desktop

Answer this question

Conforming form like message box in C#

  • Closer

    This is pretty simple actually.

    The following lines in your InitializeComponent should do the trick

    Me.AutoScaleDimensions = New System.Drawing.SizeF(96.0!, 96.0!)
    Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi
    Me.AutoScroll = True
    Me.ClientSize = New System.Drawing.Size(100, 100) 'The important line
    Me.ControlBox = False
    Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
    Me.TopMost = True
    Me.ResumeLayout(False)



  • Andy Redman

    How can I do this in C++ As far as I can tell, I don't have any AutoScale properties available. Thanks

    Israel Brewster

  • Conforming form like message box in C#