it cause your option button is an array control.. so vb doesn't recognize the control..
so your code must be :
If Opt1(0).Value = True Then
it cause your option button is an array control.. so vb doesn't recognize the control..
so your code must be :
If Opt1(0).Value = True Then
so..you on form2 and after msg u want to back to form1?right?
so just showing form 1 after message..
Private Sub Command1_Click()
If Text1.Text = "" Then
MsgBox ("You have no content on your 1st Textbox")
Form1.Show
Unload Me
Else
End If
End Sub
A. use Microsoft Multimedia Control. find this control on component.
add this code to play mp3 file :
Private Sub PlaySound()
On Error GoTo ErrMsg
AxMMControl1.Wait = True
AxMMControl1.FileName = "D:\test.mp3"
AxMMControl1.Command = "Open"
AxMMControl1.Command = "Play"
Exit Sub
ErrMsg:
MsgBox(Err.Description)
End Sub
B. just call procedure name
what kind of error came up?
are u added a merge file when u deployment it?
Yes..you can
thx majestic0110
Just post simple code. Give a feedback if it helps u :)
Simple code for matrix with pascal.
--Jery--
as i tell before post this code is continuance from my previous post "Show Data in DataGrid with VB.Net 2003 and SQLServer 2000". so i didn't write code how to connect SQLServer 2000 with VB.Net 2003 cause this already in there.
Click this lick to go to my previous snippet :
Show Data in DataGrid with VB.Net 2003 and SQLServer 2000
This code to save, Edit and delete data in VB.Net using SQLServer as backend. this code is continuance from my previous post "Show Data in DataGrid with VB.Net 2003 and SQLServer 2000". so i didn't write code how to connect SQLServer 2000 with VB.Net 2003 cause this already in there.
Please see and read a comment on code carefully so this code can implement goods.
post your question in vb section. you can learn anything there. fell free to asked from others.
>> please send me another codes for Email Address:mansoor480@gmail.com
i m sorry mansoor but you must browsing this forum to get many codes here. we supplied it for free so used it with a wise.
This is code for Encrypt and Decrypt. this a simple logic of encryption. Please leave comment or feedback if this code helps you. Thanks. Jery. :)
the encrypt function place in a module.
This Code needed :
1 Module
1 combo box (For input before encryption) text1 in this program
2 label (For encryption result and encryption reading) --> label1 and label 3 in this program
dg student is datagrid..
Public Function GetConnect()
Dim ServerName As String = "SA1SQL19"
Dim DatabaseName As String = "APPRAISAL"
conn = New SqlConnection("server = ServerName;database = DatabaseName;Trusted_Connection = yes")
Return conn
End Function
try this :
Public Function GetConnect()
conn = New SqlConnection("server = SA1SQL19;database = APPRAISAL;Trusted_Connection = yes")
Return conn
End Function
just checked id entered with id on database.
If same then display error message, if not same then add into database.
I think a better way is convert as byte..
Some trouble can happen if you missing the path of image or moving some pics.
Hi there...Welcome to Daniweb friend :)
Hi there...Welcome to Daniweb friend.
Hope u find what u needed here
Hi there...Welcome to Daniweb friend.
Hope u enjoy this site :)
on timer tick event
- make randomize function to get new X and Y,so your button always get new location to moving every timer tick.
Process.Start("explorer.exe", "/n, ::{645FF040-5081-101B-9F08-00AA002F954E}")
use manifest file.
Dim Phrase As String = "this is a test"
Dim TextArray As String() = Nothing
Dim Word As String
Dim NewString As String
TextArray = Phrase.Split(" ")
For Each Word In TextArray
NewString = NewString & (Word.Substring(0, 1).ToUpper() & Word.Substring(1, Word.Length
- 1).ToLower() & " ")
Next Word
Or
See this link :
http://msdn.microsoft.com/en-us/library/aa332127.aspx
what event do you want?button event?click event?or what?
use condition on your select statment.
play wav?mp3?
use
System.Diagnostics.Process.GetProcessesByName(processName);
to get all the process with this name. After this use the process properties like, process.ModuleName etc. to get the required process, then kill the process by calling function process.kill().
This section just for vb4/5/6. Don't make it become VB.Net Section...
Thx For sharing... :)
ADODC DATACOMBO PROBLEM.....
I have some text box, an ADODC data control and a datacombo object in my form.i filled up data control property correctly.also set text boxes property.Now for datacombo i have set datasouce,listfield,bound column propety.But text in the textbox don't change in accordance with changing item in datacombo.But i can change by datacontrol.
Heiiii....Please start your own thread
very good. Would you like to share with us how to do it, so if other members get the same problem they can solved it.
And don't forget to mark this thread as solved..
Thanks :)
show us your effort :)
on datagrid double click event, get data on selected then show it on main form.
are u sure saved it into txt file?i mean when your program is running..
This following code just allowed you to entered numbers only (No alphabetics or any special characters) :
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
If (Microsoft.VisualBasic.Asc(e.KeyChar) < 48) _
Or (Microsoft.VisualBasic.Asc(e.KeyChar) > 57) Then
e.Handled = True
End If
If (Microsoft.VisualBasic.Asc(e.KeyChar) = 8) Then
e.Handled = False
End If
End Sub
write this on the top of codes
Imports System.Data.Odbc
using ascii checking on your button event.
show us ur effort
use sendkeys or API Function.
check the references of your project.
try to get process of windows.
kill it by process name. its the easiest way.
you mean Textbox, label, Button for basic controls????
please more details...not clear enough..
what errors came up?
try to use Shared variable to accomodate your address data.
Not clearly enough...
just copying your .exe file into startup folder.
you can use special folder to do this.
use join on your sql query.