الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

ايقاف وتشغيل كائن OLE في النموذج

بدأه بلالي في 10 سبتمبر 2010 · 9 رد · 1,394 مشاهدة · في قواعد بيانات Microsoft Access
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم احبائي وكل عام وانتم بخير ومبارك عليكم عيد الفطر السعيد

ادرجت كائن OLE في النموذج

اريد عند فتح النموذج يوجد عندي زر امر من انقر عليه يشتغل الصوت الذي في كائن OLE

ومن انقر على نفس زر الامر يطفىء الصوت المسجل في كائن OLE وهكذا.

تحياتي.....

#2
بلالي كتب:

السلام عليكم احبائي وكل عام وانتم بخير ومبارك عليكم عيد الفطر السعيد

ادرجت كائن OLE في النموذج

اريد عند فتح النموذج يوجد عندي زر امر من انقر عليه يشتغل الصوت الذي في كائن OLE

ومن انقر على نفس زر الامر يطفىء الصوت المسجل في كائن OLE وهكذا.

تحياتي.....

لا اعرف و انتظر رد الاخوان

#3

اخي بلالبي

ممكن ترفع البرنامج هنا

#4

ادراج ملفات في الاكسيس .. صوت - فيديو- فلاش - تكبير - تصغير - استعادة

/index.php?showtopic=55306

certifiedj.jpg

 

 

Image Hosted by ImageShack.us
#5

شكرا يا جماعة الخير

ولكن سؤالي حول كائن ole هل بالامكان تشغيله بزر أمر وهل بالامكان وقفه بزر أمر

اي ان الكائن ole في النموذج وفيه ملف صوتي

تحياتي....

#6
بلالي كتب:

شكرا يا جماعة الخير

ولكن سؤالي حول كائن ole هل بالامكان تشغيله بزر أمر وهل بالامكان وقفه بزر أمر

اي ان الكائن ole في النموذج وفيه ملف صوتي

تحياتي....

ممكن ترفع مثال لو سمحت ؟

OMANI FOR EVER

-------------------------------------------------

post-12787-12780191801974.jpg

-------------------------------------------------

#7

شكرا اخواني على تفاعلكم مع الموضوع

واليكم بالتفصيل كيفية ادراج كائن ole في النموذج

1- والنموذج في عرض التصميم

2- اروح فوق انقر على insert

3- ثم انقر على object

4- رايح تطلع نافذة

5- اروح انقر على wave sound

6- ثم انقر على creat from file

7- وانقر على Browse

8- رايح تطلع نافذة

9- انقر على my music

10- رايح تطلع نافذة

11- انقر على my playlists

12- رايح تطلع نافذة

13- اروح انقر على ملف صوتي

14- ثم انقر على ok ثم انقر على ok

15- ثم رايح يدرج تلقائيا كائن ole في النموذج (طبعا مسجل فيه الملف الصوتي )

المطلوب الآن :

عندي زر امر في نفس النموذج اذا نقرت عليه رايح يشتغل الملف الصوتي الذي في كائن ole

واذا نقرت على نفس زر الأمر ، أو زر أمر آخر فرايخ ينطفئ هذا الصوت

تحياتي ...

#8
بلالي كتب:

شكرا اخواني على تفاعلكم مع الموضوع

واليكم بالتفصيل كيفية ادراج كائن ole في النموذج

1- والنموذج في عرض التصميم

2- اروح فوق انقر على insert

3- ثم انقر على object

4- رايح تطلع نافذة

5- اروح انقر على wave sound

6- ثم انقر على creat from file

7- وانقر على Browse

8- رايح تطلع نافذة

9- انقر على my music

10- رايح تطلع نافذة

11- انقر على my playlists

12- رايح تطلع نافذة

13- اروح انقر على ملف صوتي

14- ثم انقر على ok ثم انقر على ok

15- ثم رايح يدرج تلقائيا كائن ole في النموذج (طبعا مسجل فيه الملف الصوتي )

المطلوب الآن :

عندي زر امر في نفس النموذج اذا نقرت عليه رايح يشتغل الملف الصوتي الذي في كائن ole

واذا نقرت على نفس زر الأمر ، أو زر أمر آخر فرايخ ينطفئ هذا الصوت

تحياتي ...

وفقك الله أخي الكريم. نحن نعرف هذه الخطوات .. المطلوب تنفذ الخطوات السابقة , وترفع المثال

عموما تحتاج هذا الكود لتشغيل الملف مهما كان نوعه .

ole1.Action = 7

تم تعديل هذه المشاركة بواسطة omani في 12 سبتمبر 2010 في 15:12

OMANI FOR EVER

-------------------------------------------------

post-12787-12780191801974.jpg

-------------------------------------------------

#9

شكرا الى الأخ العزيز omani

عرفنا يا سيدي الكود الي يشغل الملف

ولكن نريد هنا الكود الي يقف الملف

تحياتي...

#10

بصراحه مارضت تضبط معي

هذي هي تعليمات الاكسيس حول استخدام الاداة .

Setting

The Action property uses the following settings.

ConstantDescriptionacOLECreateEmbed (0)Creates an embedded object. To use this setting, you must first set the control's OLETypeAllowed property to acOLEEmbedded or acOLEEither. Set the Class property to the type of OLE object you want to create. You can use the SourceDoc property to use an existing file as a template.acOLECreateLink (1)Creates a linked OLE object from the contents of a file. To use this setting, you must first set the control's OLETypeAllowed and SourceDoc properties. Set the OLETypeAllowed property to acOLELinked or acOLEEither. The SourceDoc property specifies the file used to create the OLE object. You can also set the control's SourceItem property (for example, to specify a row-and-column range if the object you're creating is a Microsoft Excel worksheet). When you create an OLE object by using this setting, the control displays a metafile graphic image of the file specified by the control's SourceDoc property. If you save the OLE object, only the link information, such as the name of the application that supplied the object and the name of the linked file, is saved because the control contains an image of the data but no source data.acOLECopy (4)Copies the object to the Clipboard. When you copy an OLE object to the Clipboard, all the data and link information associated with the object is placed on the Clipboard as well. You can copy both linked and embedded objects onto the Clipboard. Using this setting is equivalent to clicking Copy on the Edit menu.acOLEPaste (5)Pastes data from the Clipboard to the control. If the paste operation is successful, the control's OLEType property is set to acOLELinked or acOLEEmbedded. If the paste operation isn't successful, the OLEType property is set to acOLENone. Using the acOLEPaste setting is equivalent to clicking Paste on the Edit menu.acOLEUpdate (6)Retrieves the current data from the application that supplied the object and displays that data as a metafile graphic in the control.acOLEActivate (7)Opens an OLE object for an operation, such as editing. To use this setting, you must first set the control's Verb property. The Verb property specifies the operation to perform when the OLE object is activated.acOLEClose (9)Closes an OLE object and ends the connection with the application that supplied the object. This setting applies to embedded objects only. Using this setting is equivalent to clicking Close on the object's Control menu.acOLEDelete (10)Deletes the specified OLE object and frees the associated memory. This setting enables you to explicitly delete an OLE object. Objects are automatically deleted when a form is closed or when the object is updated to a new object. You can't use the Action property to delete a bound OLE object from its underlying table or query.acOLEInsertObjDlg (14)Displays the Insert Object dialog box. In Form view or Datasheet view, you display this dialog box to enable the user to create a new object or to link or embed an existing object. You can use the control's OLETypeAllowed property to determine the type of object the user can create (with the constant acOLELinked, acOLEEmbedded, or acOLEEither) by using this dialog box.acOLEPasteSpecialDlg (15)Displays the Paste Special dialog box. In Form view or Datasheet view, you display this dialog box to enable the user to paste an object from the Clipboard. The dialog box provides several options, including pasting either a linked or embedded object. You can use the control's OLETypeAllowed property to determine the type of object that can be pasted (with the constant acOLELinked, acOLEEmbedded, or acOLEEither) by using this dialog box.acOLEFetchVerbs (17)Updates the list of verbs an OLE object supports. To display the list of verbs, use the ObjectVerbs and ObjectVerbsCount properties.

You can set the Action property only by using Visual Basic. The Action property setting is an Integer data type value.

The Action property isn't available in Design view but can be read or set in other views.

Remarks

When a control's Enabled property is set to No or its Locked property is set to Yes, you can't use some Action property settings. The following table indicates which settings are allowed or not allowed under these conditions.

SettingEnabled = NoLocked = YesacOLECreateEmbed (0)Not allowedNot allowedacOLECreateLink (1)Not allowedNot allowedacOLECopy (4)AllowedAllowedacOLEPaste (5)Not allowedNot allowedacOLEUpdate (6)Not allowedNot allowedacOLEActivate (7)AllowedAllowedacOLEClose (9)Not allowedAllowedacOLEDelete (10)Not allowedNot allowedacOLEInsertObjDlg (14)Not allowedNot allowedacOLEPasteSpecialDlg (15)Not allowedNot allowedacOLEFetchVerbs (17)Not allowedAllowed

وفي المرفقات مثال حاولت ولم أفلح . لعل احد الاخوة يستطيع تعديله ( لم استخدم البحث كثيرا لضيق الوقت )

تحياتي

db1.rar

OMANI FOR EVER

-------------------------------------------------

post-12787-12780191801974.jpg

-------------------------------------------------

مواضيع مشابهة