- ال Genrics
الاضافات في سي#2 - Generics
- سؤال عن Check Data Type
int myInteger = 1024; CheckType(myInteger); void CheckType(object o) { MessageBox.Show(o.GetType().Name); }
- مساعدة في اضافة صورة قوق صورة في #c
private void pictureBox1_Paint(object sender, PaintEventArgs e) { Image bg = Image.FromFile(@"bg.jpg"); Image logo = Image.FromFile(@"logo.png"); e.Graphics.DrawImage(bg, 0, 0); e.Graphics.DrawImage(logo, 0, (bg.Height - 20) - logo.Height); }
- عمل Progress Bar لاستخدامها في نسخ الملفات
namespace IO { using System; using System.Runtime.InteropServices; public delegate void CopyProgressCallBack(int Percentage); public class File { enum CopyProgressResult : uint { Continue = 0, Cancel = 1, Stop = 2, Quiet = 3 } enum CopyProgressCallbackReason :…
- كيف أضيف Company Name,copyright عند الترجمة بواسطة موجة الأوامر
Imports System Imports System.Reflection <Assembly: AssemblyTitle("Product title")> <Assembly: AssemblyDescription("Info")> <Assembly: AssemblyCompany("Company name")> <Assembly: AssemblyProduct("Product name")> <Assembly: AssemblyCopyright("Copyright © Compan…
- تحويل البرنامج من C# الى Vb.net
Convert .NET Reflector
- سؤال عن ال Strut & Data Types
struct MyStruct { public int ID; public string Name; } MyStruct myStruct; myStruct.ID = 99; myStruct.Name = "Moudey"; MessageBox.Show(string.Format("ID = {0}\n Name = {1}", myStruct.ID, myStruct.Name)); myStruct = new MyStruct(); MessageBox.Show(string.Format(…
- كيفية منع انشاء من Class معين اكثر من Object
بارك الله فيك اخي System Down
- كيف يمكنني تغير لون الفورم من خلال ال Usercontrol خاصه
من خلال الفورم الرئيسى public partial class Form1 : Form { private Color defaultColor = Color.Empty; public Form1() { this.BackColor = defaultColor; InitializeComponent(); } protected override void OnControlRemoved(ControlEventArgs e) { this.BackColor = defaul…
- كيف يمكنني تغير لون الفورم من خلال ال Usercontrol خاصه
السلام عليكم, هل تريد ارجاع اللون الافتراضي للـ Form ام للـ UserControl ؟
- سؤال فى ال Refrence Type والvalue Type
A string is a sequential collection of Unicode characters
- سؤال فى ال Refrence Type والvalue Type
السلام عليكم, C# Programmer's Reference String The string type represents a string of Unicode characters. string is an alias for String in the .NET Framework. Strings are immutable--the contents of a string object cannot be changed after the object is created.…
- مشكلة في عرض الجرافيكس في السي شارب
void MyDraw() { Graphics g = this.CreateGraphics(); g.Clear(this.BackColor); Rectangle rec = new Rectangle(10, 10, this.ClientSize.Width - 20, this.ClientSize.Height - 20); g.FillRectangle(Brushes.Blue, rec); g.DrawRectangle(new Pen(Brushes.Yellow, 20f), rec.X…
- [ تمت الإجابة ]C++ Dll
السلام عليكم, اولا نفرض اننا نريد انشاء dll بلغة السي //mydll.cpp #include <stdio.h> // Export funcation extern "C" __declspec( dllexport ) int Sum(int num1, int num2); int Sum(int num1, int num2) { return (num1 * num2); } حيث تعيد هذة الدالة حاصل الضرب. ولعمل…
- عضو جديد ينضم إليكم
مرحباً بك عزيزي mrfreud2020 واهلا بك معنا
- كيف يمكن عمل وراثة لاكثر من كلاس
ولكن اريدك ان تكتب "مثال توضيحي لااكثر" يوضح غرضك من الوراثة
- كيف يمكن عمل وراثة لاكثر من كلاس
ممكن توضح بمثال والغرض منة ؟
- خطأ عند اضافة Inherited Form
عفواً لقد أخطأت في فهم السؤال الكلاس صحيح ولاتوجد بة مشكلة من ناحية التصاريح. ارجو توضيح السؤل بكتابة الكود لعملية الوراثة.
- خطأ عند اضافة Inherited Form
يوجد خطأ في هذا الجزء public static string rep_ip = System.Configuration.ConfigurationManager.ConnectionStrings["report_ip"].ConnectionString; حيث يجب ان تكون دالة او خاصية // Function public static string rep_ip() { return System.Configuration.ConfigurationMa…