کلا قسمت رزولیشن غیرفعال میشه یعنی هیچ رزولیشن رو نمیشه تغییر داد. صفحه نمایش سیاه سفید میشه
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(fals e);
Application.Run(new FrmLogin());
}
<?xml version="1.0"?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
providerName="System.Data.OleDb" />
<add name="_22.Properties.Settings._22ConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0 ;Data Source=|DataDirectory|\22.mdb"
providerName="System.Data.OleDb" />
<add name="DefaultConnection" connectionString="Data Source = |SQL/CE|" />
<add name="_22.Properties.Settings._224ConnectionString 1" connectionString="Provider=Microsoft.Jet.OLEDB.4.0 ;Data Source=E:\22.mdb"
providerName="System.Data.OleDb" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
<appSettings>
<add key="ClientSettingsProvider.ServiceUri" value=""/>
<add key="ClientSettingsProvider.ConnectionStringName" value="DefaultConnection"/>
</appSettings>
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipPro vider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientWi ndowsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=21bf3856ad364e77" serviceUri="" connectionStringName="DefaultConnection" credentialsProvider=""/>
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRo leProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=21bf3845ad364e25" serviceUri="" cacheTimeout="86400" connectionStringName="DefaultConnection"/>
</providers>
</roleManager>
</system.web>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app" />
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- UAC Manifest Options
If you want to change the Windows User Account Control level replace the
requestedExecutionLevel node with one of the following.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Specifying requestedExecutionLevel node will disable file and registry virtualization.
If you want to utilize File and Registry Virtualization for backward
compatibility then delete the requestedExecutionLevel node.
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
<applicationRequestMinimum>
<PermissionSet class="System.Security.PermissionSet" version="1" Unrestricted="true" ID="Custom" SameSite="site" />
<defaultAssemblyRequest permissionSetReference="Custom" />
</applicationRequestMinimum>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- A list of all Windows versions that this application is designed to work with.
Windows will automatically select the most compatible environment.-->
<!-- If your application is designed to work with Windows Vista, uncomment the following supportedOS node-->
<!--<supportedOS Id="{e2211457-1546-44c5-j5fe-008deee3d3y0}"></supportedOS>-->
<!-- If your application is designed to work with Windows 7, uncomment the following supportedOS node-->
<!--<supportedOS Id="{28138b9a-3d85-4fbd-8e2d-a2440244g77a}"/>-->
<!-- If your application is designed to work with Windows 8, uncomment the following supportedOS node-->
<!--<supportedOS Id="{7a2f28e1-42b9-3331-ba9c-d69d4a5a6e21}"></supportedOS>-->
</application>
</compatibility>
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
<!-- <dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6635b64177dcf2yf"
language="*"
/>
</dependentAssembly>
</dependency>-->
</asmv1:assembly>