|
Hi,
probably this[^] article might be of help to you.
|
|
|
|
|
thanks alot Robert, the article gave me most of what i needed
modified 2-Feb-21 21:01pm.
|
|
|
|
|
When i convert from string to date:
VAR as date = System.Convert.ToDateTime(strDate)
my problem is the convertion return the time with the date... i just want the Date...
should i use a Provide.Iformat ...HOW?
Militiaware
Faris Madi
|
|
|
|
|
the DateTime object is designed to store date and time (including millisecond). If you dont need the time part, just ignore it. If you want to DISPLAY the date without the time there is plenty of scope to format the returned string - check the docs for full details but a simple example
myDate.ToString("dd/MM/yyyy"); // diplays myDate in UK format
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
what i should put intead of ????? to copy the content of dataset.table("x") to text file as table
Dim StreamWriterObj As New IO.StreamWriter("c:\DT.txt", True)
Dim DR As DataRow
For Each DR In DataSet_aqar1.Tables(0).Rows
StreamWriterObj.WriteLine(?????)
Next
StreamWriterObj.Flush()
StreamWriterObj.Close()
Militiaware
Faris Madi
|
|
|
|
|
There is no "Kill switch" here!
What I mean by that, is there is no one line of code that will write all the contents of a datarow to a StreamWriter's WriteLine method. The only way to do this would be to iterate each column in the table and build up your own file line-by-line in the format you require.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
how to remove + sign form dagrid in vb.net.
when i fil the datagrid using the dataset and dataadapter classes then + sing appear in the datagrid whein i click on plus sign then the table name appear and when table name then its rows are shown.
which i dont want.
Tasleem Arif
|
|
|
|
|
When You set the datasource, give the datatable name.
use
dg.Datasource=ds.Tables(0)
'or
dg.DataSource=ds.Tables("tableName")
|
|
|
|
|
hi all
tp start any process wedo
processName.start()
when i fire above command, how to get information about
this process "processNAme" is running.
plz help
Thandal
|
|
|
|
|
Hi,
Are you using a BackgroundWorker?
If so, then you have to state that the BackgroundWorker object reports progress:
Me.BackgroundWorker1.WorkerSupportsCancellation = True
Me.BackgroundWorker1.WorkerReportsProgress = True
Then you have to use the event handling procedure ProgressChanged to see the progress:
Private Sub BackgroundWorker1_ProgressChanged(ByVal sender As Object, ByVal e As System.ComponentModel.ProgressChangedEventArgs) Handles BackgroundWorker1.ProgressChanged
Dim tmp As TextBox = Nothing
Try
tmp.Text = e.UserState.ToString
Catch
'Some error handling code
End Try
End Sub
Hope this answers your question.
Good Luck.
|
|
|
|
|
hi
in my program i wnt to run make
when i say start to a process
i want to know whether it is startrd or not, i don't want to use wait to exit
regards
thandal
|
|
|
|
|
hi all
i have problem in process handeling, i m calling "make process" whose output is redirected using stream reader.
when this provess over(make).
i get output in my textbox.
but i want to read the output of process while the process is executing. not after the process exist.
so plz help
Thandal
|
|
|
|
|
Is export template a new wizard in VB.NET 2005 or is it also possible to use it in VB.NET 2003?
And if it is possible, where can I find it?
|
|
|
|
|
Plz give me some idea to change backcolor and forecolor
of column header(Listview) ?
MANU
|
|
|
|
|
|
hi there,
does anyone know how to change the backcolor of one row in a datagrid
thanks alot
|
|
|
|
|
The problem is , the data from database is not getting displayed into the datagrid. I am using the following code.
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
Dim sql As String
con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open "C:\Documents and Settings\Administrator\Desktop\New Folder\db1.mdb"
sql = "Select * from student"
With rs
.Fields.Append "name", adBSTR
.Fields.Append "roll", adInteger
.Open
End With
Set dg1.DataSource = rs
Thank You
Pankaj Garg
|
|
|
|
|
hello every one
i want ask how can i use stack in vb.net and do all it's operation like pop and push
please help me if any one know
thanks alot
noor al-huda
|
|
|
|
|
Use the System.Collections.Stack class.
---
b { font-weight: normal; }
|
|
|
|
|
thank alot for this help
but i know that but how can start with fill the data in it
dim sta as system.collection.stack
so what is the next step
because every time after run it take a message to tell me that the sta is not fill of any data yet
noor al-huda
|
|
|
|
|
well a good first step would be to actually create an instance of the stack class.
dim sta as new system.collections.stack
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
I want to use functions created in VB.net (with visual studio) in a C++ program. I tried to create a VB dll but it seems that the VB functions are not recognized by the C++.
Is anyone got a solution to make my C++ program able to use the VB functions?
Thank you very much
|
|
|
|
|
Hallo,
I have a problem in VB.Net, i cant send data from my Linked list nodes to a data base. Also help on collecting information from text boxes to a node and displaying it to a Display box like a lebel.
-- modified at 3:59 Wednesday 3rd May, 2006
|
|
|
|
|
Below is the code which i am using to get a list of all the services on a system. The problematic part is that it works fine when i run it on local system when but when i try to list services on a remote system after passing the userid and password it gives me "Access Denied" error.
Do any one know how to get over this.
Overloads Public Shared Function Main(args() As String) As Integer
Dim query As ManagementObjectSearcher
Dim queryCollection As ManagementObjectCollection = Nothing
Dim oq As System.Management.ObjectQuery
Dim strComputerName As String
Dim strQuery As String = "SELECT * FROM Win32_Service"
'Do
'Console.Write("Please enter server name (type 'localhost' for local machine): ")
' strComputerName = Console.ReadLine
'Loop While strComputerName = ""
Dim co As ConnectionOptions = New ConnectionOptions
'If strComputerName.Trim.Length = 0 Then
' Console.WriteLine("Must enter machine IP address or name.")
' Return
'End If
Dim ms As System.Management.ManagementScope = New System.Management.ManagementScope("\\10.10.10.23\root\cimv2", co)
oq = New System.Management.ObjectQuery(strQuery)
query = New ManagementObjectSearcher(ms, oq)
Try
ms.Connect()
queryCollection = query.Get
Catch e1 As Exception
'Console.WriteLine( "Error: " & e1)
End Try
ListView1.Columns.Add("Services", 500, HorizontalAlignment.Left)
For Each mo As ManagementObject In queryCollection
ListView1.Items.Add(mo("Name").ToString + " [" + mo("StartMode").ToString + "]")
Next
End Function
|
|
|
|
|
Go to Control panel and then services. and right click on the Left tree and click connect ot another computer and check does it fetch the services or not. if not then you dont have rights on that system.
Rizwan Bashir
|
|
|
|