.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> Windows Application >> Post New QuestionBookmark and Share Subscribe to Forum

Problem in Resolution in c#

Posted By: Naim Khan     Posted Date: January 05, 2010    Points:2   Category :Windows Application
Hello every one,
still not getting solution ...
Do you have any idea how can i set automatically Resolution of the windows screen . i have made my project in 1024 by 786 pixels's Resolution. if i run my project in different resolution screen than it would be automatically set resolution . is it possible or not please let me know as soon as possible i really appreciate ...

thanks in Advance

Responses
Author: Amit Mehra             
Posted Date: January 05, 2010     Points: 5   

HI,

Set the Dock property of the form and control to fill.. Hope this helps

Thanks
Amit

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: Naim Khan             
Posted Date: January 07, 2010     Points: 5   

hi amit ,
its not working please help me some different solution....

Naim Khan


Software Developer
khan.naim786@yahoo.com
khan.naeem1987@gmail.com
Author: Amit Mehra             
Posted Date: January 10, 2010     Points: 5   

Hi Naim,

This will work..I have used in my application and its working... Please set the dock property property.. I also recommend you use FlowLayout Panel in your windows application.

Thanks
Amit

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: Lalij Mer             
Posted Date: February 08, 2010     Points: 5   

Try this code

using System;

using System.Windows.Forms;



using Org.Vesic.WinForms;



namespace Org.Vesic.WinForms

{

public partial class MaxForm : Form

{

FormState formState = new FormState();



public MaxForm()

{

InitializeComponent();

}



private void button1_Click(object sender, EventArgs e)

{

formState.Maximize(this);

}



private void button2_Click(object sender, EventArgs e)

{

formState.Restore(this);

}

}

}



more info

http://www.vesic.org/english/blog/winforms/full-screen-maximize/

Please Check my answer if you help....
Thank You...

Lalit.
Author: Naim Khan             
Posted Date: February 08, 2010     Points: 5   

No i dont want that i m asking about when i m open in other system and the system is using other screen resolution so it should be convert according to other system without using any button or pressing button..........

Naim Khan


Software Developer
khan.naim786@yahoo.com
khan.naeem1987@gmail.com


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend