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

كيفه عمل متصفح انترنت بالفيجول بيسك نت؟؟

مغلق
بدأه princesss في 21 أبريل 2006 · 2 رد · 2,508 مشاهدة · في Microsoft Visual Basic.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم اخوانى الكرام

اردت معرفه كيفيه عمل متصفح انترنت نت ببرنامج من الفيجول بسيك نت

علما انى قرته الطريقه في موضوع دروس شبه يوميه وطبقت المعطى لكن لم يكن كافيات اعتقد انه هناك نقص في الشرح فانا اريد اثناء تشغبل البرنامج والجهاز مرتبط بالنت يقوم بعمليه التصفح من بحث والخ من خلال برنامجي

اتمنى لذوي الخبره افادتى بالموضوع وجزاكم الله خير

#2

هذا الكلام منقول من كتاب :

Creating Your Own Web Browser
The WebBrowser control we became oh-so-familiar with in Visual Basic 6 has no
.NET equivalent. To use it, we need to step back into the world of COM.
To add a WebBrowser control to a Windows form, right-click on the toolbox
and select Customize Toolbox. Browse the list of available COM components and
check the Microsoft Web Browser option, then click on OK. This will automatically
create a “wrapper” for you, allowing you to use the COM component in .NET.
At the bottom of your toolbox control list, you’ll now see an Explorer item.
Draw an instance of this onto your form, and that’s your browser window!
So, what can you do with it? Everything you could before. Let’s review the most
popular methods, most of which are self-explanatory:

AxWebBrowser1.Navigate ("http://www.vbworld.com/")
AxWebBrowser1.GoBack
AxWebBrowser1.GoForward
AxWebBrowser1.Stop
AxWebBrowser1.Refresh
AxWebBrowser1.GoHome ' Visits the homepage
AxWebBrowser1.GoSearch ' Visits the default search page

TOP TIP It may be a neat control, but the WebBrowser is prone to generating
whopping great big error messages for any silly little matter. As such, don’t feel
bad for using those old “On Error Resume Next” statements liberally

We also have a number of particularly interesting properties:
strPageTitle = AxWebBrowser1.LocationName
strURL = AxWebBrowser1.LocationURL
AxWebBrowser1.Document... ' Accessing page HTMLDocument object
You’ll also find that the browser supports a bundle of cool events,
including DocumentComplete (which fires when any Web page has finished
loading), BeforeNavigate2 (which fires before a page is visited—set the Cancel
property to True to cancel the request), and ProgressChange (which fires whenever
the progress bar in Internet Explorer would change).
That’s all you need to get your favorite Web control into .NET. (See Figure 7-1
for my sample application.) Good luck

تم تعديل هذه المشاركة بواسطة ihsan_ahmed في 21 أبريل 2006 في 19:53

#3

شكرا اخي الكريم ولكن اهم شي هل جربته ؟؟؟

على العموم سوف اقوم بتجربته وشكرا جزيلا لتعاونك

هذا الموضوع مغلق.

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