|
hi,
I wish to edit the item in the listview with vb.net, then save it to databases! so, any one know of this? please help!
Regards,
charles
|
|
|
|
|
How r u making the listview control in the editing form?
|
|
|
|
|
A ListView isn't databindable, so that'll make this quite a bit more difficult. Why are you using ListView control? Why not a DataGridView?
It's possible to implement your own bindable version of the control, though. You can find an example here[^]. Warning! It's not something for beginners!
|
|
|
|
|
i need to convert input entered in textbox
txtdate into date i need to validate that
how do i do it
Vuyiswa
|
|
|
|
|
Hi Vuyiswamb
Try server side validation control, use date validation control, and use the "control to validate" property.
Hope it will help
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
hi
how i dont understand help me
Vuyiswa
|
|
|
|
|
Hi Vuyiswamb
Go through your toolbox there is a validation control
section, in that u get a date validation control, use that control...OR if you don't know how to use the control then just go through the MSDN and take help abt the validation control.
Best Regards,
Koolprasad2006
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
hi man thanks for your help
Am using vb6 , so i have to code it
Vuyiswa
|
|
|
|
|
Private Sub Command1_Click()
On Error Resume Next
If CDate(Text1) > Now Then
MsgBox "Invalid Date"
Else
MsgBox CDate(Text1)
End If
End Sub
try this out... its in VB
|
|
|
|
|
Thank man , i want to Validate based on this Format dd/mm/yyyy
After a Person put lets say for Example
12042007
it must convert it to
12/04/2007
if not it must
msgbox "Enter Date in dd/mm/yyyy
and it must allow the person to enter "/" to separate the month and days and years
Vuyiswa
|
|
|
|
|
Add the framework class
Imports Microsoft.VisualBasic.Compatibility.VB6.Support
Then
use the format function
like
if(isdate(textbox1.text)=true)then
Format(textboxt1.text,"dd-mm-yyyy")
end sub
Hope this may help u
|
|
|
|
|
Private Sub Command1_Click()
On Error Resume Next
Dim Temp As String
If Len(Text1) = 8 Then
Temp = Mid(Text1, 1, 2) & "/" & Mid(Text1, 3, 2) & "/" & Mid(Text1, 5, 4)
If CDate(Temp) > Now Then
MsgBox "Invalid Date"
Else
MsgBox CDate(Temp)
End If
End If
If Len(Text1) = 10 Then
If CDate(Text1) > Now Then
MsgBox "Invalid Date"
Else
MsgBox CDate(Text1)
End If
End If
End Sub
Private Sub Form_Load()
Text1.MaxLength = 10
End Sub
Try this... hope it helps..
|
|
|
|
|
Thank you very much man , this has Helped a lot . thanks you
Vuyiswa
|
|
|
|
|
Hello Frnds,
I am using VB.Net 2.0. i have to read a word document
pagewise
Is It possible.....????
If yes then plzzz tell me ...how can I???
The version of the office is 2000
Please Help....
Thankx in Advance
- Koolprasad2006
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
friend..
im a vb user..i didnt get you exactly..
do u want to read the whole document from a form itself..??
or do u want to open up the word file from any event??
plz make it clear..
|
|
|
|
|
Hello frnd Xandip,
i just want to open a word file by program and read the content of the file page by page (pagewise)
Plezzz..Help Me
Thankx in Advance
-koolprasad2006
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
dear prasad..
i think this is wht u want...
add the OLE component from the toolbox in to the form. it will ask you the object type. select the Microsoft Word Document from the list...
Private Sub Command1_Click()
OLE1.SourceDoc = "Complete path of your word file"
OLE1.Action = 1
OLE1.SetFocus
SendKeys "{ENTER}"
End Sub
try this...
|
|
|
|
|
koolprasad2003 wrote: i have to read a word document
So what does this really mean?? Are you trying to show/edit a word document in your form? Are you trying to get the contents of the document and store or process it in your app? What are you dogin with this document?? And DON'T say "I'm just trying to read it!".
|
|
|
|
|
Hi,
how to set two different language for 2 different textboxs in VB.net 2.0.
I have 2 Textboxes one in English and one in Marathi on a form.On start of my application marathi language must be set. For this purpose ,I write following code in form load event :
InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(New System.Globalization.CultureInfo("mr-IN")
Thanks
vandana
|
|
|
|
|
You may want to take a look at this[^].
|
|
|
|
|
Hello Frnds,
I am using VB.Net 2.0 and my problem is
I want to disable the Ctrl+P key(Shortcut to Print page) combination as soon as my page is load
i have to disable the print facility by disableing the ctrl+P combination.
The combination is disable upto the page is unloaded.
Plzzzzzzzzz....HELP
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
Write the code on keypress and return the handle value equals to true
|
|
|
|
|
First ofall thank U Nilesh 4 your great co-operation
but can u code a small code sample ...PLZZZZ
i didn't clear your point so much....
PLZZZZZZ..help
thankx in advance
-Koolprasad2006
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
hi buddy..
wat prasad said is correct.. i don know vb.net, but im sending the vb code for this.. try it out..
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 16 Then Exit Sub
End Sub
Private Sub Form_Load()
Me.KeyPreview = True
End Sub
The keyascii for CTRL+P combination is 16.. got it??
|
|
|
|
|
This doesn't make any sense. You say you want to disable the Ctrl-P keys in your application, but if you don't provide the shortcut in your app yourself, Ctrl-P won't do anything anyway??
Wait a minute....Is this a Web Application (ASP.NET)??
|
|
|
|