|
Hello...
I have a problem. I have a form, the form has 2 panels. Left and right. Left has 50% of form width, right also. I want to keep this 50% always. If someone resize the form, after resize, the size of left panel must be 50% of form and right 50% of form also. How to do that ?
Thanks...
|
|
|
|
|
Handle Resize event of a form
void Form_Resize(...)
{
panLeft.Width = this.Width / 2;
}
... assuming that:
panLeft.Dock = ...Left
panRight.Dock = ...Fill
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
Drop a TableLayoutPanel on your form, make it have 1 row and 2 columns. Either dock it to the entire form or Anchor all four sides. Drop your Panel controls in the two cells in the TLP and dock them for Fill.
Done, and no code on your part to handle the resizing.
|
|
|
|
|
I need to Creat a report in C# Winform Application.The Report must contain a Guntt Chart.I want to use the CrystalReport to finish it.how should I do .I never do it before.
Is Anyone who Know it?Will please tell me!
Great thanks!
This is the first time I came this site!Wish everyone enjoy yourself everyday!
By the way, I am in BeiJing,China.Welcome all of you come to Beijing next year for Olympic Games.I can provide abode for you.hehe!wish to be close friends with you!
Thanks again!
My MSN is : uranus1225@hotmail.com
wish you to add it!
|
|
|
|
|
I was going to take you up on your kind offer of an abode, but as I am English, and not American, you haven't made me feel welcome!! Good luck with hosting the games, and get that smog cleared!
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
Bobby Moore!
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
Malcolm Smart wrote: but as I am English, and not American, you haven't made me feel welcome!!
Tell me about it. I'm not feeling the love here.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Stay away from me Pete. You've caught something called Dimension Hatross, and it sounds contagious...no wonder you don't feel loved.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
Malcolm Smart wrote: You've caught something called Dimension Hatross, and it sounds contagious...no wonder you don't feel loved
I caught it from feeling too loved.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
which company take the c# programms
and what is the imp. in c#
please send me some information's about C#company and any job
|
|
|
|
|
1. This is a C# forum, so putting C# in the title is unnecessary.
2. Please take the time to choose a more meaningful title.
3. You need to clarify what you are asking? I think that you are asking which companies take C# developers. But if so, which country? What industry sector?
4. Do a search on job sites.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Tssk tssk. 1 voting somebody who has tried to help. Naughty naughty.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hi
Joginder
why dont you ask your NIIT faculty
It is Good to be Important but!
it is more Important to be Good
|
|
|
|
|
What is NIIT? This is the second poster today who has not 'played ball' who comes from NIIT.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
|
Well perhaps they should start by teaching their students a little humility before telling them all their answers are on CodeProject.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
Amar Chaudhary wrote: An educational institute in India[^]
Whay am I not surprised?
|
|
|
|
|
NIIT is aligned with the WIT organisation; the two are usually abbreiviated to NITWIT, and its members are known as Nitwits
Me: Can you see the "up" arrow?
User:Errr...ummm....no.
Me: Can you see an arrow that points upwards?
User: Oh yes, I see it now!
-Excerpt from a support call taken by me, 08/31/2007
|
|
|
|
|
hi
i want to make HTML page.like on button click i have write all code for HTML Page.on click i want that .html page will be display
Jintal Patel
|
|
|
|
|
You're asking this in the C# forum because.... ?
Try explaining it better. What sort of page ? What sort of button do you mean, in the web page ? Sounds like you need to read a beginner ASP.NET article, to me.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
hi
IN My application i m display all the listing of products in my datalist control .Each Product Have Linkbutton for Description.now on that link button click event i want to display discription and image of product in new page .which is Productname.html page....
Jintal Patel
|
|
|
|
|
You would link the button's OnClick event to redirect to a new 'product.aspx' page, passing the product ID to the page.
The 'product.aspx' page, would query the database and populate the page with the products data dynamically.
You don't want to physically create a new HTML page for each product.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
ya.i have allready made this product.aspx page for each product passing productID
but I want to create HTML page for Each Product Dynamically.
Jintal Patel
|
|
|
|
|
Use a Textwriter/HtmlWriter and write the raw HTML out for each page you want to create.
Where will you store these files? If you want to store them in the web directory you might hit permission issues.
What happens if two users hit the same product at the same time? Which one will do the writing? You will have to handle concurrency issues on the file.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
I need to print encrypted customer details as a barcode. then need to scan the data and read back the details.
My approch is like this,
I encrypted the string data using cryptoservices and get memory stream and sen the byte array data as unmanaged byte arra to the printer.
Byte[] bytes = memoryStream.GetBuffer();
IntPtr pUnmanagedBytes = new IntPtr(0);
int nLength;
nLength = Convert.ToInt32(memoryStream.Length);
pUnmanagedBytes = Marshal.AllocCoTaskMem(nLength);
Marshal.Copy(bytes, 0, pUnmanagedBytes, nLength);
PrintDirect.WritePrinter1(lhPrinter, pUnmanagedBytes, nLength, out pcWritten);
When I try to read the barcode through a serial port my byte array size is smaller
int bytes = comport.BytesToRead;
byte[] buffer = new byte[bytes];
comport.Read(buffer, 0, bytes);
I've send 184 bytes to the printer. but now my buffer size is 181
can anybody help me
|
|
|
|