|
Is it possible to build a very specific file & folder search?. For example just like the file finder that windows has built in?. If it is, is there any way that someone can show me examples of what to use, how to use, like, namespaces, classes, etc. Or a website with some real help?. I really need to write my own programs things are getting very specific at work and the programs that we have do not really do what we want. The only way is by writing our own.
|
|
|
|
|
I had to do a file search one day, it may help you.
here it is :
<font color=blue>Dim</font> dlg <font color=blue>As OpenFileDialog</font>
<font color=blue>Dim</font> rep <font color=blue>As String</font>
<font color=blue>Dim</font> aff, a <font color=blue>As String</font>
<font color=blue>Dim</font> liste <font color=blue>As New ArrayList</font>
aff = ""
dlgouvrir = <font color=blue>New OpenFileDialog</font>
dlg.InitialDirectory = "."
dlg.Title = "searching the Tarifs.txt file"
dlg.Filter = "text|*.txt"
dlg.DefaultExt = "txt"
dlg.AddExtension = <font color=blue>True</font>
dlg.CheckFileExists = <font color=blue>True</font>
dlg.Multiselect = <font color=blue>False</font>
dlg.ShowDialog()
rep = dlg.FileName
<font color=green>
<font color=green>
<font color=blue>If Not</font> IsNothing(rep) <font color=blue>Then</font>
liste = ctrl.read(rep)
<font color=blue>Else</font>
liste = <font color=blue>Nothing</font>
<font color=blue>End If</font>
|
|
|
|
|
hello, I want to disable de double click event in treeview.
The reason is that I don't want that when you do double click over a node, automatically unfolds a child node, and I don't want this.
how I can do that when I do double click in a node, don't occurs anything?
Thanks
|
|
|
|
|
Hi.
Have you tried the 'DoubleClick' event on it?
I didn't test it, but maybe you can set something like this :
your_TreeView.TreeView.SelectedNode=your_TreeView.TreeView.SelectedNode.PrevNode
try it, and tell me if it's right or not.
|
|
|
|
|
|
Thanks for your repply, but where I have to put this code, if I want to disable the double click event. I think that I have to put the code in the double click event, but in this event, the property Cancel doesn't exists.
Thanks
|
|
|
|
|
Does any body know how to read a wave file from the vb code and to get the values into an array. I want to do it with out using mmioOpen function. Can I do this using open for binary method. If so how it should be?
Thanks in advance.
|
|
|
|
|
for what purpose do we use Controlcollection datatype?
please..........help
Mian Rashed Inam Khattak
|
|
|
|
|
Hi,
I have created a VB ActiveX DLL inside which I kept a single function. which dll is used by the VB script, inside script I create a object using "CraeteObject", This script run correctly On win32 OS but on 64 bit OS gives the error "Can't create the object" (Similiar).
Please help me to solve this problem.
Anuj
Anuj
|
|
|
|
|
Hai...
I have a written a dll in vc++. Now i want to call this dll in vb.Please let me know.
Thanking you
e.veera raghavendra
|
|
|
|
|
Assuming the C++ Dll is not compiled as a COM dll, you have to declare function prototypes in VB for the functions in the C++ dll. You must make sure to convert C++ types into the correct VB types, and use the appropriate ByVal and ByRef calling conventions.
A web search or MSDN search on "Calling Win32 API from VB" will provide you with a few zillion examples.
Robert
|
|
|
|
|
Hi Guys,
I am a >net developer. I hav a question. I need to write a program which wud call a JAVA API to make some search. I hav no idead a s to hw to call it. ken anyone help me do it??
Jobees
|
|
|
|
|
dear All
I have to made the data transaction,when the connection will be made ,connections means dial-up network beteween two systems.suppose the system A dialed then the system b will accept the connection and send the file,data to systema .now what i think,i think to create the service when the connection will be made it will activate,now my question is ,how can i know the connection is establishing,means the how cani know the incoming connections is currently connected or not from vb.net and also i want to get both ipaddress.if anybody can help me .thats very usefull for me
Ishak
|
|
|
|
|
What is the standard for commenting in VB. C# uses the summary tags I believe.
Can anyone shed some lite?
|
|
|
|
|
Doesn't VB.NET also generate XML help from the comments ? Or are you VB6 ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I'm using .NET
Can you provide a quick example plz.
|
|
|
|
|
I don't use VB.NET at all, ever. But in C#, if you type three slashes instead of two, you get the comment block that will convert to XML. Obviously, VB.NET does not use slashes at all.
A quick google adds this to the list of things that C# can do that VB.NET cannot, sorry. XML comments will be new in VB.NET 2005.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
OK - it's just not standard. I found an article explaining how 'with VS2005, VB users can do XML comments just like people using C#'.
I'm glad you found a solution.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
He used Google?? There is hope!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yeah, VB.NET 2002 and 2003 don't support doing this. At least without using a third party add-in, like VBCommentor. In 2005, this works just like it does in C#, only using '''.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have a problem that is confusing to me...
In my VBA code inside an MS Access database, I make a two function calls to external functions in a C++ DLL. Here is how I have it setup in VBA side:
'external LIB functions<br />
Private Declare Function Convert_String_To_Geodetic Lib "C:\Work\MyDLL.dll" (ByVal strMyStr As String, ByRef Lat As Double, ByRef Lon As Double) As Long<br />
Private Declare Function Convert_Geodetic_To_String Lib "C:\Work\MyDLL.dll" (ByVal Lat As Double, ByVal Lon As Double, ByVal Precision As Long, ByVal strMyStr As String) As Long<br />
When I don't absolute path, only the second function returns values as expected - the first Convert_String_To_Geodetic ( ) does NOT. When I do absolute path, BOTH functions seem to behave ok.
Questions:
1) how can I specify a relative path to current working directory - ".\" or no path has side effect of NOT WORKING.
2) WHY does using absolute path work? If I leave path off or ".\", it knows the DLL/function but doesn't return correct value back in Lat Lon variables.
I'm totally confused
Thanks,
Johnny
|
|
|
|
|
If you specify just the filename, then the current directory is searched for the .DLL. If it's not found, the system will look in the directory specified by the SystemRoot environment variable, and if still not found, will look in the directories listed in the Path evnironment variable. If this fails, then the call will fail.
Is it possible that you have a .DLL with the same name sitting in the Path somewhere?
As a rule of thumb, it's best to keep an applications .DLL's in its Program Files directory, or a subfolder of that directory. Do NOT use absolute paths, use relative paths only because you can't guarantee that your aplication will be installed on C:.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi All,
Using Notepad is a convenient method of displaying a HELP file.
Does anybody know how to control the Notepad properties once it has been invoked?
i.e how can you disable menu items and the text window in VB.NET code?
thanks
|
|
|
|
|
Wow - that's a really bad idea. What's so hard about creating your own dialog with a window to display text ? Or live with the fact that Notepad will let them change/save it.
You can control Notepad, but it's more work than you need to do, and it sure can't be done with a language as limited as VB.
Christian Graus - Microsoft MVP - C++
|
|
|
|