Я делаю игровое приложение UNO. Я удобно создал форму 2 (игровой стол) со всеми игроками, их картами и т. Д. Теперь я просто хочу добавить текстовое поле для отображения текущего игрока.
Так что я сделал -
Перетащите текстовое поле.
Предупреждение - Предупреждение 1 Вы должны перестроить свой проект, чтобы изменения в Gui1.Form2 появились в любых открытых дизайнерах. 0 0
Перестроить форму da -
Я вижу, что создается другой файл - form21.designer.cs. Pl. см. содержимое файла ниже -
Ошибка - Ошибка 1 Отсутствует частичный модификатор при объявлении типа 'Gui1.Form2'; существует другое частичное объявление этого типа C: \ Users \ uday \ Desktop \ Uday \ Client_0407 \ Gui1 \ Form21.Designer.cs 25 18 Gui1
ПРИМЕЧАНИЕ. - Это не только текстовое поле. Если я сделаю какие-либо изменения с помощью перетаскивания, произойдет то же самое.
form21.designer.cs
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Gui1 {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// 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()]
public class Form2 {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Form2() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Gui1.Form2", typeof(Form2).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
public static System.Drawing.Bitmap Pic_MyPlayer_Image {
get {
object obj = ResourceManager.GetObject("Pic_MyPlayer.Image", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
public static System.Drawing.Bitmap Pic_OtherPlayer1_Image {
get {
object obj = ResourceManager.GetObject("Pic_OtherPlayer1.Image", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
public static System.Drawing.Bitmap Pic_OtherPlayer2_Image {
get {
object obj = ResourceManager.GetObject("Pic_OtherPlayer2.Image", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
public static System.Drawing.Bitmap Pic_OtherPlayer3_Image {
get {
object obj = ResourceManager.GetObject("Pic_OtherPlayer3.Image", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}