vb.net

Date time validation in vb.net

Can anyone help me on how can I validate given DateTime between two DateTime using vb.net? the given DateTime must not in between the two DateTime.. ...

reading excel file in vb.net

can anyone help me on how to know EOF of excel using vb.net? i have this code but it crash when i try delete the proceeding rows from row 6 to downward. my problem is, my code was still reading a null values of rows that i deleted in excel.. this is my code: Dim xlsConn As New OleDbConnection Dim xlsAdapter As New OleDbDataAdapter Di...

Taking too much time to load the application in vb.net

Hello, i am using vb.net in which i have put the background image to every form.the image size is 1024X768.when i open the form it is taking too much time to open. and screen is fluctuate.so can you tell me how to remove this type of issue, reply me soon thanks samir ...

Sending jpegs by tcp socket...sometimes incomplete.

Vb.net Hi I've been working on a project for months now (vb 2008 express). There is one final problem which I can't solve. I need to send images to a client from a 'server'(listener). The code below works most of the time but sometimes the image is incomplete. I believe this might be something to do with the tcp packet sizes varying, ...

VB>NET database connectivity with a table having checkboxes

Can any1 help me hw 2 insert d code to move 2 d next record of the database in a table that has one CHECKBOX? i tried using the regular method of checkbox1=.Item("BookingStatus").ToString bt it gives a runtime error ...

vb.net pdf reader load problem

From the tools menu I have done right click>choose item>COM (tab)> and ticked adobe pdf reader. From here I simply dragged the pdf tool onto my form. That's all I've done. Now on form load it throws a bug. "InvalidOperationException was unhandled" hovering over the message it says the following, An error occurred creating the form. ...

Best way to password protect a folder?

I am trying to create a similar way to Cpanel password protect directory, where a pop up comes out asking the user for a username and a password, but Cpanel way is amazing but my client doesn't know anything on how to do that, so i wanted to create a pop up msgbox informing the visitor to enter a user name and a password, and i totaly co...

C#/VB.Net Web Browser Control Replacement

I've been working on a project that requires that I can go around webpages with different proxies, user-agents, and clear cookies. Now after looking all around the net, it looks like there are some solutions for each of these, but I can never get them working. I was wondering if there was a wrapper for this control that fixed all of thes...

Handling a MouseDown Event Regardless Of The Control

Is it possible to handle a mouseDown event in VB.Net (2008) regardless of the control firing the mouseDown event? Basically, I just want to catch a mouseDown event at the "form level" and don't want to program mouseDown event handlers in every control. Is there a way to do this? ...

Run time error in vb.net

I get the following error message in vb.net when I try to run the program Any help is greatly appreciated. Thanks Error 1 Unable to copy file "C:\Users\Mr. M Yoosuf Hassan\Desktop\CD\Software (full version)\Airline Reservation System - Copy\Airline Reservation System\Airline2.mdb" to "bin\Debug\Airline2.mdb". Could not find file 'C:...

How do I pass parameter as Date in vb.net web ?

I have a mail webform where I have to show the user only (-1) one day behind messages, so how do pass (yesterday)date as parameter and retrieve the only records of one day back ? This query is for 'ALL' messages, but I need to filter (yesterday) one day back messages and add a hyperlink or add in a dropdown ? select MSG_SRNO,MSG_SUBJECT...

How do I assign selected WPF datagrid row columns to variables. (VB.NET)

Hi, I have a datagrid with customer data such as ID, name, email, phone etc. When I select a row (with a button or selectionchanged) I want to store that row's columns in variables like dim email as string dim name as string email = dgCustomers.theselectedrow.theselectedcell name = dgCustomers.theselectedrow.theselectedcell If I have ...

Prevent users from being able to access a webpage via web browser?

My friend and I are working on a program. This program is going to submit GET data to our webpage. However, we don't want users accessing the webpage any other way than the program. We can prevent users from sharing the program using HWID authentication, but nothing prevents them from using a packet scanner to get the URL of the webpage....

Using a .txt file Resource in VB

Right now i have a line of code, in vb, that calls a text file, like this: Dim fileReader As String fileReader = My.Computer.FileSystem.ReadAllText("data5.txt") data5.txt is a resource in my application, however the application doesn't run because it can't find data5.txt. I'm pretty sure there is another code for finding a .txt fi...

System.Uri("") in default browser?

I am using special program where it loads some url imagine it like window with automatically load www.google.com - program starts and it load the site - BUT when you click on some links in the program window it opens in default browser - how it can be opened in default browser - I am using this code: <Global.Microsoft.VisualBasic.Compil...

Problem using GDI+ with multiple threads (VB.NET)

I think it would be best if I just copy and pasted the code (it's very trivial). Private Sub Main() Handles MyBase.Shown timer.Interval = 10 timer.Enabled = True End Sub Private Sub Form1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint e.Graphics.DrawImage(image, 0, ...

Is there a way to use a dictionary or xml in the Application Settings?

I have to store a complex type in the application settings. I thought that storing it as XML would work best. The problem is I don't know how store XML. I prefer to store it as a managed XML rather than using just a string of raw XML having to parse it on each access. I managed to set the Type column of the setting to XDocument, but I w...

VB.NET Button Issue

I am having problem with a button the code of my button is. Private Sub btnCalculateCosts_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculateCosts.Click it handles: ' This Calculate Costs button click event handler edits the ' registration(costs) form to ensure it contains valid data. ...

I am getting the erorr when I try to debug.

I am receiving the error noted below. I have built/rebuilt the files sevaral times. I have also renamed the file in the debug\ *.exe The NetworkAssociation.exe file is in the debug folder. Any help would be wonderful Visual Studio cannot start debugging because the debug target 'c:\NetworkAssociation\NetworkAssociation\Bin\D...

What is the difference between Dim s As String and Dim s As [String] ?

What is the difference between: Dim s As String and Dim s As [String] ...