|
Hi all,
I'am thinking if there's someway i can call an vb exe file when i try to access a certain folder, like at first your gonna select a folder where you're goin to bind your exe, then when u try to access that folder your exe will be launched instead of windows showing the content of that folder...
-::maximus::-
|
|
|
|
|
I doubt that is possible, if it is, it would involve a system wide hook. Not sure you can hook on the opening of a folder.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I don't know of any way to do this. It MAY be possible by writing a Shell Extension (warning! This involves LOTS of COM interop), but I don't know of any examples that are triggered by the selection of a folder, or anything else for that matter.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I don't know if this would work, but if you were to hide the folder and create a shortcuct to your program with the shortcut named the folder name and the folder icon. So when the user clicks on the what they think is the folder, it opens your program, and say, if your program is already open, it just redirects to the folder or something.
Posted by The ANZAC
|
|
|
|
|
|
This is information that should be passed into the method by the caller. Since your .DLL can't determine what type of application is calling it, Application.StartupPath might not have any meaning.
But, if you're absolutely sure that the only thing that will call your method is a Windows Forms app, you can add a reference to the System.Windows.Forms.DLL, then do something like this in your DLL code:
Imports System.Windows.Forms
.
.
.
Dim path As String = Application.StartupPath
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
pl see the code
dim operator as string
operator="+"
there is err in this statement.
pl anyone can suggest me where to declare the var operator iam jus beggner and this is my first ques.
pl solve
Rink
|
|
|
|
|
I don't see any error in this statement. What makes you think otherwise ? What error are you seeing ?
wait - operator is probably a keyword in VS2005, which means it's a word ( like string or dim ) which has special meaning in VB and so you can't use it for a variable name. Try calling it op instead or something.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian is right. "operator" is a keyword and can't be used as a variable name.
It CAN be done though. Although, I don't recommend doing this because it makes your code harder to read. To use a keyword as a variable name, you have to enclose the name in square brackets:
Dim [operator] As String
[operator] = "+"
It's best to just rename the variable to something else:
Dim op As String
op = "+"
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: To use a keyword as a variable name, you have to enclose the name in square brackets:
Dim [operator] As String [operator] = "+"
I didn't know that. Thanks.
|
|
|
|
|
To use a keyword as a variable name, you have to enclose the name in square brackets:
Dim [operator] As String
[operator] = "+"
even i didnt knew that. Thanks.
Nitin...
|
|
|
|
|
im doing project on image processing that include inverse,threshold,smoothing filter,convolution and edge detection function. im using VB 6.0 and currently i only able to load the image. the image im using is bitmap type format. but im stuck at reading the pixel one by one. how am i going to do that? can you give me an example..
|
|
|
|
|
VB6 is pretty close to useless. Can you move to VB.NET ? Apart from being closer to a programming language (:P), you can actually get ALL those filters in C# from my image processing articles on this here site, which will convert easily to VB.NET.
They won't convert to VB6, nor do I think you have any real VB6 options to speak of.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
use CSharp...
i haven't try it before. but someone tell me that it'll work...
|
|
|
|
|
Hi,
I want to populate my list box with data from a column in my table in an SQL Database.
Table name is tbltest, listbox is lstnames and column name is names.
I want to add names from tbltest to lstnames.
Please help.
|
|
|
|
|
Which part are you stuck on ? Do you know SQL ( tragically, lots of people fancy they are writing database apps but don't know SQL nowadays ) ? Do you know how to interact with your database in code ? I assume you know how to set the datasource of a listbox ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
are you trying to answer me or are you just being rude? I am new to this and whould like to learn.
|
|
|
|
|
He's asking you where you're getting stuck. What part of this ListBox procedure are you having a problem with?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
|
hi there
how to add a combobox to a colum of the flexgrid in visual basics..
thanksin advance
bharath.s
|
|
|
|
|
|
hi,
Everyone know how to freeze panes the datagrid in vb.net? which mean DataGrid with the ability to lock the header row and columns.
Please help!
Regards,
charles
|
|
|
|
|
The DataGrid in 2002 and 2003 doesn't support "Freeze Panes". The DataGridView in 2005 does. The documentation on it is here[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hello,
I have a windows application that uses a sql server remote database.
Which is the best method to deploy an application that has to connect to a remote server on an another computer, that is part of the LAN Network.
I have been told that during installation the connection will be setup.
At the moment I am using the sqlclient connection. I have my connection string in the app.config. But when the customer installs that want to be able to browse to the server that they will have to connect to.
Well as I have never deployed, I will never know what is best.
Give you could give a short example, i would be most grateful.
Thanks
|
|
|
|