this assignment is to be code with c# in visual studios application forms. when the expert is submitting me the solution i need him to submit me the full code in visual studios and not just a word...

1 answer below »
this assignment is to be code with c# in visual studios application forms. when the expert is submitting me the solution i need him to submit me the full code in visual studios and not just a word document.
Answered 4 days AfterJan 28, 2021

Answer To: this assignment is to be code with c# in visual studios application forms. when the expert is...

Aditya answered on Feb 02 2021
153 Votes
New folder/Solution1.zip
Solution1/.vs/Solution1/v16/.suo
Solution1/App.config




Solution1/bin/Debug/Solution1.exe
Solution1/bin/Debug/Solution1.exe.config




Solution1/bin/Debug/Solution1.pdb
Solution1/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Solution1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{

}
private void button1_Click(object sender, EventArgs e)
{
DateTime dob = dateTimePicker1.Value;
DateTime todayDate = DateTime.Today;
int months = todayDate.Month - dob.Month;
int yearToMonth = (todayDate.Year - dob.Year) * 12;
if (months + yearToMonth < 216)
{
MessageBox.Show("Sorry you are not over 18");
}
else
{
int age = (months + yearToMonth) / 12;
MessageBox.Show("Welcome to the site you are " + age);
}
}
}
}
Solution1/Form1.Designer.cs
namespace Solution1
{
partial class Form1
{
///
/// Required designer variable.
///

private System.ComponentModel.IContainer components = null;
///
/// Clean up any resources being used.
///

/// true if managed resources should be disposed; otherwise, false.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///

private void InitializeComponent()
{
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
this.label1 = new System.Windows.Forms.La
bel();
this.button1 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// dateTimePicker1
//
this.dateTimePicker1.Location = new System.Drawing.Point(270, 85);
this.dateTimePicker1.MaxDate = new System.DateTime(2021, 1, 30, 0, 0, 0, 0);
this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.Size = new System.Drawing.Size(248, 22);
this.dateTimePicker1.TabIndex = 0;
this.dateTimePicker1.Value = new System.DateTime(2021, 1, 30, 0, 0, 0, 0);
this.dateTimePicker1.ValueChanged += new System.EventHandler(this.dateTimePicker1_ValueChanged);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(113, 90);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(128, 17);
this.label1.TabIndex = 1;
this.label1.Text = "Enter Date Of Birth";
//
// button1
//
this.button1.Location = new System.Drawing.Point(309, 147);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 2;
this.button1.Text = "Enter";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.button1);
this.Controls.Add(this.label1);
this.Controls.Add(this.dateTimePicker1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.DateTimePicker dateTimePicker1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button1;
}
}
Solution1/Form1.resx

















































text/microsoft-resx


2.0


System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089


System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Solution1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs
//
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
Solution1/obj/Debug/DesignTimeResolveAssemblyReferences.cache
Solution1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Solution1/obj/Debug/Solution1.csproj.CoreCompileInputs.cache
8069502011d0681850e57a53d5a1673222f430a6
Solution1/obj/Debug/Solution1.csproj.FileListAbsolute.txt
D:\VisualStudioPrograms\Solution1\bin\Debug\Solution1.exe.config
D:\VisualStudioPrograms\Solution1\bin\Debug\Solution1.exe
D:\VisualStudioPrograms\Solution1\bin\Debug\Solution1.pdb
D:\VisualStudioPrograms\Solution1\obj\Debug\Solution1.csprojAssemblyReference.cache
D:\VisualStudioPrograms\Solution1\obj\Debug\Solution1.Form1.resources
D:\VisualStudioPrograms\Solution1\obj\Debug\Solution1.Properties.Resources.resources
D:\VisualStudioPrograms\Solution1\obj\Debug\Solution1.csproj.GenerateResource.cache
D:\VisualStudioPrograms\Solution1\obj\Debug\Solution1.csproj.CoreCompileInputs.cache
D:\VisualStudioPrograms\Solution1\obj\Debug\Solution1.exe
D:\VisualStudioPrograms\Solution1\obj\Debug\Solution1.pdb
Solution1/obj/Debug/Solution1.csproj.GenerateResource.cache
Solution1/obj/Debug/Solution1.csprojAssemblyReference.cache
Solution1/obj/Debug/Solution1.exe
Solution1/obj/Debug/Solution1.Form1.resources
Solution1/obj/Debug/Solution1.pdb
Solution1/obj/Debug/Solution1.Properties.Resources.resources
Solution1/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Solution1
{
static class Program
{
///
/// The main entry point for the application.
///

[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
Solution1/Properties/AssemblyInfo.cs
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Solution1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Solution1")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("b1e12263-bfc0-4fd3-948d-5b22e2b8d7dc")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Solution1/Properties/Resources.Designer.cs
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//

//------------------------------------------------------------------------------
namespace Solution1.Properties
{
///
/// A strongly-typed resource class, for looking up localized strings, etc.
///

// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
///
/// Returns the cached ResourceManager instance used by this class.
///

[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Solution1.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
///
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
///

[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}
Solution1/Properties/Resources.resx














































text/microsoft-resx


2.0


System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089


System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Solution1/Properties/Settings.Designer.cs
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//

//------------------------------------------------------------------------------
namespace Solution1.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}
Solution1/Properties/Settings.settings





Solution1/Solution1.csproj



Debug
AnyCPU
{B1E12263-BFC0-4FD3-948D-5B22E2B8D7DC}
WinExe
Solution1
Solution1
v4.7.2
512
true
true


AnyCPU
true
full
false
bin\Debug\
DEBUG;TRACE
prompt
4


AnyCPU
pdbonly
true
bin\Release\
TRACE
prompt
4
















Form


Form1.cs




Form1.cs


ResXFileCodeGenerator
Resources.Designer.cs
Designer


True
Resources.resx


SettingsSingleFileGenerator
Settings.Designer.cs


True
Settings.settings
True






Solution1/Solution1.sln
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30517.126
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Solution1", "Solution1.csproj", "{B1E12263-BFC0-4FD3-948D-5B22E2B8D7DC}"
EndProject
Global
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
        Debug|Any CPU = Debug|Any CPU
        Release|Any CPU = Release|Any CPU
    EndGlobalSection
    GlobalSection(ProjectConfigurationPlatforms) = postSolution
        {B1E12263-BFC0-4FD3-948D-5B22E2B8D7DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
        {B1E12263-BFC0-4FD3-948D-5B22E2B8D7DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
        {B1E12263-BFC0-4FD3-948D-5B22E2B8D7DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
        {B1E12263-BFC0-4FD3-948D-5B22E2B8D7DC}.Release|Any CPU.Build.0 = Release|Any CPU
    EndGlobalSection
    GlobalSection(SolutionProperties) = preSolution
        HideSolutionNode = FALSE
    EndGlobalSection
    GlobalSection(ExtensibilityGlobals) = postSolution
        SolutionGuid = {1B511F44-A225-44B1-9CC7-4A38F915FE02}
    EndGlobalSection
EndGlobal
New folder/Solution2.zip
Solution2/.vs/Solution2/v16/.suo
Solution2/App.config




Solution2/bin/Debug/Solution2.exe
New folder/Solution3.zip
Solution3/.vs/Solution3/v16/.suo
Solution3/App.config




Solution3/bin/Debug/Solution3.exe
Solution3/bin/Debug/Solution3.exe.config




Solution3/bin/Debug/Solution3.pdb
Solution3/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Solution3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
Close();
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
int index = comboBox1.SelectedIndex;
if (index == 0)
{
label2.Text = "Miles";
label3.Text = "Kilometers";
}
else if (index == 1)
{
label2.Text = "Kilometers";
label3.Text = "Miles";
}
else if (index == 2)
{
label2.Text = "Feet";
label3.Text = "Meters";
}
else if (index == 3)
{
label2.Text = "Meters";
label3.Text = "Feet";
}
else if (index == 4)
{
label2.Text = "Inches";
label3.Text = "Centimeters";
}
else if (index == 5)
{
label2.Text = "Centimeters";
label3.Text = "Inches";
}
}
private void button1_Click(object sender, EventArgs e)
{
int index = comboBox1.SelectedIndex;
if (index == 0)
{
double miles = Double.Parse(textBox1.Text);
double kilometers = miles * 1.6903;
textBox2.Text = kilometers.ToString();
}
else if (index == 1)
{
double kilometers = Double.Parse(textBox1.Text);
double miles = kilometers * 0.6214;
textBox2.Text = miles.ToString();
}
else if (index == 2)
{
double feet = Double.Parse(textBox1.Text);
double meters = feet * 0.3048;
textBox2.Text = meters.ToString();
}
else if (index == 3)
{
double meters = Double.Parse(textBox1.Text);
double feet = meters * 3.2808;
textBox2.Text = feet.ToString();
}
else if (index == 4)
{
double inches = Double.Parse(textBox1.Text);
double centimeters = inches * 2.54;
textBox2.Text = centimeters.ToString();
}
else if (index == 5)
{
double centimeters = Double.Parse(textBox1.Text);
double inches = centimeters * 2.54;
textBox2.Text = inches.ToString();
}
}
}
}
Solution3/Form1.Designer.cs
namespace Solution3
{
partial class Form1
{
///
/// Required designer variable.
///

private System.ComponentModel.IContainer components = null;
///
/// Clean up any resources being used.
///

/// true if managed resources should be disposed; otherwise, false.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///

private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(184, 96);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(86, 17);
this.label1.TabIndex = 0;
this.label1.Text = "Conversions";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(184, 150);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(52, 17);
this.label2.TabIndex = 1;
this.label2.Text = "Value1";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(184, 198);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(52, 17);
this.label3.TabIndex = 2;
this.label3.Text = "Value2";
//
// comboBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"Miles to Kilometers",
"Kilometers to Miles",
"Feet to Meters",
"Meters to Feet",
"Inches to Centimeters",
"Centimeters to Inches"});
this.comboBox1.Location = new System.Drawing.Point(318, 93);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(209, 24);
this.comboBox1.TabIndex = 3;
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(318, 150);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(121, 22);
this.textBox1.TabIndex = 4;
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(318, 198);
this.textBox2.Name = "textBox2";
this.textBox2.ReadOnly = true;
this.textBox2.Size = new System.Drawing.Size(121, 22);
this.textBox2.TabIndex = 5;
//
// button1
//
this.button1.Location = new System.Drawing.Point(196, 259);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(94, 23);
this.button1.TabIndex = 6;
this.button1.Text = "Calculate";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(441, 259);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 7;
this.button2.Text = "Exit";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// Form1
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here