hiee,
I like to create a word i.e.(*.doc) file in VB.Net.
I know how to create that by adding a com object to our project.
But i don't want that because, some might not use MS Word, like i myself use Open Office and not MS Office. So at that time it will give error.
I already developed a application on creating PDF file without adding ...
I know this will seem like a dumb question but I'm just getting started in .NET from an old-school C mindset.
I created a program in MS Visual Web Developer 2010. It has a form that simply launches a script that manipulates a database. The project lives in several files and they are all inherited so they see each other and it accesses...
Hey all,
I have a VB.NET app that is behaving strangely (or perhaps not strangely at all and I'm just missing something).
I have a login form that when the user clicks OK and logs in successfully it loads the main application form.
However when I show the main form and close the login form, the app is firing the shutdown event.
Is th...
What is the best way to access a Rails 3 REST-ful web service, developed using standard Active Resource techniques including HTTP authentication over SSL, from a VB.NET consumer?
Consumer can be .NET 4.0 if that is necessary.
Are there any .NET libraries yet that can bridge the gap?
I have already come across links like this (http://...
I have an application which is supposed to communicate with multiple custom devices, some of which use FTDI USB-to-serial converter chips, and some of which use TCP. The application needs to be able to accept data at any time, from devices which may be plugged or unplugged at any time; the application serves as a bridge between devices ...
hello All,
I have a question regarding the synchronization in multi threading.
I have a function called send which i am calling in a for loop for every data row.
This function creates threads to send emails to different people.
Public Sub send(ByVal Conn As Data.DataRow, ByVal job As Data.DataRow)
MyThread = New T...
This question is a follow up to a previous question (here).
I have acquired a DLL that was created in Visual Basic from a third party vendor(Sensor DLL.dll). This DLL contains functions for talking to a sensor, and I need to call these functions from a Visual C++ program I am writing. The vendor will not provide a header file, and I d...
I recently wrote a section of code wherein upon finishing, I received a warning from the compiler telling me that one of my variables is being used before it is assigned a value. In practice, the method call on this object will never be made without the object being instantiated beforehand. Here is the snippet of code
Try
fs = New F...
Hi guys, im trying to retrieve this text on a webpage without the line break:
<span class="listingTitle">888-I-AM-JUNK. Canada's most trusted BIG LOAD junk removal<br />specialist!</span></a>
How can I do it?
Here is my current code so far, im using vb.
Dim content As String = ""
Dim doc As New HtmlAgilityPack.HtmlDocument()...
I'm facing a problem that Google couldn't solve yet!
I'm trying to store URLs in an XML file. Problem is that these URLs contain Equal Signs (=) in them. And that generates an error.
Here is my code: (**token is a variable that contains the URL)
Dim child As String = vbCrLf & "<Link URL='" & token & "'></Link>"
Dim fragment As XmlDocu...
I'm reading a binary file into a bindinglist of (t); to be bound to a datagridview.
Each line in the file represents a single transaction but I need to consolidate and or filter transactions that meet certain criteria.
I know how to do this from a mechanical standpoint (looping the list while adding each item, and adding a new item, o...
Possible Duplicate:
Drop Down in VB.NET
Dear All,
I have a small requirement and that is:
There are two combo boxes on a form and for populating the employee names and roles. I am populating the combo boxes as follows:
I have created a class called "DbConnect" and in that there are 02 functions as:
Public Function getEmp...
I've developed an application in vb.net that can run from a usb drive. But i need my app to work only from that usb in which i distribute it.
If someone copies it to other Drive/USB, it must not work. Do u know how to implement this?
...
Could someone point me why the IndexOf returns always zero in the following text?
Dim Str as string = "<p><img class=floatLeft width="330"src="http://www.com"></p><p>"
Dim Idx as integer = Str.IndexOf("<p>")
Is there any other way, of getting the index?
...
Im a little stuck with my app again. My app retrieves "Place names" and their "Addresses" from yellowpages.ca
Here is the code so far:
Dim content As String = ""
Dim web As New HtmlAgilityPack.HtmlWeb
Dim doc As New HtmlAgilityPack.HtmlDocument()
doc.Load(WebBrowser1.DocumentStream)
Dim hnc As HtmlAgilityPack.HtmlN...
I have written code to show records in a datagridview but it shows nothing. I have tried to debug & when it step into GetData function following codes
Catch ex As Exception
returnData = Nothing
If connection.State = ConnectionState.Open Then
connection.Close()
End If
become gray & it shows error sign. When I take my mouse ...
This may seem like an obvious answer, but I can't seem to find an answer. I have this code in VB.NET:
Public Interface ITestInterface
WriteOnly Property Encryption() As Boolean
End Interface
And I also have this class and implementation in VB.NET:
Partial Public Class TestClass
Implements ITestInterface
Public WriteOnly...
I'm trying to save a binary file stored in a SQL database with a SaveDialog, the function RetrieveFile retrieves the specified file from the database as a Byte array, here's what I have so far:
Private Shared Function RetrieveFile(ByVal filename As String) As Byte()
Dim connection As New SqlConnection("Data Source=SERVER\SQL2008;Ini...
Using this link http://www.yellowpages.ca/search/?stype=si&what=sh&where=Ottawa,+ON&x=0&y=0 and telling HtmlAgilityPack to retrieve both address and place name at the same time ("//span[@class='listingTitle']|//div[@class='address']/text()[normalize-space(.)]"), I can get a list of placenames and addresses like this in a ...
I have a code that retrieves all the "place names" and all the "addresses" separately in this link:
http://www.yellowpages.ca/search/si-geo/1/sh/Ottawa,+ON
I need to modify my code so that it will only retrieve the placename and address if
<div class="address""> is not found within <div class="listingDetail"">
class="address" is the...