vb.net

Different ways on how to manipulate access database in vb.net?

I'm currently using system.data.oledb but I can't seem to make the update , search, & delete work fine. Are there any other ways on how to manipulate an ms access database in vb.net easier than my method? Here is my code for searching: Dim cn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\ACCESS DATABASE\...

Handle exceptions in AppDomain.CurrentDomain.UnhandledException

Hi all, Is it possible to handle exceptions on the AppDomain.CurrentDomain.UnhandledException callback? I want to do the following: Show my own "an exception has occured" dialog, with a "Send Report" button After the user dismissed the box, I want to close my app, but I do not want to Windows default crash dialog "The application nee...

How to backup ms access database in vb.net?

How to backup ms access database in vb.net? We're gonna make a system for a certain company but our teacher doesn't teach us at all, please help. Any idea on how to do it? ...

How many times a string occurs in another string (textbox) VB.NET

How can I get how many times a string occurs in a textbox? I thought the find function would return the number of times found but it seems to return the location of it. ...

VB.NET - Parsing XML

Hi, how can I get a ArrayList or List of key and value of the Name, ID and description from the xml file below? I do not really understand how the handling of elimenter done in VB.NET based on logic in javascript. <?xml version="1.0" encoding="UTF-8" standalone="no"?> <Document> <TrackList> <plist> <array> <dict> <key...

Accessing dynamic JavaScript content from onclick

I have read previous posts and used suggestions about firebug and selenium etc. I am still a newbie and am still pretty confused as how to implement this. I am trying to access URLs that appear when I click on a link. I have accessed the JavaScript code and the function just has a couple of parameters which I have no idea how to intercep...

"No symbols are loaded" in new Application Framework vb.net project

In vb.net 2008, when I start a new project, it defaults to "Enable Application Framework." I add the following code to a button click handler to the main form in the new project: Dim k As Integer Dim s As String For k = 1 To 5000000 s = Mid(s & k, 1, 30) Next k End Sub Then, when I try to break execution to debug using the pause but...

VB.NET - Winsock GetData Method

Hey guys, I imported the Winsock feature in my vb.net application, so I can make a Chat System. I just have one little problem with my program. In the GetData method of my program, CLIENT SIDE: *Dim strData As String* AxWinsock1.GetData(strData, vbString) TextBox1.Text = TextBox1.Text & _ strData & vbCrLf It will under...

Run a server-side exe from ASP (beginner)

I have what should be a simple thing but my unfamiliarity with .NET and web programs is hindering me. I'm a straight up old-school C programmer who has been programming ASP and ASP.NET lately for an ecommerce site. I have an ASP program that synchronizes 2 databases. I also have a VB.NET program compiled down to an EXE that fills the ...

Dynamically call web service!

Hi! I need to dynamically call web service! For this I made simple web service Service1.asmx Then I created the proxy class for the Service1 Web Service, I use the WSDL.exe utility and following command at the command prompt: wsdl /language:VB /out:myclass.vb http://localhost:3245/Service1.asmx?WSDL This command create class myclass.v...

Duplicating effects: Dreamweaver Pong Easter Egg Beep

I don't want to actually MAKE the pong easter egg, but for anyone with Dreamweaver, try typing 'dreamweaver' into the color selection box to play a round of pong. The bit that I want to know how it works is the bit at the end once you lose. After your loss, it will immediately play a small tune, whether or not your volume is on. In fac...

How to Extract atom rss

Given an url, if it has any rss nodes, then i am adding to the date base. e.g. For the url link text rssDoc.SelectNodes("rss/channel/item").Count is greater than zero but for the atom url google/atom rssDoc.SelectNodes("rss/channel/item").count is equal to zero. How can i check if the atom rss url has any nodes or not ? have tried fo...

reference to a non-shared member requires an object reference vb.net?

Imports IWshRuntimeLibrary Module MainModule Public Function CreateShortCut(ByVal shortcutName As String, ByVal creationDir As String, ByVal targetFullpath As String, ByVal workingDir As String, ByVal iconFile As String, ByVal iconNumber As Integer) As Boolean Try If Not IO.Directory.Exists(creationDir) Then ...

Detect changes to registry, prevent changes, etc

How can you detect when the registry is changed? Furthermore, how can you prevent changes to the system registry? I want to create a security tool, but can't seem to find this anywhere. This is in vb.net. I know the registry is stored as files on your computer somewhere, but I have no clue where it is stored, though I could probably ...

Why can I not set right property in vb

I want my form to appear at the right edge of my screen but I not use since Right is readonly .Is there a solution for this? Right= My.Computer.Screen.WorkingArea.Right ...

how many variations of merge sort there are?

i'm looking to find how many different implementation of merge sort in .net there are because i was checking this post Sorting Algorithms in VB.Net: How To Implement Merge Sort and the article mentions that there are several other versions such as in-place and dunno what else... ...

VB.NET - WinForms - Prevent UserControl's resources being copied into the Form's local resource

I have a simple windows Forms application where in I have a usercontrol called "MyControl" derived from PictureBox. In this MyControl, I have the following code : Sub New() MyBase.New() Me.BackgroundImage = My.Resources.MyImage 'This is a project resource image End Sub Now when I drag and drop this MyControl into a form, I get ...

Issue with backgroundworker

could anybody knows any alternatives to progressbar? Inmy project im using progressbar..I would like to change it to something like a rotating gif image which indicates the processing or someother labels which prevents the user from interacting to the program.I tried to implement the gif image by using background worker but its hanging m...

what are other ways to do ping in vb.net or c# other than the way found here ?

what are other ways to do ping in vb.net or c# other than the way found here: Dim pinger As New System.Net.NetworkInformation.Ping MessageBox.Show(pinger.Send("192.168.0.119").Status.ToString) ...

make a richtextbox only have one font, even if pasted into (vb.net)

I need to use a richtextbox, not a normal textbox because of the way it keeps the caret position, from line to line. But I need to keep the text at the same font all the time even if it is pasted. At the moment I have it selecting the entire text and changing the font to the original (Lucida Console) but it look horrible when you paste ...