vb.net-2010

How to get HTML from the URL and display it in certain place?

旧街凉风 提交于 2019-12-12 05:39:35
问题 I'm in progress with my first application in visual basic, and I'm using the visual basic studio - My question is, how can I get raw HTML data from specified URL, and then display it in my form on the certain position? I havent tried anything yet, because I havent found much solutions about this on the internet. 回答1: You need to use the HttpClient class or the WebClient class to get the raw HTML as a string. Then, you can simply display the string in any control on your form such as a TextBox

VB.NET issue connecting to Oracle 11g

做~自己de王妃 提交于 2019-12-12 03:58:33
问题 OS: Windows 7 64bit VB: Visual Studio 2010 Oracle Client: 11g I am developing an application that connects to an Oracle 11g server. I am able to connect to the Oracle server via Oracle SQL Developer, ODBC (in SYSWOW64), and in VB Server Explorer. I am using the .NET reference Oracle.DataAccess located at: C:\Oracle\product\11.2.0\client_32\ODP.NET\bin\2.x\Oracle.DataAccess.dll I have tried adding the .DLL files to my bin folder as suggested by other questions and that does not work. Does

Need help getting child windows

☆樱花仙子☆ 提交于 2019-12-12 02:45:24
问题 I am working in vb with visual studio 2010. The app AnyOrder is no longer supported and I am trying to make an app where our users can type in info and then have the info populate into AnyOrder (and also other sites - they have to populate a lot of redundant info) but I am having no luck at all getting the child windows of any order to populate once the data is in the VB window app. I can get the parent window handle just fine but can't seem to get a child window handle to save my life. I can

Include and Call PDF File in vb.net (after Deployement)

旧时模样 提交于 2019-12-12 02:26:22
问题 Glad to see this site, Thanks guys for being active. :) I have a problem in Visual Studio 2010/VB.Net I have windows form in Visual Basic, I deployed the software(form) to one installer Now I want to open My PDF file( i-e: Specific) with Button_Click_Event I know that: Process.Start("MyPDF.pdf") But I dont know if user install my software in his PC so may be he install the software in C D or other directory, and also I dont know How to include PDF file in my project :) Please suggest for me,

References in Microsoft Visual Studio not working

℡╲_俬逩灬. 提交于 2019-12-12 02:08:10
问题 Currently, I am attempting to send an email using VB.NET. Now, I have added a reference with this code: (I have added placeholders) Module Module1 Sub Main() ' Create an Outlook application. Dim oApp As Outlook._Application oApp = New Outlook.Application() ' Create a new MailItem. Dim oMsg As Outlook._MailItem oMsg = oApp.CreateItem(Outlook.OlItemType.olMailItem) oMsg.Subject = "Send Attachment Using OOM in Visual Basic .NET" oMsg.Body = "Hello World" & vbCr & vbCr ' TODO: Replace with a

VB.NET directory.EnumerateFiles: Access to path X is denied

一曲冷凌霜 提交于 2019-12-12 01:14:27
问题 Ok so I am trying to write a program to find a specific file on the C drive and get its location. However the following code does not work! I've researched this a lot and gone from GetFiles to Directory.enumerateFiles. However I keep running into an exception claiming that I have no access, simply ignoring the message (closing it/pressing ok) does not continue the search and instead stops it altogether, I need a way of bypassing this if possible, so If a directory causes an exception it will

'System.ArgumentException' occurred in System.Data.Entity.dll for Entity MyBase.New in PFModel.Designer.vb

别来无恙 提交于 2019-12-11 22:46:10
问题 I received this error: A first chance exception of type 'System.ArgumentException' occurred in System.Data.Entity.dll After adding a new property in my entity model. This occurs after trying to add a new module level object Private mdbContext As New PFModelContainer Which then goes to Public Sub New() MyBase.New("name=PFModelContainer", "PFModelContainer") Where it goes to the error and stops. It worked before I created the property but after I added the property and generate database model..

WPF WebBrowser Control Custom Property

故事扮演 提交于 2019-12-11 20:27:29
问题 Ok. So I ran across a couple code examples stating that I can create a custom property for the WPF WebBrowser control, that will allow me to bind a string of html to the control for rendering. Here is the class for the property (which is in a file called BrowserHtmlBinding.vb): Public Class BrowserHtmlBinding Private Sub New() End Sub Public Shared BindableSourceProperty As DependencyProperty = DependencyProperty.RegisterAttached("Html", GetType(String), GetType(WebBrowser), New

Updating Data in Database MS Access vb.net

假装没事ソ 提交于 2019-12-11 18:18:56
问题 Private Sub Exe1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load txtScore.Enabled = False con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\SJMI.Alfie\Documents\Visual Studio 2010\Projects\WindowsApplication2\WindowsApplication1\Accounts.accdb" con.Open() End Sub Private Sub Submit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Submit.Click myqry = "UPDATE Accounts SET StudNo=?, Exer1=? WHERE Number=?

There are no property pages for the selection

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 16:46:03
问题 Hey guys my friend sent me his vb.net project made in VS2012 but I'm using VS2010. Now I can't open the file, it says 'This project is incompatible with current version of Visual Studio'. I have Googled it out and they said I need to change format version to v11 instead of 12 and also change target framework to 4.0. However, I am only able to change the format version to v11, but unable to change the target framework since I have nothing to access in the properties , as it shows 'there are no