CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 9/30/2007 1:50:09 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 23 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
kimosavi
Asp.Net User
Display Web Ads in a VB2005 project9/30/2007 1:50:09 AM

0/0

Hi all,

 we wrote a small web application and we want to "mimic" it's functionality in a VB2005 project.

 One of the things that i don't know for sure is to display web ads in a windows form. Something like the AdRotator but for VB2005.

 is this possible? if so, how do i do it?

 

TIA!

Mikhail Arkhipo
Asp.Net User
Re: Display Web Ads in a VB2005 project10/1/2007 11:30:54 PM

0/0

You can implement similar control that would reads image URLs and 'Navigate To' URL from an XML file, download and display images and launch browser with given URL when user clicks on the ad.


Thanks

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

This posting is provided "AS IS" with no warranties, and confers no rights.
kimosavi
Asp.Net User
Re: Display Web Ads in a VB2005 project10/2/2007 12:45:22 AM

0/0

Thanks for the tip Mikhail.

 So there is no direct way to use the webcontrol in the windows form?

I can think of different ways to do this then, but will kindly appreciate your thoughts on this matter (so i don't take the long route)

can you demo me a little bit more, I am kind of new to VB2005. which components will you use?

 

Thanks again!

Mikhail Arkhipo
Asp.Net User
Re: Display Web Ads in a VB2005 project10/2/2007 12:51:45 AM

0/0

No, there is no direct way. There is a big difference beween Web controls and Windows Forms controls. Web Controls do not render themselves - they output HTML that designer (or browser at run time) is supposed to render appropriately. Windows Form controls draw themselves directly in the client window. Windows Form does not render HTML and it does not run control code (which normally runs in a Web server environment that Windows Form does not provide).


Thanks

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

This posting is provided "AS IS" with no warranties, and confers no rights.
kimosavi
Asp.Net User
Re: Display Web Ads in a VB2005 project10/21/2007 9:33:17 PM

0/0

All what I did for this to work is the following

1. Created a Table in my database to store (ID, AdName, AdImageURL, AdURL)

2. Create a DataSet conection to this Table

3. Create a Class to be used for Random Webpage Ads in VB2005.

 

Public Class WebAds

Public URLref As String

Public URLimg As String

Sub GetAds()

Dim DSWebAds As New WebAds 'Dataset

Dim DSwebAdsTableAdapter As New WebAdsTableAdapters.WEB_ADSTableAdapter

DSwebAdsTableAdapter.Fill(DSWebAds.WEB_ADS)

Dim AdNumber As Integer = DSWebAds.WEB_ADS.Rows.Count

Randomize()

AdNumber =
CInt(Int((AdNumber - 1 + 1) * Rnd() + 1)) - 1

URLimg = DSWebAds.WEB_ADS.Item(AdNumber).adIMG.ToString

URLref = DSWebAds.WEB_ADS.Item(AdNumber).adURL.ToString

End Sub

End Class

4.  Now in the form I insert an Image Object to retain the image once loaded.

5. Public a variable

Public USR_MENUads As New WebAds

6. In the form Activated code I type:

USR_MENUads.GetAds()

AdPicture.ImageLocation = USR_MENUads.URLimg

AdPicture.Refresh()

7. in the Image Click event type:

Process.Start(USR_MENUads.URLref)

Note: Remember to change the move over to the "hand" to make it look better :)

 

Enjoy!

5 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Display Web Ads in a VB2005 project - ASP.NET Forums Re: Display Web Ads in a VB2005 project. 10-01-2007, 7:30 PM. Contact ... Re: Display Web Ads in a VB2005 project. 10-01-2007, 8:45 PM ...
VB.NET - ACCOUNTING SOFTWARE/PROJECT SOURCE CODE IN VB 2005 ... NET - ACCOUNTING SOFTWARE/PROJECT SOURCE CODE IN VB 2005. ... : Programming & Web Development Community .... Bye Bye Ads ...
VB.NET - [VB2005]display Files In Cascade Layout After Opening ... NET - [VB2005]display Files In Cascade Layout After Opening. ... I dun have much choice since my project require me to run excel stand alone ...
Relax constraints vb2005 express : constraints, turn, your, relax Hi- I'm playing around with VB2005 express and sql2005express to pull some data ... Spy / Ad Blockers; Web Browsers; Web Servers; Networking; Anti-Virus ...
VB2005 Datagrid help for beginner! - Access World Forums Signatures are allowed, but not for advertising non-Access related .... Display or Hide an image in a datagrid depending on checkbox value. ...
Debugging a Web Service So I will assume here that you already know how to write a VB 2005 web service and ... Then display the Common Properties > Startup Project view and select ...
VB 2005 with Active Directory - .NET VB VB 2005 with Active Directory. Question posted by: IainM (Guest) on August 31st, 2006 03:25 PM. How can I enumerate AD objects (only in a ...
vb 2005 and dot net framework - VB.NET NET forum within the Web Development category. ... Add a Setup Project to your solution and configure it to add the . ...
Custom Exceptions in VB 2005 Raleigh NC - Raleigh NC, Exception ... BuildLinks: Web-based Project Management for Home Builders .... allow you to provide a custom user interface for the display of particular classes of data ...
TheMSsForum.com >> Winforms >> BackgroundWorker Control for VB ... Greets Jean Paul www.on7ami.be Tag: BackgroundWorker Control for VB 2005 Tag: ..... Method In upgrading a Windows Forms project from 2003 to 2005 in VB. ...




Search This Site:










what would this cost?????

problems with recompilation of ibuyspy.dll in ms access version

¿ how i can program commercestarterkit .net 2.0's web services api ?

no real cookie in getshoppingcartid-function

sql db as msde

can i use ms access with commerce starter kit

changing ib store prices from $ to £

problem with getting cartid

c# version & vb version

developing ecommerce application

install error: installutillib.dll:clrcreatemanagedinstance errors........

help!!!!

viewstate and header file issue

custom error handling

no <form> tag is used anywhere for ibuystore???

connection problem

how to calculate the customerid?

how can execute the storedb.sql under the msde enviroment?

instantorder page not displayed

commerce starter kit with coolmenus4 - dhtmlcentral

where is the real sql statement stored?

removeabandonedcarts job

cant set it up

the beer house starter kit problem

sub categories ? need help~~~

problem with checkout.aspx

ibuyspy not logging in when using web forwarding

problem with register page

problem with access version of ibuyspy store

probs with the ibuystore (access,vb version)

  Privacy | Contact Us
All Times Are GMT