|
yourListbox.bringtofront
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
|
|
Why did you delete your message?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
I want to export a XML file to a specified path (eg: C:\...). containing 1 column (column name 'ID')and records that contain these columns are needed to sort.
Please share the source code if anyone has idea.
flowerppk
|
|
|
|
|
There's a bunch of different ways of doing this.
You can put your data into a DataSet or DataTable object and use it's WriteXml methods.
You can write it out using the XmlDocument classes
or a straight text file, ...
But, noone is just going to give you the code to do this. Though, we'll help you write your own code.
|
|
|
|
|
How can i protect a xml file with password in a VB.Net project?
|
|
|
|
|
XML file is plain text file. You might not have much of password protection there. You can actually encrypt the contents using a key and then place it as a binary content in CDATA.
For a similar implementation, check out http://www.codeproject.com/KB/applications/todolist2.aspx[^] [You may need to use Encrypt TaskList to see a similar implementation.]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Dear Guys,
I need the definition of reference, instance and object in OOPS.
Regards
Azeem
|
|
|
|
|
hi
In my own Words i say an instance its a representative of Something. if i have a Class name "Customer" and that Customer has Function and i want to use those Functions, i need to get the Representative of that Class so that it ca provide me with the Function, like this
Public Class Customer<br />
<br />
Public Function GetName()as string<br />
dim strName as string = "Ahamed Azeem"<br />
<br />
return strName<br />
<br />
End Function<br />
<br />
<br />
End Class
Now if i want to use the Function "GetName", i will have to Create an Instance of a Class Customer. like this
<br />
dim InstanceCustomer as Customer<br />
InstanceCustomer.GetName()<br />
hope i was Clear
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
|
|
|
|
|
Thank you for ur reply
But I also need explanation of object and reference.
Is it all same? No means what is the difference
Thanks in advance
Regards
Azeem
|
|
|
|
|
hi
To my knowledge e.g you reference(Access) a function in a certain Class using an Object.
Reference is just a word used in this terms
Hope it helps
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 guys
i am working with a 3 tier application in vb.net,
i want to use progress bar while i am retrieving data from data base,
i want to display actual prgress regarding retrieving data from data base through progress bar but
i am unable to find the right direction,,
any helping code, link ,
thanks in advance
hello
|
|
|
|
|
|
Since a database action doesn't report progress and can't know ahead of time how many records are going to be returned, you're going to find this quite difficult to do.
You can do this once your code has retrieved the data from the database and your parsing through it for some reason, such as creating an object collection from the returned results.
|
|
|
|
|
Can I format a dateTime picker for month and year only?
How do I do this?
|
|
|
|
|
No - you will need to write your own control.
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 )
|
|
|
|
|
AAGTHosting wrote: Can I format a dateTime picker for month and year only?
How do I do this?
Yes, you can... set the Format property to Custom and the CustomFormat property to what ever format string you need.
|
|
|
|
|
hi, please see code below...i keep on get in a "subscript out of range" error for the array v(n), my option base is 0
even if i reset the array to v(n-1) it does not accept. is the something i am missing
Public Function datevec(d1 As Variant, d2 As Variant, freq As Variant)
Dim v()
Dim n As Long
Dim c1, c2 As Date
ReDim v(n) As Variant
If IsDate(d1) = True And IsDate(d2) = True Then
c1 = DateSerial(Year(d1), Month(d1), Day(d1))
c2 = DateSerial(Year(d2), Month(d2), Day(d2))
n = Application.Round(VBA.DateDiff("d", c1, c2) / 365 * freq, 0)
Select Case freq
Case 1
For Each i In v(n)
v(i) = VBA.DateAdd("yyyy", i + 1, c1)
Next i
Case 2
For Each i In v(n)
v(i) = VBA.DateAdd("q", 2 * (i + 1), c1)
Next i
Case 4
For Each i In v(n)
v(i) = VBA.DateAdd("q", i + 1, c1)
Next i
Case 12
For Each i In v(n)
v(i) = VBA.DateAdd("M", i + 1, c1)
Next i
End Select
datevec = v
End If
End Function
|
|
|
|
|
Try moving your ReDim statement bellow the assignment of n like this:
n = Application.Round(VBA.DateDiff("d", c1, c2) / 365 * freq, 0)
ReDim v(n) As Variant
|
|
|
|
|
I am posting this question in VB2005 because that is the front end of my project (Access project.mdb being the back end).
I have a frmEmployees that I am using to populate tblEmployees and would like to create a Trigger to add some data to tblTimeOff whenevr a new employee is added. I am not able to use SQL server at this time. can anyone point me in the direction of any Event in VB2005 that I might be able to use to accomplish my mission? the use of such Triggers will play a major role in my project until I can migrate to SQL server.
TIA
|
|
|
|
|
IvanIT wrote: and would like to create a Trigger to add some data to tblTimeOff whenevr a new employee is added.
Sorry to say, but Access doesn't support triggers, and there is no event that is fired upon a table update. You'll have to implement this entirely in your DAL code.
|
|
|
|
|
Thanks Dave. I was afraid of having to do this through tons of codes, but its what it is. Pretty soon I might as well port over to SQL server.
|
|
|
|
|
Hi All
I am working on VB6 with CR8, in my application i have a save button that will save the data into database and then print a invoice. the data entered is works perfectly the problem is in the report.
When the report prints it always print the half content means it should print 10 records but it always prints the 6 or 7 records. In my query in uses the grouping but the data belongs to the first group will prints only.
Another problem is if i place a msgbox before invoice genration then it prints the invoice correctly
so what would the solution
plz reply
With Regards
Yogesh Agarwal
|
|
|
|
|
It looks like your report gets called before the database update is done... you will need to check that all updates are completed before initiating the report.
|
|
|
|