Forum: VB.NET Feb 4th, 2009 |
| Replies: 16 Views: 2,045 use condition on your select statment. |
Forum: VB.NET Jan 25th, 2009 |
| Replies: 5 Views: 2,006 on datagrid double click event, get data on selected then show it on main form. |
Forum: VB.NET Jan 22nd, 2009 |
| Replies: 5 Views: 1,320 write this on the top of codes
Imports System.Data.Odbc |
Forum: VB.NET Sep 17th, 2008 |
| Replies: 7 Views: 943 Actually i didn't agree with your if statement :
If you want to know check box is checked or not then use Checked function :
Try this :
Private Sub chkboxLadiesShoes_CheckedChanged(ByVal sender As... |
Forum: VB.NET Sep 17th, 2008 |
| Replies: 4 Views: 1,779 Try This code :
Dim path as String
path = "D:\Test\Music.wav"
My.Computer.Audio.Play(path) |
Forum: VB.NET Sep 17th, 2008 |
| Replies: 3 Views: 433 Try this
Microsoft.VisualBasic.Right("Daniweb",3) |
Forum: VB.NET Sep 16th, 2008 |
| Replies: 6 Views: 1,518 Use timer to make delay and progress bar.
so, draw a timer and progress bar then add this following code :
Private Sub WelcomeScreen_Load(ByVal sender As System.Object, ByVal e As... |
Forum: VB.NET Sep 15th, 2008 |
| Replies: 13 Views: 10,782 Then post your code, it more help.
and which line of error... |
Forum: VB.NET Sep 15th, 2008 |
| Replies: 13 Views: 10,782 |
Forum: VB.NET Sep 12th, 2008 |
| Replies: 10 Views: 1,676 you can add reputation on Dnx, just click on Add to Dnx's Reputation and fill the message. |
Forum: VB.NET Sep 12th, 2008 |
| Replies: 18 Views: 2,942 Dim temp, quantity As Double
Console.Write("How many liters (only whole liters please ) ? ")
temp = Console.ReadLine()
quantity = Double.Parse(temp) |
Forum: VB.NET Sep 1st, 2008 |
| Replies: 8 Views: 1,121 Try This :
Public Sub GenerateNotaId()
Dim myReader As SqlDataReader
conn = GetConnect()
conn.Open()
Dim temp As String
Try
Dim sql As... |
Forum: VB.NET Aug 27th, 2008 |
| Replies: 4 Views: 1,728 yes i know it for c#...but you can get a logic from that.
That's i why still post it.
Good luck :) |
Forum: VB.NET Aug 27th, 2008 |
| Replies: 4 Views: 1,728 See this (http://www.dotnetspider.com/resources/4859-Check-if-port-open-or-closed.aspx) |
Forum: VB.NET Aug 26th, 2008 |
| Replies: 6 Views: 503 1. you can hide close, minimize and maximize in form properties.
2. Just Call About form in menu strip click event.
3. Set splash form as Startup object.
Project -> ProjectName Properties ... |
Forum: VB.NET Aug 26th, 2008 |
| Replies: 8 Views: 2,001 >> ListBox1.Items.Add(Prc(x).ProcessName)
thanks iamthwee for the correction. |
Forum: VB.NET Aug 26th, 2008 |
| Replies: 7 Views: 4,315 First, you need the following declarations:
Private Const EM_GETLINECOUNT As Integer = &HBA
Private Const EM_GETLINE As Integer = &HC4
Private Const EM_LINELENGTH As Integer = &HC1
... |
Forum: VB.NET Aug 25th, 2008 |
| Replies: 4 Views: 469 Try This :
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Name, Id, ye, Gen As String
Name = txtName.Text
... |
Forum: VB.NET Aug 25th, 2008 |
| Replies: 8 Views: 2,001 Try this :
Private Sub ProcessView()
Dim Prc As Process()
Dim x As Integer
Prc = Process.GetProcesses
For x = 0 To UBound(Prc)
... |
Forum: VB.NET Jul 17th, 2008 |
| Replies: 4 Views: 7,161 dim string1 as string
string1 = gridview1.rows(row#).cells(cell#).text.tostring |
Forum: VB.NET Jul 10th, 2008 |
| Replies: 3 Views: 612 Private Sub ListView_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim i As Integer
Dim lvitem As ListViewItem
For i = 1 To... |
Forum: VB.NET Jun 24th, 2008 |
| Replies: 10 Views: 3,694 if successfully then give a message. |
Forum: VB.NET Jun 23rd, 2008 |
| Replies: 3 Views: 3,649 see this code, this my code to get data into combobox :
Private Sub BacaData()
Dim i, k As Integer
Dim cmdStudent As New SqlCommand
Dim daStudent As New SqlDataAdapter
... |
Forum: VB.NET Jun 23rd, 2008 |
| Replies: 10 Views: 3,694 using timer.
in timer event you can change text color. |
Forum: VB.NET Jun 22nd, 2008 |
| Replies: 5 Views: 2,687 Well, great..
Don't forget to mark this thread solved. |
Forum: VB.NET Jun 21st, 2008 |
| Replies: 5 Views: 2,687 >> filelength = filelength + file.Length
it should be objfile.length
>> filelength = filelength + file.Length
why you add filelength with file.Length?
just filelength = file.length
i suggest... |
Forum: VB.NET Jun 19th, 2008 |
| Replies: 5 Views: 2,292 Private Sub TrackBar1_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TrackBar1.Scroll
Form1.ActiveForm.Opacity = TrackBar1.Value / TrackBar1.Maximum
End Sub |
Forum: VB.NET Jun 19th, 2008 |
| Replies: 5 Views: 1,401 try this following code :
Private Sub TextBox3_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox3.TextChanged
If Val(TextBox3.Text) > 32 Then
... |
Forum: VB.NET Jun 15th, 2008 |
| Replies: 6 Views: 9,339 To call form2 you must to make an object of form2 :
Dim MainMenu as New Form2
MainMenu.show
To close form1 after called form2 :
- Don't use Me.Close cause it will close application.
- Use... |
Forum: VB.NET Jun 10th, 2008 |
| Replies: 3 Views: 2,223 try this following code :
First Textboxt to input words = textbox2
Second to input certain char = textbox1
Button to execute and label to show result.
Private Sub btnSearch_Click(ByVal sender As... |
Forum: VB.NET Jun 10th, 2008 |
| Replies: 2 Views: 751 see this code :
Dim cn As OleDbConnection
Dim cmd As OleDbCommand
Dim dr As OleDbDataReader
cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\MyDB.mdb;")
cn.Open()
cmd... |
Forum: VB.NET Jun 10th, 2008 |
| Replies: 2 Views: 836 Hi...
You want to add it and run with vb.net.
.Net doesn't have a special Script Control.
Download the Script Control (ActiveX) from Microsoft
See this link... |
Forum: VB.NET Jun 10th, 2008 |
| Replies: 5 Views: 810 I hope that will solved your problem. |
Forum: VB.NET Jun 10th, 2008 |
| Replies: 2 Views: 520 First add reference Microsoft SQLDMO Object Library.
then add this code :
Dim i As Integer
Dim oNames As SQLDMO.NameList
Dim oSQLApp As SQLDMO.Application
oSQLApp = New... |
Forum: VB.NET Jun 10th, 2008 |
| Replies: 3 Views: 641 try this :
Public Function Factorial(ByVal Number As Integer) As String
Try
If Number = 0 Then
Return 1
Else
Return Number *... |
Forum: VB.NET Jun 9th, 2008 |
| Replies: 5 Views: 2,205 this will detect if mouse button clicked :
Private Sub Form1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown
If e.Button =... |
Forum: VB.NET Jun 9th, 2008 |
| Replies: 5 Views: 583 Well, try this code :
add this code in datagrid click event.
Dim i As Integer
i = dgAuthor.CurrentRowIndex()
MsgBox(Trim(dgAuthor.Item(i, 0)) & " - " & Trim(dgAuthor.Item(i, 1)) & " - " &... |
Forum: VB.NET Jun 9th, 2008 |
| Replies: 5 Views: 583 you mean get data on each row? |
Forum: VB.NET Jun 4th, 2008 |
| Replies: 2 Views: 3,022 the easiest way is copying current access database to backup folder.
Use FileCopy to copying file.
this following code is an example :
Private Sub Button1_Click(ByVal sender As System.Object,... |
Forum: VB.NET Jun 4th, 2008 |
| Replies: 2 Views: 3,022 just copying a .mdb file to backup folder. |