|
if(height <= 100)
{
//annul Drag top and bottom border,for stop resize
}
else
{
//come back Drag
}
if (width <= 100)
{
//annul Drag left and right border, for stop resize
}
else
{
//come back Drag
}
how to do?
thanks.
|
|
|
|
|
I get a miss,
do not annul resize,
stop becoming low or narrow only.
|
|
|
|
|
Are you ok??
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
I am OK.
My mean is like msn messager.
Its chatting form can not lower or narrower,When it arrive a specifically form's size.
if change formBoderStyle, all of the form's height and width can not change size.
whether has other way?
|
|
|
|
|
i am having a very very hard time making sense of what you are trying to say.
but from the words - form size and narrower , i think you want to make the form's size fixed when it becomes a certain size.
for example if width<500 then width=500.
you can do this by either creating an event handler for form resize and check the size, or you can set the minimum size of the form
eg: this.MinimumSize = new System.Drawing.Size(200, 300);
hope this helps
|
|
|
|
|
Thank you very much.
I must study english hard.
|
|
|
|
|
I am really not clear what you wanna ask
Please expalin a bit
|
|
|
|
|
Hi ,
File.Exists not work properly ...?
string Path = "text.txt";
if (File.Exists(Path))
messagebox.show (" Exist");
else
messagebox.show ("Not Exist");
as you see text.txt has no valid location but my controls goes to
messagebox.show (" Exist"); how...?
i want to check wheather or not the file exits...?
Regards
Pankaj Joshi
|
|
|
|
|
I think it will allow that if the file "text.txt" is in the same directory the executable is ran from? Is that the case?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Are you sure you have no file called "text.txt" in your application folder?
|
|
|
|
|
Sir,
Say I want To Check is their any file Exist on C: Drive named taxt.txt ..?
my application on D:\tmyapp folder...
I how can check any file exist or not...?
Regards
Pankaj Joshi
|
|
|
|
|
string dir = "d:\tmyapp";
string file = "taxt.txt";
string fullpath = System.IO.Path.Combine(dir, file);
if (File.Exist(fullpath))
{
// file exist
}
{
// file not exist
}
regards
|
|
|
|
|
File.Exists(path to the file)
|
|
|
|
|
<code>
FileInfo fi = new FileInfo(@"Your_File_Path_Goes_Here.txt");
if(fi.Eists)
{...}
else
{
</code>
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
hi,
how to retain the values of dynamic generated text boxes in c#.net
|
|
|
|
|
How do you want to store them?
|
|
|
|
|
I click the exe file, in XP.
but it never execute startup form's load event?
Why?
Thanks anybody help me.
|
|
|
|
|
Because it's broken.
For more specific help, ask a more specific question, which probably means posting some code, as well as telling us what *does* happen ( does the form run at all ? does it crash ? )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thank you, i solved it.
just forgot regest Controls,
but it did not show any reports, when i opened it.
|
|
|
|
|
|
int rowNumber = 3;<br />
int cellNumber = 2;<br />
<br />
bool b = (bool)dataGridView1.Rows[rowNumber].Cells[cellNumber].Value;
But one tricky thing is here: if a value you are getting was not set (nobody checks or unchecks this checkbox) the value of it is null. We need handle this case.
int rowNumber = 3;<br />
int cellNumber = 2;<br />
<br />
bool b = false;<br />
if (dataGridView1.Rows[rowNumber].Cells[cellNumber].Value != null)<br />
{<br />
b = (bool)dataGridView1.Rows[rowNumber].Cells[cellNumber].Value;<br />
}<br />
|
|
|
|
|
Is it possible to see whether or not a program(exe) is installed on a
machine from web? for example, i'd like to check if winzip is installed and if
it is installed, the location of the executable.I want to check from web.Is it is possible...Plz any one help me.
Thanks.
Regards,
justin
|
|
|
|
|
You want to see if the user has a file on the local machine from an ASP web page? Can't do it, you don't have file access rights to the local machine from a web page.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Thanks for ur reply.
Is there any alternate way like javascript.Plz help me.
|
|
|
|
|
ActiveX has file rights I think. Not sure, why do you need to do this from a web application.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|