473,387 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Resizable Form in C#

I am new to C#. At this time I am working on a project
that requires to make a Dialog box (with OK button) that
will display a message. This dialog box must be resizable
based on the message that will be displayed (just like
the Message Box does, changes its size based on the
infomation that is being displayed). Any idea?

Thank you for help.
Nov 16 '05 #1
2 2305
You have to calculate message size and resize the form according.

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
"Sveta" <kr*****@hotmail.com> wrote in message
news:26*****************************@phx.gbl...
I am new to C#. At this time I am working on a project
that requires to make a Dialog box (with OK button) that
will display a message. This dialog box must be resizable
based on the message that will be displayed (just like
the Message Box does, changes its size based on the
infomation that is being displayed). Any idea?

Thank you for help.

Nov 16 '05 #2
As Tamir stated there is no automatism there.
You might store your text in a autoresizable label (lable.AutoSize=true) and
adjust the size of the window accrodingly.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"Sveta" <kr*****@hotmail.com> wrote in message
news:26*****************************@phx.gbl...
I am new to C#. At this time I am working on a project
that requires to make a Dialog box (with OK button) that
will display a message. This dialog box must be resizable
based on the message that will be displayed (just like
the Message Box does, changes its size based on the
infomation that is being displayed). Any idea?

Thank you for help.

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: VR | last post by:
First, greetings to everyone :) I'm doing a university seminar & I've encountered a problem. I have a gallery with thumbnails linked on pictures. What I want is popup to be opened with...
1
by: Catherine Jo Morgan | last post by:
If I make a form in Access 2002 without thinking about making it resizable in different browser windows, can I add this feature later? Or do I need to do something about it right at the start, as...
4
by: harrylmh | last post by:
Hi, I've really been struggling with this. How do I make a form resizable with FormBorderStyle = None? I've had problems trying to get the form to start resizing by following the mouse...
2
by: George | last post by:
Hello, How can I make my user control resizable at runtime, just like using a splitter? My control will be docked right at the form and I want to be able to change its length. Thanks!
4
by: sam.s.kong | last post by:
Hello! I opened a new window using 'resizable=no'. Can the child window make itself resizable even if it's opened with 'resizable=no'? For example: <body onload="javascript:...
3
by: Al Henderson | last post by:
Morning All, I have a web application where we pop up a little calendar control in a new window to allow users to choose dates. For cross-browser purposes, this is done via window.open (with...
3
by: Anupama | last post by:
Is it possible that first I make my window resizable,than if window is less than a fixed size I can make my window not resizable?Better to say can I change resizable feature during runtime?If...
3
by: Thierry Loiseau | last post by:
Hello, If I do : w=window.open('','a','resizable=no, width=400, height=400, toto=3'); can I modify 'w' to resizable=yes ? Thank you, Thierry
1
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables. Sortable tables. It is based on a lot...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.