Jx_Man 987 Nearly a Senior Poster Featured Poster
raymyster commented: benefited from this +0
Jx_Man 987 Nearly a Senior Poster Featured Poster
Hi...Welcome to Daniweb Friend :)
Hi Welcome to Daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
welcome to daniweb friend
welcome to daniweb friend
it same...
here is the code for vb :
Private dtTScomponent As ToolStripControlHost
Public Sub New()
InitializeComponent()
dtTScomponent = New ToolStripControlHost(dtMyDateTimePicker)
MainToolStrip.Items.Add(dtTScomponent)
End Sub
Hi...Welcome to Daniweb Friend :)
Hi Welcome to Daniweb Friend :)
Hi Tina...Welcome to Daniweb Friend :)
what the problem?
Hi...Welcome to Daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
When either of the 2 buttons are pressed
what buttons? login and ? or what ?
Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click
If txtPassword.text = "" Then
MsgBox("Input Password", MsgBoxStyle.Critical, "Password text field empty")
txtpassword.Focus()
Else
If txtpassword.Text = "1234" Then
'continue to write file
Else
MsgBox("Wrong Password", MsgBoxStyle.Critical, "Wrong Password")
txtpassword.Clear()
txtpassword.Focus()
End If
End If
End Sub
hmmm...
- you want to use text file to save password or you want to set password direct from coding (not change able) ??
if i see your code, i guess u want to use password in code. if just for personal use pasw in code more faster but it couldn't to change.
If something = true then something = 45 And something = 65 And something = 83
what the result that you want it like be?
there are something is one variable or many?
i means there are many variable :
eg: A = 45 and B = 65 and c = 83
Or
it just have one variable to accomodate all :
eg : A = 45 and A = 65 and A = 83
clarify more...thx
what kind of database?
using public shared variable to accomodate data on datagrid and will call in other form.
Use "Like" operand in your Select query.
eg : Select * from Author where Id Like "1234"
you can start with write file and read file into text file. use read file to check password...
Hi...Welcome to Daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
what?!
does this thread solved??
if yes please share the answer.. so others can learn from your thread friend.
Thank you :)
Hi...Welcome to Daniweb Friend :)
are you tried to use animated picture? if yes, you didn't allowed to used it or your size of picture more big then require pic..
HI Jess ...Welcome to Daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
Hi Ronda Welcome to daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
Hi Sushil...Welcome to Daniweb Friend :)
Hi Jai...Welcome to Daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
Set IsMdiContainer in Parent form properties as True.
Hi Vik...Welcome to Daniweb Friend :)
using system.io to write/read file. put in top of code.
try this following code :
Imports System.IO
...
Public Function SaveTextToFile(ByVal strData As String, _
ByVal FullPath As String, _
Optional ByVal ErrInfo As String = "") As Boolean
Dim Contents As String
Dim bAns As Boolean = False
Dim objReader As StreamWriter
Try
objReader = New StreamWriter(FullPath)
objReader.Write(strData)
objReader.Close()
bAns = True
Catch Ex As Exception
ErrInfo = Ex.Message
End Try
Return bAns
End Function
Private Sub btnWrite_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnWrite.Click
SaveTextToFile(TextBox1.Text, "D:\Jx_Man2.txt")
End Sub
End Class
post your code...
will help much to understand
Hi Kathy...Welcome to Daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
use code tags when you provide codes...
you cannot delete thread. just moderator can do this. you just can mark thread to solved.