Code request Thread
How do I open a file in VB6? I want to click on a button and it opens an .exe or a .zip file. It would be on a cd so it would be "[cdrom target]/folder/file.exe (example) and how do I make it open in a cd. It could be E:/ or F:/ or G:/ etc
Be nice to nerds.... chances are you will end up working for one
<u><b>Current system</b></u>
ASUS M3A78-EMH HDMI
AMD Athlon X2 6000+ o/c'd at 3.2GHz
4GB (2x2GB) OCZ RAM
Integrated Radeon HD 3200 (HDMI out)
500GB SATA/360GB IDE HDD's
32" Sharp 1080p Monitor/TV
Vista RTM/Vista SP2 Beta/7 6801
<u><b>Current system</b></u>
ASUS M3A78-EMH HDMI
AMD Athlon X2 6000+ o/c'd at 3.2GHz
4GB (2x2GB) OCZ RAM
Integrated Radeon HD 3200 (HDMI out)
500GB SATA/360GB IDE HDD's
32" Sharp 1080p Monitor/TV
Vista RTM/Vista SP2 Beta/7 6801
- coreyw2000
- PROfessional Member
- Posts: 4644
- Joined: Tue Oct 05, 2004 5:30 am
- Location: Saskatchewan, Canada
i haven't looked at much VB, but MSDN has tons of walkthroughs, tips, and other info.
i'm not sure how to execute a file / open a a file via shell extensions, but as for the drive problem:
the page linked below shows use of the CurDir() function, .. you could probably parse the output of that function early to get the drive letter your working with -- given that the program runs with it's working directory as the same path that it exists in. (also, .. no risk of this being used from a drive/partition mounted as an NTFS subfolder is there?)
if you store that into a variable early, you can use it for dynamically fixing to correct paths for the rest of execution. (all of my logic is actually running from use of C but the general idea should work w/ about anything)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/vbconProcessingFiles.asp
i'd test the ideas here ... but umm .. i'm in linux and don't wanna fight with windows today
- poisonbl
- Posts: 432
- Joined: Mon Nov 15, 2004 10:02 pm
- Location: WVU -- Morgantown, WV. -- USA (TZ: -5 hrs GMT, -4 DST)
Does anyone know how to get hold of the BIOS ID string using plain C, or failing that C++? I'd like to compile a small .dll with just one function, called say, 'grabBiosId'.. that I could call easily from say VB, ideally without requiring too much in the way of calling parameters. Or does anyone know of an existing, native windows API call that would do this (or an existing third-party, public domain .dll)
I have a vague idea how to use LCC-Win32 if that would be any use in compiling some C code.
I have a vague idea how to use LCC-Win32 if that would be any use in compiling some C code.
- marathonman
Using CSS
rjordan wrote way back...
I was wondering if there is a way that you can make the background of a table opaque. example would be you have a page background image that is fixed. background colour is white. You have a table with a blue background. You want to be able to see the background image through the table background.
I haven't been able to find anything about this, and it doesn't look like it can be done. Wondering if anyone else has tried this and if so, have you succeeded
You can make your background not move by using css
I was wondering if there is a way that you can make the background of a table opaque. example would be you have a page background image that is fixed. background colour is white. You have a table with a blue background. You want to be able to see the background image through the table background.
I haven't been able to find anything about this, and it doesn't look like it can be done. Wondering if anyone else has tried this and if so, have you succeeded
Why is it drug addicts and computer afficionados are both called users?
imnuts wrote:maybe you can help with this. i have seen many sites where the background is a static image and when you scroll down, the text moves and the background doesn't. how do they do that cause i want my site to be like that.
You can achieve that using simple HTML code as give below:
- Code: Select all
<body background="picture.jpg" bgproperties="fixed">
as simple as that..no need of css or anythingelse.
Kerala - India
- dotcompals
- Posts: 58
- Joined: Tue Dec 21, 2004 10:35 am
- Location: Kerala(m)- India / Bharat(am)
Re: Using CSS
ch00k wrote:rjordan wrote way back...You can make your background not move by using css
I was wondering if there is a way that you can make the background of a table opaque. example would be you have a page background image that is fixed. background colour is white. You have a table with a blue background. You want to be able to see the background image through the table background.
I haven't been able to find anything about this, and it doesn't look like it can be done. Wondering if anyone else has tried this and if so, have you succeeded
Try the below one
- Code: Select all
<table style="filter:alpha(opacity=65);" border="1">
Kerala - India
- dotcompals
- Posts: 58
- Joined: Tue Dec 21, 2004 10:35 am
- Location: Kerala(m)- India / Bharat(am)
I can help in c++/perl/oracle/VB/c/Java
don't hesitate to ask me anything
don't hesitate to ask me anything
<img src='http://img118.imageshack.us/img118/9747/adnanmadisigblurfinalix7.jpg' border='0'>
"God only created a few perfect heads ... the rest he covered with hair."
"God only created a few perfect heads ... the rest he covered with hair."
- adnanmadi
- Posts: 495
- Joined: Mon Mar 14, 2005 10:01 pm
- Location: Ramallah, Palestine
- Real Name: Adnan Madi
Return to HTML, CSS, and Scripts
Who is online
Users browsing this forum: No registered users and 9 guests