 |
28-01-2012, 03:05 PM
|
#1 (permalink)
|
|
Right Off the Assembly Line
Join Date: Sep 2010
Posts: 23
|
Help in VB6
How can I open a local html file in default browser on click event of command button?
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
28-01-2012, 06:52 PM
|
#2 (permalink)
|
|
Simply a DIGITian
Join Date: Nov 2007
Location: Kolkata
Posts: 2,942
|
Re: Help in VB6
__________________
- Read The Forum RULES First.
- Before PM'ing Or Asking Any Questions To Any Mod Read The FAQ's
- Before Starting A New Thread Read The STICKY THREADS First
- Before Participating In Bazaar Section Read The BAZAAR RULES
|
|
|
28-01-2012, 09:12 PM
|
#3 (permalink)
|
|
Right Off the Assembly Line
Join Date: Sep 2010
Posts: 23
|
Re: Help in VB6
Thanks Krishnandu. It has worked.
|
|
|
28-01-2012, 09:38 PM
|
#4 (permalink)
|
|
Simply a DIGITian
Join Date: Nov 2007
Location: Kolkata
Posts: 2,942
|
Re: Help in VB6
Glad that it helped
__________________
- Read The Forum RULES First.
- Before PM'ing Or Asking Any Questions To Any Mod Read The FAQ's
- Before Starting A New Thread Read The STICKY THREADS First
- Before Participating In Bazaar Section Read The BAZAAR RULES
|
|
|
29-01-2012, 06:49 PM
|
#5 (permalink)
|
|
Right Off the Assembly Line
Join Date: Sep 2010
Posts: 23
|
Re: Help in VB6
Another question.
I have made an exe file in vb6. The icon of the file is of form. I want to change it to another icon. Within vb6 only icon is of form. Right clicking the exe doesnot give any option to change icon. I have seen change icon of exe in somebody's program, but donot know how to do it.
Can anybody help?
|
|
|
29-01-2012, 07:44 PM
|
#6 (permalink)
|
|
Simply a DIGITian
Join Date: Nov 2007
Location: Kolkata
Posts: 2,942
|
Re: Help in VB6
Ok. I don't have vb6 installed. But this is how we do it in .NET
Check the properties of application. There should be a property named icon. You can choose .ico files only.
__________________
- Read The Forum RULES First.
- Before PM'ing Or Asking Any Questions To Any Mod Read The FAQ's
- Before Starting A New Thread Read The STICKY THREADS First
- Before Participating In Bazaar Section Read The BAZAAR RULES
|
|
|
30-01-2012, 08:03 PM
|
#7 (permalink)
|
|
Right Off the Assembly Line
Join Date: Sep 2010
Posts: 23
|
Re: Help in VB6
Thanks again. It worked in VB6.
|
|
|
30-01-2012, 08:37 PM
|
#8 (permalink)
|
|
Simply a DIGITian
Join Date: Nov 2007
Location: Kolkata
Posts: 2,942
|
Re: Help in VB6
Enjoy
__________________
- Read The Forum RULES First.
- Before PM'ing Or Asking Any Questions To Any Mod Read The FAQ's
- Before Starting A New Thread Read The STICKY THREADS First
- Before Participating In Bazaar Section Read The BAZAAR RULES
|
|
|
31-01-2012, 12:04 AM
|
#9 (permalink)
|
|
Stuck in Time...
Join Date: May 2009
Location: Land of Logic
Posts: 2,269
|
Re: Help in VB6
VB6! 
Why using such an obsolete language!
__________________
Marty: Hey, Doc, we better back up. We don't have enough road to get up to 88.
Doc Brown: Roads? Where we're going, we don't need, "roads!" :)
──── On the Internet you can be Anything you want. It's Strange that, so many people choose to be Stupid! ────
|
|
|
02-02-2012, 07:21 PM
|
#10 (permalink)
|
|
Right Off the Assembly Line
Join Date: Sep 2010
Posts: 23
|
Re: Help in VB6
Quote:
Originally Posted by krishnandu.sarkar
|
I associated this function with command button click event. When I click the command button, it is showing " you are about to run Active X control which may harm your computer". How can I get rid of this problem by change of program?
|
|
|
02-02-2012, 07:26 PM
|
#11 (permalink)
|
|
Simply a DIGITian
Join Date: Nov 2007
Location: Kolkata
Posts: 2,942
|
Re: Help in VB6
I guess no, until and unless user/you(in this case) selects allow always.
Still, I'm not sure, wait for others to confirm.
__________________
- Read The Forum RULES First.
- Before PM'ing Or Asking Any Questions To Any Mod Read The FAQ's
- Before Starting A New Thread Read The STICKY THREADS First
- Before Participating In Bazaar Section Read The BAZAAR RULES
|
|
|
02-02-2012, 08:01 PM
|
#12 (permalink)
|
|
Stuck in Time...
Join Date: May 2009
Location: Land of Logic
Posts: 2,269
|
Re: Help in VB6
Quote:
Originally Posted by digik
I associated this function with command button click event. When I click the command button, it is showing " you are about to run Active X control which may harm your computer". How can I get rid of this problem by change of program?
|
That's a browser related issue. Which browser do you use? Firefox has ActiveX off by default. Can't say about other browsers.
__________________
Marty: Hey, Doc, we better back up. We don't have enough road to get up to 88.
Doc Brown: Roads? Where we're going, we don't need, "roads!" :)
──── On the Internet you can be Anything you want. It's Strange that, so many people choose to be Stupid! ────
Last edited by Vyom; 02-02-2012 at 08:06 PM.
|
|
|
02-02-2012, 08:06 PM
|
#13 (permalink)
|
|
Simply a DIGITian
Join Date: Nov 2007
Location: Kolkata
Posts: 2,942
|
Re: Help in VB6
I guess IE..!! Because I haven't seen other browsers throwing that warning till now.
And isn't the ActiveX thing only for MS?? Other browser works in diff. way.
__________________
- Read The Forum RULES First.
- Before PM'ing Or Asking Any Questions To Any Mod Read The FAQ's
- Before Starting A New Thread Read The STICKY THREADS First
- Before Participating In Bazaar Section Read The BAZAAR RULES
|
|
|
02-02-2012, 08:22 PM
|
#14 (permalink)
|
|
Stuck in Time...
Join Date: May 2009
Location: Land of Logic
Posts: 2,269
|
Re: Help in VB6
Ok, read a few notes on ActiveX.
Almost every major browsers supports ActiveX, but the thing is, its disables by default in Firefox and Chrome. ActiveX is enabled by default in IE, but throws a warning, since IE also knows that ActiveX can cause a security issue.
Btw, ActiveX can be compared to Applets made in Java. With big differences like, ActiveX can work only on Microsoft OS, whereas Applet is cross platform. Also Applets are a LOT secure due to the virtual environment that it provides to run the applet.
@OP: I am assuming, you are using IE. You can disable the warning by going to Tools -> Internet Options, and then Checking the "Allow active content to run ..." options, under Advanced tab.
As I said, it's an obsolete technology. Better learn some modern languages.
__________________
Marty: Hey, Doc, we better back up. We don't have enough road to get up to 88.
Doc Brown: Roads? Where we're going, we don't need, "roads!" :)
──── On the Internet you can be Anything you want. It's Strange that, so many people choose to be Stupid! ────
|
|
|
02-02-2012, 08:37 PM
|
#15 (permalink)
|
|
Simply a DIGITian
Join Date: Nov 2007
Location: Kolkata
Posts: 2,942
|
Re: Help in VB6
Thanks for that..!! Learned new thing
__________________
- Read The Forum RULES First.
- Before PM'ing Or Asking Any Questions To Any Mod Read The FAQ's
- Before Starting A New Thread Read The STICKY THREADS First
- Before Participating In Bazaar Section Read The BAZAAR RULES
|
|
|
03-02-2012, 07:28 PM
|
#16 (permalink)
|
|
Alpha Geek
Join Date: Jul 2010
Location: Mumbai
Posts: 898
|
Re: Help in VB6
Man..people stil using VB6 ? wow..cant believe
__________________
Core-i5 2400 | Intel DH67BL | G.Skill 8GB DDR3 1333Mhz | 500GB Segate | CM 430 | Corsair VX550 PSU| BENQ V2410 eco LED Monitor | Genuine windows 7 64-bit Ultimate | Samsung Galaxy S & boring Nokia Lumia 800 :(
|
|
|
04-02-2012, 07:58 AM
|
#17 (permalink)
|
|
In The Zone
Join Date: Jun 2010
Location: Mumbai
Posts: 375
|
Re: Help in VB6
^I guess VB.NET becomes a bit easy after knowing the basics of VB6.
__________________
AMD Phenom II X4 955BE (Cooler Master Hyper 212+) || Gigabyte 785GMT-USB3 || Corsair 2x2GB DDR3 RAM || Corsair VX450W || NZXT Gamma || Logitech MX518
|
|
|
04-02-2012, 12:50 PM
|
#18 (permalink)
|
|
Right Off the Assembly Line
Join Date: Sep 2010
Posts: 23
|
Re: Help in VB6
There has been lot activity in this thread but I didnot know it as I didnot receive any email message though my email option is set to instant.
Anyway, this warning was shown in IE9. The program contained only a shell32.dll call on command click to open the web page. I don't think it is an Active X control. What are your opinion?
The program was made for autorun of CD containing html files. The program was then left out and only html files were kept. All the html files were first created in word 2003 and saved as html. Running of webpages by double clicking the file showed warning regarding active x control. Later on, same files were re-prepared in ms publisher 2003. Then there was no warning in ie6 or ie9. But, whenever, the same files were run from cd ie9 gave the same warning again.
For testing, one of the main file html file was edited to keep only html code. Running from cd didnot show any warning in ie6 but ie9 showed the warning.
Any idea why this is happening?
Last edited by digik; 04-02-2012 at 12:53 PM.
Reason: spelling mistake and rephrasing
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|