Forum: VB.NET Sep 5th, 2007 |
| Replies: 2 Views: 1,833 Yes, there is! :) What you need to do is access the controls through a dummy interface that calls Invoke on the control instead of manipulating it directly if it's not on the main thread.
Delegate... |
Forum: VB.NET Sep 4th, 2007 |
| Replies: 5 Views: 3,579 I don't think they make sense for the date time picker. There's probably a few ways you can define them for the control, but I can't think of any that make a date time picker the better choice than a... |
Forum: VB.NET Sep 4th, 2007 |
| Replies: 5 Views: 3,579 Did you try databinding?
DateTimePicker1.DataBindings.Add( "Value", MasterTable, "Dates" )
I don't think that'll work very well though. If you pick a date that isn't in the table, you'll... |
Forum: VB.NET Sep 4th, 2007 |
| Replies: 6 Views: 3,319 The data source part of the connection string refers to an mdb file, not a folder path. I think it should be like this.
Dim DBSPATH As String = "C:\Documents and Settings\rgibson.FOODGROUP\My... |
Forum: VB.NET Sep 4th, 2007 |
| Replies: 6 Views: 3,319 That's usually an error you get with malformed connection strings for ado.net. You mentioned access, are you trying to connect to the database at all? If you are, what does the connection string look... |
Forum: VB.NET Sep 3rd, 2007 |
| Replies: 6 Views: 3,319 What are you doing in the form_Load event or constructor? |
Forum: VB.NET Aug 30th, 2007 |
| Replies: 3 Views: 1,113 I'm not sure what you mean, but you can write a unit test method that runs the event handlers for each of the buttons as if you clicked on them. That automates a sequence of button clicks... |
Forum: VB.NET Aug 27th, 2007 |
| Replies: 9 Views: 2,349 Put it somewhere else without all of the extra nesting, like C:\. Make sure that the extension is right. If this is access, it should be *.mdb, not *.mdp, I think. When it tells you it can't find the... |
Forum: VB.NET Aug 27th, 2007 |
| Replies: 9 Views: 2,349 What message does the exception give you? |
Forum: VB.NET Aug 27th, 2007 |
| Replies: 9 Views: 2,349 System.Xml and System.Xml.dll are the same thing in the reference picker. But that reference should have been added when you made a windows forms project... |
Forum: VB.NET Aug 24th, 2007 |
| Replies: 9 Views: 2,349 You don't need to surround the database path in quotes inside a connection string. The key/value pairs are all delimited. It should look like this instead.
con.ConnectionString =... |
Forum: VB.NET Aug 23rd, 2007 |
| Replies: 4 Views: 5,163 That's what the link is for. :) Here's a super short program that does it.
Public Class MainForm
Inherits System.Windows.Forms.Form
Private _trayIcon As System.Windows.Forms.NotifyIcon
... |
Forum: VB.NET Aug 22nd, 2007 |
| Replies: 2 Views: 644 You can set the FormBorderStyle to None and that removes the border and toolbar completely. Is that what you wanted? |
Forum: VB.NET Aug 22nd, 2007 |
| Replies: 4 Views: 5,163 Add a NotifyIcon (http://www.codeproject.com/csharp/trayiconmenu01.asp) to your project that's only visible when the main form's window state is minimized. |
Forum: VB.NET Aug 17th, 2007 |
| Replies: 2 Views: 1,505 Use the Thread.Sleep() method.
System.Threading.Thread.Sleep( 100 ) |
Forum: VB.NET Aug 17th, 2007 |
| Replies: 2 Views: 2,479 You can use the ToString() method of the value and it will turn DBNull into an empty string.
T7.Text = tmp.Fields("Street").Value.ToString()
Or you can test for DBNull and just not set the text... |