I have a screen capture program running in the systray, when a user double clicks on it, it captures the screen and asks where to save the program. I need to know how to give the program the ability to be right clicked for more functionality(i.e. Exit, Options, and so on)
Also, can someone teach me how to only capture an active window
Is there a way that i can update a database on "PC A" with data from a database on "PC B."
All i want is 1 table, the fields match, but the other tables don't. Therefore if i copy the whole database, it will get corrupted.
Thanks,
Anthony
Anyone know how i can bold multiple days into the month calendar control? I'm using a loop to get the creation dates of files in a folder, and i want to hilight/bold them on the calendar so people can tell whether the files exist for that date.
Thanks,
Anthony
Multiple dates from file??
I was thinking about something else now...I have the dates for every file,
but how do i have
calCal.BoldedDates = New Date() {Date.Parse("4/2/2004")}
that, reflect 40 dates? The bold has to happen all in one New Date Call correct?
Would it be foolish to read all the dates in like so?
dim alldates as string
For Each File In Directory.GetFiles("\\hercules\IDSSPFLR\DayEnd\" & Report & "\")
FI = New FileInfo(File)
alldates += "New Date() {Date.Parse("
alldates += fi.CreationTime
alldates += ")"
Next
and then
calCal.BoldedDates = alldates
I know it'll probably not work but i am desperate.
Thanks
I tried to follow your links but they didn't work.
I have a program that is pulling names of Reports, that users print out on a daily bases from an access database. Basically, I have the Report Names in a combo box, what i want to happen is: when the user selects the report they want, the program searches through all the reports in a certain directory and retrieves the dates of all reports (which i have working) but i want the dates that are found to be Bolded in the default monthcalendar. Is there an easy way to do this?
Thanks,
Anthony
MSGBOX
No Value Given for one or more required parameters.
MDE Error
An unhandled exception of type 'System.NullReferenceException' occurred in AccessDB.exe
Additional information: Object reference not set to an instance of an object.
This is a pain in the behind...
Thanks for your help
I'm new at using vb.net to talk to databases and have been trying to follow examples that i have seen from other members. I'm trying to keep it simple by connecting to an access database but for some reason i always get this error when trying to run this code.
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim MyConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\ares\mis\data.mdb")
MyConnection.Open()
Dim MyCommand As New OleDbCommand("SELECT * FROM MyTable WHERE ID = 1", MyConnection)
Dim MyReader As OleDbDataReader = MyCommand.ExecuteReader()
While MyReader.Read
Lastname.Text = MyReader("MyFName")
FirstName.Text = MyReader("MyLName")
Address.Text = MyReader("MyAddress")
End While
MyConnection.Close()
MyReader.Close()
MyCommand.Dispose()
End Sub
It errors out on this line
Dim MyReader As OleDbDataReader = MyCommand.ExecuteReader()
I've looked everywhere but haven't found a solution.
Help please
I'm trying to copy 3 access tables from roadnet.mdb to tp.mdb
I was curious, is there an easy way to do this with vb? The last thing that i want to happen is transportation touching sensitive data.
Thanks.