|
hai friend,
thnks i got it but now only i am going to try it. after that i'll tell wheather it is working or not....
i think it i'll work....
once again i'll thank u...
|
|
|
|
|
hi
i want bind the values in arry to a listbox like how we are going with dataset
could any one help me for this
with regards
Balagurunathan.B
|
|
|
|
|
Hi,
I am not sure if I got you right, but to bind an array to a listbox you can do the following:
Dim arr() as string = {"A", "B", "C"}
Listbox1.Datasource = arr ' -> A, B, and C will be displayed in three items
Hope this helps
|
|
|
|
|
Can someone help me on this one? am developing document management system and what i want to do now is after i deployed may application when am right clicking on the mail messsage or contact list to show me an option of sending that information to my application database.So basicaly i want to and an option on the dropdown menu when am right clicking on the two places i'have mentioned above.
|
|
|
|
|
SqlServerCe VISUAL STUDIO 2005 VISUAL BASIC help needed.
From an application I get SqlServerCe DATA TABLE with multiple occurrences of the same records. I need VISUAL STUDIO 2005 VISUAL BASIC code to DELETE the records that are written more than once.
|
|
|
|
|
|
Don't cross post. It is considered rude.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Good Afternoon All
i have this an SQl join, and in my Dataset like this
Dim strSQL As String = "select count(p1.Property_ID)from Property p1 " & _
" where Not Exists" & _
" (select 1 from Attribute_codes_test p2 " & _
" where p2.Attrib_code = Substring(p1.Attrib_code, 1, 8) " & _
" and p1.Active= 1) " .
i want to display it in a label, but i cant convert it to intiger, because i i cannot convert a dataset to intiger, so through a dataset i manage to carry the results of the above to my form, but now, when i try to Display this like this
lblCount.DataBindings.Add("text", mdscount, "Property.??????")
.
on the Above code, i dont know what to put where ???? appears because this comes from join. and i try to put an Existing field in my table like this
lblCount.DataBindings.Add("text", mdscount, "Property.Lis_key")
.
i get this Error
Cannot create a child list for field Property. .
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi
you can try the below code
lblCount.DataBindings.Add("Text", mdsCount.Tables(0), mdsCount.Tables(0).Columns("ColName").ColumnName)
|
|
|
|
|
i get an Error that says
Cannot find table 0.
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
I want ot use tree node in my application and want to check if a particular node is clicked. How to do so?
|
|
|
|
|
What have you tried ? Did you read the MSDN help ? Did you try google ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello,
I have a program consisting of four modules and three forms. When I try to terminate it using following sub:
Public Sub END_IT()
Unload Form1
Unload inicializace
Unload tech_krivka
MsgBox "applicaion terminated", vbInformation
End
End Sub
the MsgBox appear, but then the program get stuck and it's neccesary to quit it from TaskManager (where CPU usage 99% for the VB6.EXE is shown).
When made to .exe file, the situation is the same except CPU usage 0%.
thank you for your oppinion
Ondra Pokorny
|
|
|
|
|
Why don't u write simply
"End"
insted of unloading all the forms?
Tell me if it works
|
|
|
|
|
Because I've tried it and it was all the same. So I've looked in VB6 Help and:
"
The End statement provides a way to force your program to halt. For normal termination of a Visual Basic program, you should unload all forms. Your program closes as soon as there are no other programs holding references to objects created from your public class modules and no code executing.
"
|
|
|
|
|
hi Ondra
Simply hide your forms and use unload function of vb6 and your Application will be terminated. like this
unload(frmmain) .
Hope it helps
Thanks
-- modified at 6:54 Friday 30th November, 2007
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
I've tried:
unload(Form1)
but a window appeared "invalid property value"
|
|
|
|
|
ok, do it this way
forgive me, i dont know when last did i use Vb6, but let me give you a solution to that.
i assume you have a an MDI, a main Form. on every clsing exent or Dispose, make sure you put this code.
umload me .
and it will be very Easy if you have one MDI and other forms as Children, when you unload the MDI and other Form will be terminated.
try it and tell me what is happening.
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
no sucess, situation is the same- but I assume that there is not problem in this (see my later comment-it's probably caused by timers). Anyway, thank you very much.
|
|
|
|
|
1) Where is this sub defined?
2) Do you have any code in the event that is called when you unload any of these forms?
|
|
|
|
|
1)it is defined in one of the module
2)I don't think so; Actually,I use two winAPI timers form winmm.dll and one VB timer in the program,but they are all stopped before terminating the application
|
|
|
|
|
there may be a connection with timers I use (2*winAPI timers from winmm.dll and one "standard" VBTimer). I've noticed that when I terminate the application before starting these timers, it ends correctly.
|
|
|
|
|
YESS, it's most probalby caused by WinAPI timers- I've trierd to start VBTimer Only and it ends correctly. The syntax of timers is:
Declare Function timeKillEvent Lib "winmm.dll" (ByVal uID _
As Long) As Long
Declare Function timeSetEvent Lib "winmm.dll" (ByVal uDelay _
As Long, ByVal uResolution As Long, ByVal lpFunction _
As Long, ByVal dwUser As Long, ByVal uFlags As Long) _
As Long
they are started:
Time2 = timeSetEvent(Period2, Period2, AddressOf Timer2Clb, 0, TIME_PERIODIC)
Time1 = timeSetEvent(Period1, Period1, AddressOf Timer1Clb, 0, TIME_PERIODIC)
and stopped:
Public Sub StopTimers()
Form1.VBTimer.Interval = 0
If Time1 <> 0 Then
timeKillEvent (Time1)
Time1 = 0
End If
If Time2 <> 0 Then
timeKillEvent (Time2)
Time2 = 0
End If
End Sub
If you know what's wrong, I would be grateful for reply.
-- modified at 8:52 Friday 30th November, 2007
|
|
|
|
|
hi all,
i am developing an application (a 15 days trial version).
can someone tell me how can i handle the situation, when the user change the system date, the application must not start.
how can i detect the changes in system date.
or if someone have any other logic to handle it anyway.
thanks in advance
help everyone
|
|
|
|
|
Every time the app stores, you need to store the date somewhere. If the date goes backwards, you store that it's gone backwards and the app therefore will no longer start.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|