Forum: VB.NET Sep 7th, 2007 |
| Replies: 3 Views: 7,104 If that's how you feel, who am I to disagree? |
Forum: VB.NET Sep 7th, 2007 |
| Replies: 3 Views: 7,104 It's not a lie, but you might be confused about when and how a control captures key strokes. I think you want a global winndows hook (http://www.codeproject.com/useritems/WindowsHookLib.asp). Here's... |
Forum: VB.NET Sep 6th, 2007 |
| Replies: 3 Views: 5,781 Get the user's choice from a message box and only set the dialog's DialogResult property to true if they click 'yes'. :)
Private Sub ButtonCancel_Click( ByVal sender As Object, ByVal e As... |
Forum: VB.NET Sep 5th, 2007 |
| Replies: 5 Views: 3,626 That's where you can use a date time picker and use the year in its value to filter the data source so that you don't get 5 years of dates in the combo box. :) |
Forum: VB.NET Sep 5th, 2007 |
| Replies: 5 Views: 14,716 Threads run until they're finished or you stop them by force. |
Forum: VB.NET Sep 5th, 2007 |
| Replies: 2 Views: 1,893 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,626 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,626 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,406 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: 5 Views: 14,716 Methods aren't owned by any one thread, they're just a bunch of instructions without any data. When you call a method, you have to say what thread the call runs against. Unless you do something... |
Forum: VB.NET Sep 4th, 2007 |
| Replies: 6 Views: 3,406 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,406 What are you doing in the form_Load event or constructor? |
Forum: VB.NET Sep 3rd, 2007 |
| Replies: 5 Views: 14,716 Invoke runs the delegate from the new thread but it's attached to the thread of the control that calls invoke. When you do main.Invoke( sendInform ) sendInform runs synchronously but is still... |
Forum: VB.NET Sep 3rd, 2007 |
| Replies: 2 Views: 695 Yeah, you can connect to SQL server 2000 with .net 2.0. What errors are you getting when you try? |
Forum: VB.NET Sep 3rd, 2007 |
| Replies: 3 Views: 7,776 Did you set the version number by going to Project/Properties/Assembly Information and typing it into the dialog? That's where My.Application.Info.Version gets it from. |
Forum: VB.NET Aug 31st, 2007 |
| Replies: 7 Views: 4,692 There's no reason that should happen unless you did something else later in the code that changes the bindings. |
Forum: VB.NET Aug 30th, 2007 |
| Replies: 5 Views: 1,127 Before vb.net there was vb4, vb5, and vb6 for 32 bit windows programming. vb6 is going to stop being supported by microsoft early next year, and vb.net is the successor to vb6, so you should be using... |
Forum: VB.NET Aug 30th, 2007 |
| Replies: 3 Views: 835 It depends on how much data you have and how users expect it to be presented... That's a design thing that's up to you. |
Forum: VB.NET Aug 30th, 2007 |
| Replies: 7 Views: 4,692 You set the data source but not the display member. The display member is the name of the column in the data table that you want to show in the list.
ComboBox1.DataSource = dt.Tables( 0 )... |
Forum: VB.NET Aug 30th, 2007 |
| Replies: 3 Views: 1,120 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 30th, 2007 |
| Replies: 1 Views: 1,606 http://en.wikipedia.org/wiki/Vehicle_identification_number
There are tons of links on google about how to decode the number. You can pick one of them and turn it into code. :) |
Forum: VB.NET Aug 29th, 2007 |
| Replies: 4 Views: 1,919 This (http://www.codeproject.com/dotnet/SimpleEncryption.asp) is a good article on .net encryption. |
Forum: VB.NET Aug 27th, 2007 |
| Replies: 9 Views: 2,471 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,471 What message does the exception give you? |
Forum: VB.NET Aug 27th, 2007 |
| Replies: 4 Views: 8,041 Here's a function for loading an excel spreadsheet using ADO.NET. It's in C#, but you should know how to convert between the two languages. :)
using System;
using System.Data;
using... |
Forum: VB.NET Aug 27th, 2007 |
| Replies: 9 Views: 2,471 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: 12 Views: 6,091 You can put it anywhere you want as long as you can access it. Like I was saying, I like to have a public Program class that has that kind of stuff in it as public properties, but you could even... |
Forum: VB.NET Aug 24th, 2007 |
| Replies: 12 Views: 6,091 Oops, I'm sorry. I forgot what forum we were in. :D
Imports System
Imports System.Data
Imports System.Data.SqlClient
Public Class DataManager
Public Shared Function ExecuteSql( ByRef... |
Forum: VB.NET Aug 24th, 2007 |
| Replies: 12 Views: 6,091 You don't edit it during the wizard, it saves the string in all of the generated code that gets written after you finish the wizard. But all of that stuff makes working with connections harder if you... |
Forum: VB.NET Aug 24th, 2007 |
| Replies: 9 Views: 2,471 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: 12 Views: 6,091 That's up to you. I like to put it in a static property for a Program class that I make for stuff that needs to be available across the entire application. Other stuff in that class would be the... |
Forum: VB.NET Aug 23rd, 2007 |
| Replies: 12 Views: 6,091 This knowledge base article (http://support.microsoft.com/kb/914277) takes you through the steps of configuring the server. Once you have it set up, you should be able to connect normally from... |
Forum: VB.NET Aug 23rd, 2007 |
| Replies: 12 Views: 6,091 Are you writing a VB.NET application to do it? Is the database configured for remote access? What problems are you having right now? I need more info before I can help you. :( |
Forum: VB.NET Aug 23rd, 2007 |
| Replies: 4 Views: 5,249 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: 13 Views: 3,154 You just described the completed project. I don't think anyone is going to do it all for you without some kind of payment. :D |
Forum: VB.NET Aug 22nd, 2007 |
| Replies: 2 Views: 649 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,249 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 22nd, 2007 |
| Replies: 5 Views: 3,558 I can't help then. I don't have any experience with web forms. But I found this (http://www.codeproject.com/aspnet/ItemCreated.asp) with a web search. I hope it helps. |
Forum: VB.NET Aug 22nd, 2007 |
| Replies: 5 Views: 3,558 Is this with windows forms or web forms? |
Forum: VB.NET Aug 22nd, 2007 |
| Replies: 5 Views: 3,558 Is item 5.14 on this FAQ (http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx#q745q) what you want? |