|
I thank you very much, now i have solved it, i used ExtraGrid Event(invalidrow), and i could catch it easy.
superdragon
|
|
|
|
|
[shakes head back and forth slowly and ]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello all,
i do have file contain defrag.bat.
how can i write the code in vb.net to trigger the event of
that file??in other words,i am trying to call the system tools from my
.Net application..
please somebody help me...
besah
|
|
|
|
|
The System.Diagnostics namespace has a Process class you can launch external programs with. You pass in the name of an executable file or a filename with an extension associated with an executable application.
System.Diagnostics.Process.Start("c:\...\defrag.bat")
This code returns a Process object:
An overloaded Process.Start method takes a ProcessStartInfo parameter that let's you set process initialization values such as the WindowStyle.
You can also do all of this through the IDE by dragging a Process component unto your form from the Components area of the Toolbar.
Here is a good search start piont for more info http://www.google.com/search?complete=1&hl=en&q=system.diagnostics.process.start[^]
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
|
|
|
|
|
Dear sir/madam
I would like to write terminate stay resident program using visual basic 6.0 is that possible. If that is posible, could you pls guide on this. Is there any URL on "tutorial for writing TSR program using visual basic 6.0".
or any thing that helps me better.
Thank You
Have A Nice Day
Dev Prasad
|
|
|
|
|
Dev Prasad wrote: terminate stay resident
There's no such thing anymore. That was a term used for certain types of DOS applications.
What exactly are you trying to do? You might be looking at a windows service application, but VB6 can't create one of these without using other software and/or hacks to get it to work.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi there
I get a query engine error :\\pcname\...\temp....rpt
when i try to view my report does anyone know why and the schema is correct
thanks
-- modified at 9:21 Saturday 4th March, 2006
|
|
|
|
|
Hi ,
I am using VB.net.I earlier asked the question about selecting the concerned treenode when the combobox item is selected.I was replied to apply the recursion.
Now for selecting any node , we use
Treeview1.selectednode = Treeview1.node(0)
But how I will select the jhdb nodes programically and the following path is placed in combobox.
c:\abc\def\ghi\jhdb
Thank You
|
|
|
|
|
TreeView can only have a single Node selected at any one time. So, the code you posted is how you do it.
Are you asking how to get data from each child node and populate a combobox with that?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I am using vb.net . I want to know programically whether the particular node is already expanded or not .
The e.node.expand() does not return any value.
|
|
|
|
|
It's IsExpanded that will return the status of the node. Expand will actually expand the node, not return its status.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
HI, i'm using vb.net and I need to get event when I click a combobox down button
Thank You
|
|
|
|
|
Have you looked at the DropDown[^] event?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I want to get the name and fullpath of the item of listview on which it is clicked.
|
|
|
|
|
You'll have to store that information in the Tag property of each ListViewItem object you add. Then just retrieve it later when the item is clicked on.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
stop spamming the message boards. read the msdn, and stop ask stupid question that are already written black on white on the docs
|
|
|
|
|
Sir ,
The Problem in to extract the icons of files and folders.Earlier, I got the replies in the form of few links.
Actually I am new in vb.net. Please send me some code.
Thanks and Regards
Pankaj Garg
|
|
|
|
|
pankajgarg12 wrote: Please send me some code.
And those link had the code, albeit in VB6, but they had to code non-the-less.
If you want code written for you, you'll have to look someplace else.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dear Friends
I have small project in which I read the cases of patient and write it in a text file. I want to write the complete deatil of each patient in one line so that when I will read patient I can easily write the record to other user database. but when I read the record according to line no it gets half record only. because the record is not writing in one line since it is very big .
Can u please give me some solution for this. I want to wirte each record on sinlge line of text file regardless of the how big the record is in length.
Thanks
Murtuza Patel
|
|
|
|
|
How big is this record??
There is no limit to the size of a single line of text in a file, so the problem has to be in your code writing the text to the file.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dear Dave Kreskowiak,
Can u please reveiw my code to export he patient case in he textfile. Some friend told your notepad file must not be wordwrape. How can I do tha in my program.
Function ExportCases()
Dim MrecNo As String
Dim PtName As String
Dim PtDiagnosis As String
Dim PtHistory As String
Dim PHospital As String
Dim Ptsubspt As String
Dim EntryDate As Date
Dim ts As TextStream
Dim ExpStr As String
Dim sSQL As String
Dim PicComment As String
Dim pfno As String
Dim PicID As String
Dim i As Integer
On Error Resume Next
With FrmPicture
MrecNo = Trim(.TxtPCode.Text)
PtName = Trim(.TxtPName.Text)
PtDiagnosis = Trim(.TxtDiagnosis.Text)
PtHistory = Trim(.TxtHistory.Text)
PHospital = Trim(.TxtHospital.Text)
Ptsubspt = .CmbSubspcialitye.Text
EntryDate = .TxtDate.Value
End With
ExpStr = MrecNo & "@#$" & PtName & "@#$" & PtDiagnosis & "@#$" & PtHistory & "@#$" & PHospital & "@#$" & Ptsubspt & "@#$" & EntryDate & "@#$"
PicFolder.CreateFolder ExpPath & "\ExportedCases"
PicFolder.CopyFolder Trim(App.Path & "\Pictures\" & MrecNo), Trim(ExpPath & "\ExportedCases\" & MrecNo)
Set ts = PicFolder.CreateTextFile(ExpPath & "\ExportedCases\ImpCase.Text", True, True)
ts.WriteLine (ExpStr)
Set Rst = New ADODB.Recordset
Rst.CursorLocation = adUseClient
sSQL = "Select * from PicsDetail where PFno='" & MrecNo & "'"
Rst.Open sSQL, Conn
For i = 1 To Rst.RecordCount
pfno = Trim(Rst.Fields(0))
PicID = Trim(Rst.Fields(1))
PicComment = Trim(Rst.Fields(2))
ExpStr = pfno & "@#$" & PicID & "@#$" & PicComment & "@#$"
ts.WriteLine (ExpStr)
Rst.MoveNext
Next i
ts.Close
End Function
|
|
|
|
|
OK. So far, the code looks good. That is, it'll work if the data doesn't contain a carriage return, which will not be stripped out by Trim.
You'll have to write a function to scan a string for Carriage Return and/or Line Feed and strip those out before you write the string to a text file.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi there,
I have a problem of using Conver function to convert a text '01/01/2006' for example to datetime
please give me an example
thanks
|
|
|
|
|
|
That date format is ambigous, it could either be interpreted as dd/mm/yyyy or mm/dd/yyyy, and which one is chosen depends on what the current culture setting happens to be.
Specify a CultureInfo or DateTimeFormatInfo when you parse the string.
---
b { font-weight: normal; }
|
|
|
|