|
Hi
I have developed a toolbar which needs to invoke a javascript function based on some criteria on specific web page.
To be simple, I want to know how to invoke javascript from BHO(using VB.NET).
I have done everything already but just this one needs help.
Thanks in anticipation
Mujtaba Panjwani
MAP Tiger
Tiger Softwares
Software Designer and Developer
VB.NET, ASP.NET, VFP
|
|
|
|
|
I have created vb application using crystal report 9 when i build the exe. it run well my machine but not running another machine without crytal report9.
When click report button through this error
"Runitime error '429'; ActiveX componenet can't create object"
kindly provide solution
also tell me required DLL and OCX
Thanks and Regards
D.Manivelan
|
|
|
|
|
Does Crystal not come with any sort of help files ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
You have to either install CR9 on the machine, or build your app's installer to include the CR9 runtime. This is all documented in the CR9 documentation.
|
|
|
|
|
|
Hi all...
I am creating a simple,small image editor program.
I have almost completed my program but except one thing.
I have associated .jpg files to my program (using registry editor).
Now, the main thing is that when I double click on any .jpg file, my program gets open but that image is not open in my program's picture box.
I want to do that when i double click on any .jpg file, that .jpg file would automatically open in my program (appear on my application's picturebox) for editing rather then loading .jpg file through my application manually.
Thanks.
Gagan
|
|
|
|
|
When you double click on the file, Explorer launches the associated application with a command line like this:
MyApp.exe "C:\FullFile\path.jpg"
Your application has to process the command line arguments to get the filename to open. It doesn't happen automagically.
A quick Google will give you a ton of examples -> "VB.NET command line arguments"[^]
|
|
|
|
|
Thanks Dave for your idea.
I have done what I wanted.
Gagan
|
|
|
|
|
Please be applied to code, i am not very English, so please affixed code complete some
Teacher, thank you
|
|
|
|
|
Try searching the articles on the site.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Go away
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Means Web camera try this.
Webcam componet name:vc1
Picturebox name is: pic1
VC1.EditCopy()
Pic1.Image = Clipboard.GetImage
|
|
|
|
|
This is a pretty petty item, but I'm bored so here it is:
I created a snippet. Everything with the snippet literals/objects work fine. When I insert the snippet, a blank line is inserted and then the snippet text. Is there a way to get rid of the blank line that gets inserted everytime?
It's Friday!
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
REmove the carriage return at the head of the snippet
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: REmove the carriage return at the head of the snippet
Sorry for the long delay...
There isn't a header carriage return that I can see in the snippet (looking at the raw file). Posted the snippet code here (xml nodes were getting stripped during preview on the boards here).
Not sure what the heck I am doing wrong to get the blank line inserted before the snippet is pasted in.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
modified on Monday, November 24, 2008 8:26 AM
|
|
|
|
|
Found the problem..... the blank line is inserted based on how the snippet is invoked.
For example, if you use CTRL+K, CTRL+X to find and run the snippet - this gives you the expected behavior.
If you use the shortcut name and press tab, the snippet is executed but inserts a blank line at the beg.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Hello,
I am creating a program in VB.Net that reads data from a specific file type (one that I didn't create). Part of my program reads the file to determine some of the data in it, references an embedded resource image (choosing which image based on said data), and displays that image in a picturebox.
I would like for these files to display a thumbnail of that same image in Explorer. I'd be all right with an explorer-like interface in my program that does this, but I'd much prefer if it could be applied to Explorer, so I can see these thumbnails even without the program running.
I've looked for information on how to do this everywhere, and I can't find any.
In a similar vein, I would like to associate these files with my program, so that when I double click them, my program launches and knows what to do with that file (basically it would run the functions it runs now, only without the need for an openfiledialog).
Any help (or points in the right direction at least) would be really appreciated. Thanks everyone!
As I sit here, I contemplate the last words of Socrates: "I drank what?".
Pokémon Pearl Friend Code: 4554-2418-6836
|
|
|
|
|
Associating the file extension is easy. You just have to go into Explorer >> Tools >> Options >> File Types tab >> New button. THen type in your file extension and click OK. When you get back to the list, click on your file extension, then click on Change. Click on the Browse button and file your application. That's a start anyway. You might have to tweak the final result for your requirements.
Writing a Shell Extension, on the other hand, isn't so easy. It is highly recommended that you do NOT do this in any managed language (C#, VB.NET, ...) but instead, write it in plain Visual C++. But, you can read up a bit on it at http://msdn.microsoft.com/en-us/magazine/cc188741.aspx[^]
If you're not familiar with Shell internals, I suggest postponing this project until you do a ton of research on the topic. You can start here[^]. This was the first in a series of three articles on the subject.
|
|
|
|
|
The file association has to be done programmatically, for deployment purposes... although that method would be fine for my personal use (if I could then figure out how to set my program to know what to do once the file is opened in this fashion).
I'll look into those links you provided. I may be in over my head, but something tells me someone else has tried something like this. Thanks!
As I sit here, I contemplate the last words of Socrates: "I drank what?".
Pokémon Pearl Friend Code: 4554-2418-6836
|
|
|
|
|
CodeMonkey85 wrote: The file association has to be done programmatically, for deployment purposes... although that method would be fine for my personal use (if I could then figure out how to set my program to know what to do once the file is opened in this fashion).
Get the association to work in your dev environment first. Then you can look in the Registry, under HKEY_CLASSES_ROOT to show you what you have to reproduce in your installation code to do it.
As for the image preview in Explorer, yes, other people have done it, and that's what they had to go through to accomplish it. There is no "template" project where you just modify a little bit of code, compile it call it Done!
|
|
|
|
|
Hello friends,
I am Usind MSAccess for loading some txtfiles from a folder to the SQL server. These txtfiles are gnerated from a testing tool. My Access will autoload the files to the server i.e my application is scheduled to call from scheduled task, twice a day. It will check the folder for txtfiles , if the folder is empty, the applicaton exits. Else it will load the files to server and move all loaded files to another folder.
My problem is if both tool(my MSAccess and the testing tool which creating txt files) are running simultanously these is a chance of half generated txt file(generating by testing tool) to be loaded in the server. I dont want that. That file has to be loaded next time.
How to prevent the half generated txtfiles from loading to server.
Hope u got my problem
Regards
Jishith
|
|
|
|
|
One way is to check the file size, wait say 10 seconds and check it again. Repeat until there is no change.
Hope this helps
Bob
Ashfield Consultants Ltd
|
|
|
|
|
In the old days (VAX/VMS) I used to be able to open a file either as "Shared" or "Exclusive". What you want here is to open the file, "Exclusive", so that you are guaranteed that that no other process is touching it.
You will need to test this out with OpenTextFile in MS-Access.
Just and idea.
|
|
|
|
|
We use a first pass flag. We know the write does not take more than x seconds so the loop sets a time flag the first pass. Second pass if the time flag is > wait setting then the file is loaded.
I almost like the exclusive idea (and will test it Monday) except you are programming by error (one of my favourite rants) ie try and open the file, if it fails then deal with it.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
the txt file may take minute for complete write.. And its with the customer side..i dont want to fail my application while opening..Want to load other file skipping the file which is still in writing process..
|
|
|
|