Forum: VB.NET Jun 13th, 2009 |
| Replies: 5 Views: 3,040 To do this I would (and have) used a datatable
You will need to import System.Data
Dim dt As New DataTable
'Add the columns to build the file list
dt.Columns.Add("FilePath",... |
Forum: VB.NET Apr 8th, 2009 |
| Replies: 1 Views: 801 It was caused by a dll I had written.
The dll was set to Windows Mobile 6 Standard and The Program was set to Windows Mobile 6.1 Pro
I removed the dll added the project found the issue that... |
Forum: VB.NET Apr 6th, 2009 |
| Replies: 1 Views: 801 I have been working on a project using Visual Studio.Net 2005 and Windows Mobile 6.1
After several builds and installers it has started throwing up an error during the build stage.
Any help... |
Forum: VB.NET Dec 16th, 2008 |
| Replies: 2 Views: 5,245 Thanks for the post but since the question was asked on Jun 15th, 2007 I have found an easy answer
Protected dvMyData as New DataView
ThendvMyData.Table = MyDataTable
dgData.DataSource =... |
Forum: VB.NET Nov 30th, 2008 |
| Replies: 2 Views: 2,204 In the forms properties set KeyPreview to True and then use the Key subs that the form supplies
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs)... |
Forum: VB.NET Oct 18th, 2008 |
| Replies: 1 Views: 1,185 The database connection string should be like this
Dim conn As New SqlConnection("Data Source=SERVER_NAME;Initial Catalog=DATABASE;uid=USERNAME;pwd=PASSWORD;")
If in your code you will be... |
Forum: VB.NET Aug 12th, 2008 |
| Replies: 1 Views: 1,764 Has anyone got any ideas as this is causing problems for the users.
Thanks |
Forum: VB.NET Aug 11th, 2008 |
| Replies: 1 Views: 1,764 I have a Crystal Report that shows images using a SQL Database with the image paths
When viewing the images in a report everything is fine untill you get to a page in the report when the error... |
Forum: VB.NET Jul 5th, 2008 |
| Replies: 2 Views: 7,541 Yes you can filter the dataset table rows.
Use the select commandDim Row as Datarow
For Each Row in Dataset.Tables(0).Select("Column = 'Find Me'")
MsgBox(Row("Column").ToString)
Next |
Forum: VB.NET May 30th, 2008 |
| Replies: 1 Views: 1,134 I have a project that requires a barcode and other information to be printed onto a label using a Thermal Printer (i.e. Zebra, TEC)
I have a print routine that will print plain text using "Generic... |
Forum: VB.NET May 18th, 2008 |
| Replies: 2 Views: 974 Add a timer to your form and add some code likeIf Form2.Left < Form1.Left + Form1.Width Then
Form2.Left += 10
End If |
Forum: VB.NET May 2nd, 2008 |
| Replies: 2 Views: 844 I would do one of the following:
Change this line from:SaveTextToFile(timeSpentTxt.Text, "C:\Docum...
To this to save ALL the entered values:'Create this as a Form Level Global
Private... |
Forum: VB.NET Apr 23rd, 2008 |
| Replies: 4 Views: 2,118 You can't just do a cbo1.items = cbo2.items
You will need to do somthing like:Dim Value as string 'Im not sure if this should be a string
For each Value in cbo2.Items
cbo1.items.add(Value)... |
Forum: VB.NET Apr 23rd, 2008 |
| Replies: 2 Views: 1,989 When you clicked "Publish Now" under the Publish tab it builds all the files, including one called something like "windowsApplication1.exe.deploy". This is the exe file but VB.NET has added the... |
Forum: VB.NET Apr 21st, 2008 |
| Replies: 1 Views: 381 Look into the commands with in System.Data.OleDb
System.Data.OleDb.OleDbCommand
System.Data.OleDb.OleDbConnection
System.Data.OleDb.OleDbDataAdapter
... |
Forum: VB.NET Apr 19th, 2008 |
| Replies: 6 Views: 2,188 You could store the data in a database, XML files or just you the My.Settings area
The My.Settings area is setup from the "My Project" List and it is a left side tab called Settings
The... |
Forum: VB.NET Apr 18th, 2008 |
| Replies: 3 Views: 762 OK
For a NumberUpDown box in the Properties screen (Lower Right) you can set a value called Maximum and Minimum or do it in codenumWidth.Maximum = 20
numWidth.Minimum = 5
This will stop the... |
Forum: VB.NET Apr 16th, 2008 |
| Replies: 5 Views: 2,472 I would use a SQL INSERT INTO Statment instead of the objDataAdapter.Update
Have a look at http://www.taylorsnet.co.uk/SourceCodeDetail.aspx?SourceID=5
It shows how to use INSERTs and UPDATEs
... |
Forum: VB.NET Apr 14th, 2008 |
| Replies: 3 Views: 762 If you are using number then the NumberUpDown control can be used as it has a property for min and max allowed plus it only allows numbers
If you are using textboxes then you will have to check... |
Forum: VB.NET Apr 11th, 2008 |
| Replies: 2 Views: 1,139 Try looking into the Microsoft XNA Framework
It works with VB.NET and C# |
Forum: VB.NET Apr 7th, 2008 |
| Replies: 3 Views: 1,496 Where is the problem?
If the problem is withDim c As Integer = DGVShops.Item(0, i).ValueThen try using CTypeDim c As Integer = CType(DGVShops.Item(0, i).Value, Integer)
If the problem is the... |
Forum: VB.NET Apr 5th, 2008 |
| Replies: 2 Views: 988 Try'In the forms event (Me.Move) of Form1
If Locked = True Then 'Locked as Boolean (Global)
Form2.Left = Me.Left + Me.Width
Form2.Top = Me.Top
End If |
Forum: VB.NET Apr 3rd, 2008 |
| Replies: 6 Views: 663 I would use Microsoft SQL Express (FREE) as the database and Microsoft SQL Server Management Studio Express (FREE) to manage and setup the database
They are both downloadable from Microsoft's web... |
Forum: VB.NET Apr 3rd, 2008 |
| Replies: 1 Views: 905 Hi,
Is it possible to create merged headers and/or sub headers in a datagrid
i.e. |Column A | Column B | Column C|
| SH1|SH2 | SH1|SH2 | SH1|SH2 |
| 1 | 6 | 8 | 12 | 6 | 8 |
| 3 |... |
Forum: VB.NET Mar 13th, 2008 |
| Replies: 2 Views: 5,876 Hi Try Using
Insert & Update commandDim OLECon As New OleDb.OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = db.mdb")
Dim OLECmd As New OleDb.OleDbCommand
Dim OLEStr as String
... |
Forum: VB.NET Mar 11th, 2008 |
| Replies: 2 Views: 770 Hi,
Open "Visual Studio"
Select "Tools > Options"
Tick "Show all Settings" (Lower Left)
Select "Debugging"
Select "Just-in-Time"
... |
Forum: VB.NET Mar 9th, 2008 |
| Replies: 2 Views: 6,061 You could run separate SQL Select statements for the selected item SELECT * FROM table WHERE Tour_location = '" & cmbindiantourcode.text & "'"
or you could download the whole table and bind to the... |
Forum: VB.NET Jan 27th, 2008 |
| Replies: 5 Views: 3,040 The best way i have found to deploy images, sound and other types of files is to place them in your "Resources" folder and then select the file in "solution Explorer" and change the property "Copy to... |
Forum: VB.NET Jan 26th, 2008 |
| Replies: 3 Views: 4,815 Hi,
FormName.Show 'to open a form
and
FormName.ShowDialog 'to open a modal form |
Forum: VB.NET Jan 26th, 2008 |
| Replies: 5 Views: 3,040 Hi,
If the file is in a subfolder of your project then you can call it using its full pathDim FilenameAndPath as String
FilenameAndPath = My.Application.Info.DirectoryPath &... |
Forum: VB.NET Jan 6th, 2008 |
| Replies: 4 Views: 8,435 Hi,
If you want to send E-Mails without Outlook installed then you might want to use VB.NETs SMTP code
Try this:
http://www.taylorsnet.co.uk/SourceCodeDetail.aspx?SourceID=2 |
Forum: VB.NET Dec 30th, 2007 |
| Replies: 2 Views: 663 Hi Try,Dim SQLChanges as New DataTable
SQLChanges = SQLTable.GetChanges
if SQLChanges.Rows.Count > 0 then
msgbox("Changes Detected!")
Exit Sub
End if
Where
SQLChanges is a New... |
Forum: VB.NET Dec 29th, 2007 |
| Replies: 1 Views: 7,371 I used this code to create a table with each month as a checkbox Dim chkBox As System.Type = System.Type.GetType("System.Boolean")
With dtYear.Columns
.Add("Jan", chkBox)... |
Forum: VB.NET Dec 26th, 2007 |
| Replies: 1 Views: 569 Trycmd = New OleDbCommand("select * from [patient table]", cn)
[] are needed if there is a space in an table, column name! |
Forum: VB.NET Dec 11th, 2007 |
| Replies: 3 Views: 1,756 Have you tried
txtbox1.text = My.Settings.Astrology
txtbox2.text = My.Settings.Cricket
txtbox3.text = My.Settings.Foreigncurrency
txtbox4.text = My.Settings.Jobs |
Forum: VB.NET Dec 10th, 2007 |
| Replies: 2 Views: 2,144 What is your application doing at this time as the white screen sounds like the CPU is maxed out or the main thread is too busy to refresh the form |
Forum: VB.NET Dec 1st, 2007 |
| Replies: 3 Views: 1,870 check the value of "Me.TXT_r.Text" as even with a Int(Me.TXT_r.Text)
"" and letters cannot be converted into numbers
Try adding a "If IsNumeric(Me.TXT_r.Text) Then" to stop the Exception |
Forum: VB.NET Dec 1st, 2007 |
| Replies: 2 Views: 1,552 I would try using Multi-Threading
Make the main thread continue running your application and the NEW Multi-Thread the open the other application
when the application is running the new thread... |
Forum: VB.NET Dec 1st, 2007 |
| Replies: 2 Views: 1,163 You need to get all processes the match the name of your application in an array()
Then Kill each one Dim myProcesses As Process() = Process.GetProcessesByName("iexplore")
Dim myProcess As Process... |
Forum: VB.NET Nov 28th, 2007 |
| Replies: 7 Views: 4,754 try
Dim FileName As String = "12345_789.567"
If FileName.contains("_") Then
' do whatever
End If |