منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب
[VB.NET] طلب تعديل كود بسيط جداً - نسخة قابلة للطباعة

+- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb)
+-- قسم : قسم لغة الفيجوال بيسك VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=182)
+--- قسم : قسم اسئلة VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=183)
+--- الموضوع : [VB.NET] طلب تعديل كود بسيط جداً (/showthread.php?tid=23644)

الصفحات: 1 2


RE: طلب تعديل كود بسيط جداً - e-coder - 04-02-18

اعملته عام 
 في اول كلاس
PHP كود :
Public ms As New MemoryStream 
PHP كود :
Private Sub ButtonX7_Click(sender As ObjectAs EventArgsHandles ButtonX7.Click
        Dim ofd 
As New OpenFileDialog
        ofd
.Filter "Image Formats (*.PNG; *.JPG; *.BMP) | *.PNG; *.JPG; *.BMP | All Files (*.*) | *.*"
 
       If ofd.ShowDialog DialogResult.OK Then
            If ofd
.FileName <> String.Empty Then
                Me
.PictureBox1.Image Bitmap.FromFile(ofd.FileName)
 
               PictureBox1.Image.Save(msPictureBox1.Image.RawFormat)
 
               Dim bytimage() As Byte ms.ToArray
                chaptemad1
.Send(String.Concat(New String() {"<message xmlns='jabber:client' type='groupchat' to='"room1.Text"@conference.s.chatp.net'><body /><c xmlns='u:x:room_image'><url>"Image.FromStream(ms), "</url></c></message>"}))
 
           End If
 
       End If
 
   End Sub 

والمشكلة كما هي