Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General / July 2004



Tip: Looking for answers? Try searching our database.

Can I recompile with one click (set up an IDE toolbar button) ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alan Silver - 29 Jul 2004 12:14 GMT
Hello,

I find it very annoying that when I want to compile my project, I have
to ask VB to compile, then click OK to the dialog asking me where I want
to put the compiled file, then click Yes when it asks me if I want to
overwrite the existing one.

Can I put a toolbar button in that I can click and it will just compile
the project in the default folder and overwrite any existing file there
?

TIA

Signature

Alan Silver
(anything added below this line is nothing to do with me)

Norm Cook - 29 Jul 2004 13:49 GMT
View|Toolbars|Customize
Commands|File|Make <Project> and drag it to your toolbar

However VB will always prompt to overwrite an exising file.

I guess you could write an add-in but it seems like a lot of work to save a click.

> Hello,
>
[quoted text clipped - 16 lines]
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----==  Over 100,000 Newsgroups - 19 Different Servers! =-----
Alan Silver - 29 Jul 2004 14:05 GMT
>View|Toolbars|Customize
>Commands|File|Make <Project> and drag it to your toolbar

I've already got this bit, it was the OK and Yes clicks I was trying to
avoid (yup, I'm lazy).

>However VB will always prompt to overwrite an exising file.

I know, that's the annoying bit.

>I guess you could write an add-in but it seems like a lot of work to
>save a click.

I looked at this once when I was messing with creating add-ins, but it
seemed so much work for such a small thing that I never bothered.

Shame, it's a really irritating feature that could easily have been
avoided. Half a moment's thought would make you realise that the vast
majority of compiles must be overwriting an existing file. Why force the
developer to confirm the location and then confirm the overwrite ? Ho
hum.

Thanx for the reply

>> Hello,
>>
[quoted text clipped - 16 lines]
>> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
>> -----==  Over 100,000 Newsgroups - 19 Different Servers! =-----

Signature

Alan Silver
(anything added below this line is nothing to do with me)

Larry Serflaten - 29 Jul 2004 15:06 GMT
"Alan Silver" <alan-silver@nospam.thanx> wrote

> >However VB will always prompt to overwrite an exising file.
>
> I know, that's the annoying bit.

Tools > Options > Environment (tab) > Don't Save Changes

When selected, the program will just compile and run....

LFS


Alan Silver - 29 Jul 2004 17:16 GMT
>> >However VB will always prompt to overwrite an exising file.
>>
[quoted text clipped - 3 lines]
>
>When selected, the program will just compile and run....

I was asking about compiling the program, not running. I have this
setting set to save changes when I run, but that's not the issue here.

ta ra

Signature

Alan Silver
(anything added below this line is nothing to do with me)

J French - 29 Jul 2004 14:43 GMT
>Hello,
>
[quoted text clipped - 5 lines]
>Can I put a toolbar button in that I can click and it will just compile
>the project in the default folder and overwrite any existing file there

There is an Add In and set of utilities that does this and quite a lot
more

http://www.vbadvance.com/

I've not used it, but it seems highly rated

Actually I don't find that OK too irritating as I dont build the EXE
that frequently

I can see that it must drive people nuts when developing AX DLLs

Silly really, Alt F5 would do the trick

What drives me nuts is swapping between the Code and Object view of a
Form/Usercontrol
I am sure there must be some way of setting [F12] to toggle between
the two - but it beats me how.

And I really do not like Add Ins
Jan Hyde - 29 Jul 2004 14:59 GMT
erewhon@nowhere.com (J French)'s wild thoughts were released
on Thu, 29 Jul 2004 13:43:58 +0000 (UTC) bearing the
following fruit:

>>Hello,
>>
[quoted text clipped - 17 lines]
>
>I can see that it must drive people nuts when developing AX DLLs

I do a *lot* of compiling and I see this dialog as
essential. For whatever reason VB somethimes decides it's
gonna compile it somewhere unexpected. I always double check
the path before I compile.

>Silly really, Alt F5 would do the trick
>
[quoted text clipped - 4 lines]
>
>And I really do not like Add Ins

How are you doing it now? F7 and Shift+F7?

Jan Hyde

Signature

I saw a sign today that read "LOTS FOR SALE" but when I stopped I saw
absolutely nothing. (Jim E. Snibbler)

[Abolish the TV License - http://www.tvlicensing.biz/]

Alan Silver - 29 Jul 2004 17:18 GMT
>>I can see that it must drive people nuts when developing AX DLLs
>
>I do a *lot* of compiling and I see this dialog as essential. For
>whatever reason VB somethimes decides it's gonna compile it somewhere
>unexpected. I always double check the path before I compile.

Why ? Once you've compiled the DLL once, you are always going to compile
to the same folder and file name (assuming you have binary
compatibility, which seems to be the most sensible option in 99% of
cases).

Why would VB compile somewhere unexpected ? My gripe is that it's choice
of folder is *so* expected that I don't want to have to confirm it each
time !!

Signature

Alan Silver
(anything added below this line is nothing to do with me)

J French - 29 Jul 2004 17:57 GMT
<snip>

>How are you doing it now? F7 and Shift+F7?

No, I have stuck with VB5

[Alt V]  [C]
[Shift F7]

Drives me nuts, as those keys are not natural to me

When I go to Delphi, I just hammer [F11] and [F12]

When will those idiots at Microsoft realize that programmers hate
using a mouse when their hands are tied to the keyboard
Jan Hyde - 30 Jul 2004 09:13 GMT
erewhon@nowhere.com (J French)'s wild thoughts were released
on Thu, 29 Jul 2004 16:57:59 +0000 (UTC) bearing the
following fruit:

><snip>
>
[quoted text clipped - 6 lines]
>
>Drives me nuts, as those keys are not natural to me

I must admit I can't bring myself to use the F7 combinations
for that reason.

>When I go to Delphi, I just hammer [F11] and [F12]
>
>When will those idiots at Microsoft realize that programmers hate
>using a mouse when their hands are tied to the keyboard

Programmers are just as bad ;-)

The number of questions here that are asking to do things
which will make an app unusable for us keyboard folks....

Jan Hyde

Signature

Fireplace: An office used for discharging people. (Helen Hoke)

[Abolish the TV License - http://www.tvlicensing.biz/]

Peter Young - 29 Jul 2004 15:17 GMT
> And I really do not like Add Ins

How come?
J French - 29 Jul 2004 18:00 GMT
>> And I really do not like Add Ins
>
>How come?

I prefer to walk on bare boards
Even the idea of applying a service pack annoys me
Peter Young - 29 Jul 2004 19:34 GMT
> >> And I really do not like Add Ins
> >
> >How come?
>
> I prefer to walk on bare boards
> Even the idea of applying a service pack annoys me

Do you still use edlin too? ;-)
J French - 30 Jul 2004 15:28 GMT
>> >> And I really do not like Add Ins
>> >
[quoted text clipped - 4 lines]
>
>Do you still use edlin too? ;-)

Surely just plain ED
- and I've not used PIP for some time
Peter Young - 30 Jul 2004 16:55 GMT
> What drives me nuts is swapping between the Code and Object view of a
> Form/Usercontrol
> I am sure there must be some way of setting [F12] to toggle between
> the two - but it beats me how.

You can change it pretty easily if you have a resource editor (VC++, ResHacker, etc.)...

This is for VB6, and I presume VB5 is very close.
1) Open VB6IDE.DLL with your resource editor.
2) Open the Accelerators resource and look at entry 1302.
3) Change the F7 entry to F11.
4) Change the Shift-F7 entry to F12.
5) Save the changes.

You now have your Delphi F11 and F12 hotkeys.

How's that for walking on bare boards? <g>

-Pete
J French - 31 Jul 2004 07:40 GMT
>> What drives me nuts is swapping between the Code and Object view of a
>> Form/Usercontrol
[quoted text clipped - 13 lines]
>
>How's that for walking on bare boards? <g>

It works a treat - very impressive, Many Thanks !
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.