|
Using VB.net 2003
TXTBEGIN,TXTEND are indicate Datetimepicker
Dim DATEBEGIN, DATEEND As String
DATEBEGIN = TXTBEGIN.Value.Year & "-" & TXTBEGIN.Value.Month & "-" & TXTBEGIN.Value.Day
DATEEND = TXTEND.Value.Year & "-" & TXTEND.Value.Month & "-" & TXTEND.Value.Day
dim dataadapter as new oledb.oledbadapter("Select * from ITEM where dateAcquired between Between '" & DATEBEGIN & "' and '" & DATEEND & "'"
|
|
|
|
|
Not a good solution to begin with, and it won't work with an Access database.
|
|
|
|
|
if logged in successfully, i have the code me.close and form1.show.
The problem is the form will not show and it terminates the program.
if the code is me.hide and form1.show, form1 will show but when i close it the loginform will not.
What should be the code when closing the loginform?
gt
|
|
|
|
|
The most logical thing is for your main window to be your start window ( and for it to have a more logical name than form1 ). Then, it shows the login window, and if login fails, the app closes, otherwise the main window is shown when the login window closes.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Do NOT use SMS speak in the forums. It makes your posts difficult to read. You've got a full 101+ key keyboard in front of you, use it.
|
|
|
|
|
how do i delete all the items from the listview?
gt
|
|
|
|
|
You remove the item from the items collection.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I tried using .remove() method. i also tried using .removeat() but it has an error.
|
|
|
|
|
How do i remove all the items form the listview?
gt
|
|
|
|
|
Collections usually have a Clear() method you can call.
|
|
|
|
|
i hv developed one small software using VB 6.0 as FrontEnd and MS-Access as BackEnd which stores customers records. the Key feature of software is dialing customer's mobile number or land line number and storing corresponding comments.When I dial number through code using(0,)eg ,9834567876 it shows invalid number and if i dial same number through phone dialer directly it shows valid number and i m able call to another person.I am using (0,) for EPBX purpose.Because when i directly dial widout sing(0,) I am able to speak with recipient party the problem is with EPBX only
code
|
|
|
|
|
It could be that your dial isn't pausing long enough after the 0 in the string, or there is an issue with interfacing your modem with the PBX system.
Your problem really has nothing to do with VB.NET itself.
|
|
|
|
|
hello all,
I have some work with me over the Vb Accelarator's Explorer bar.Well using the earlier written code the explorer bar is initialised once and could be used by changing its visible property. The explorer bar is made on a picture box. The problem is the new explorer bar strip which i have made on the existing one's is not visible when the property is set as true. Please help me out with this.
Thanx in advance
Neema
|
|
|
|
|
You best source of information for using third party control would be whoever wrote the control. It's very unlikely that anyone who has used the control is going to see your post.
|
|
|
|
|
Well thanx for the suggestion but after fighting for the cause of my problem i got the solution.The explorer bar i was making need a fresh container and then it could be pasted to some other location.
|
|
|
|
|
hi all
i want to create one Language Creator in which i type in English word and i get Hindi word as output. Same created in REDIFF BOL V8.0 create HINDI words
some thing like TYPE ENGLISH GET HINDI[^]
can any budy plz help me
Thanks in advance
-- modified at 6:49 Thursday 27th September, 2007
The Stifler
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
Not sure what you're after here. You need a big old database of hindi words and english words they map too. A simple task, but a big one.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
How can i check if program have closed.
I am doing a install list a folder containing programs installations and one list file that is opened in my program. so if you start my program it starts installation file from list, but then i need to start another installation from the list of installations when first installation is done! Is that possible please help...
Do i need to set up timer that check for window or process?
Can it be done with background worker? How?
Thanks
|
|
|
|
|
how about the formclosed or formclosing event could that do what you want??
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistaks.
|
|
|
|
|
no form close i need action when process is closed!!! i run an other exe file and when it does all the actions and closes i need my program to continue!!!
Thanks
|
|
|
|
|
|
thanks man but i found this one and works good!!!
Public Sub Ruun(ByVal ProcessPath As String)<br />
Dim objProcess As System.Diagnostics.Process<br />
Try<br />
objProcess = New System.Diagnostics.Process()<br />
objProcess.StartInfo.FileName = ProcessPath<br />
objProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal<br />
objProcess.Start()<br />
<br />
'Wait until the process passes back an exit code <br />
objProcess.WaitForExit()<br />
<br />
'Free resources associated with this process<br />
objProcess.Close()<br />
Catch<br />
MessageBox.Show("Could not start process " & ProcessPath, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1)<br />
End Try<br />
End Sub
anyway thanks!!!
|
|
|
|
|
HII have a column whose datatype is medium time (i.e hh:mm AM/PM) and i want to retireve taht into my datagrid...
its coming with the date ....
can some on ehelp how i must set the date formatting expression so that the time somes as hh:mm AM/PM
thank u
hepsy
|
|
|
|
|
The format string you put in your column would be "hh:mm tt" .
|
|
|
|