|
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; }
|
|
|
|
|
HI, i'm using vb.net and I need to get event when I leave a specific cell in my datagrid. for instance to get a messagebox when i leave a specific cell.
Thank You so much !!!
|
|
|
|
|
There are two events of a grid leave cell event and enter cell event...Leave cell event occurs when focus transffered to some other cell and Enter Cell event occur when specified cell got focus.
Try them mey be it would work for u
|
|
|
|
|
|
I’m using VB 2005 and attempting to have usercontrols connect to each other on the same and different forms at design time and run time.
My usercontrol class is called “Widget”. At design time when I drop Widgets on a form, their names in the property editor are assigned as Widget1, Widget2 and so on. The problem is that to other widgets on the form (when I enumerate them with a For…Each and query their names), their fellow widgets are all named with the class name “Widget”, not the instance name. This makes it difficult to connect them to each other.
At run time, the correct instance names are available.
I’ve tried just about every technique I know including shadowing the Name property (works at design time but corrupts the designer and fails at run time), extracting names with reflection (returns the generic name for an instance at design time) and so on.
Anybody have a suggestion on how to get the instance names to be available at design time?
Thanks in advance.
|
|
|
|
|
It's odd that you can't use the control's Name property. You might want to set the same name in the control's Tag property instead.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Could someone please point me in the right direction.
I'm writing a lotto program in vb.net 2005 and thought it might be a good idea to pull information off of the offical lotto home page(s) showing the last drawn numbers and display them on my form.
I will need to either download the page and then search the html or search the page on line. The problem is I don't really know the best way of doing this.
Please can someone advise or point me to some code that does something simular so I can work this out.
Many Thanks in advance
|
|
|
|