Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


Quick VB Question

Reply to topic
Bike Chat Forums Index -> The Geek Zone
View previous topic : View next topic  
Author Message

crazymotorbik...
Nearly there...



Joined: 05 Mar 2006
Karma :

PostPosted: 01:04 - 25 Mar 2010    Post subject: Quick VB Question Reply with quote

Hey,

Just a quick VB6 Question....

When closing a form using the x button how do you catch this?

I'm guessing its fairly straight forward. I used to know but haven't touched VB in many years.

Cheers,
Shaun.
 Back to top
View user's profile Send private message You must be logged in to rate posts

Kickstart
The Oracle



Joined: 04 Feb 2002
Karma :

PostPosted: 01:20 - 25 Mar 2010    Post subject: Reply with quote

Hi

Not touched VB6 in 2.5 years, but a quick look and I found this:-

https://episteme.arstechnica.com/eve/forums/a/tpc/f/6330927813/m/8030963785

All the best

Keith
____________________
Traxpics, track day and racing photographs - Bimota Forum - Bike performance / thrust graphs for choosing gearing
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Frost
World Chat Champion



Joined: 26 May 2004
Karma :

PostPosted: 02:09 - 25 Mar 2010    Post subject: Reply with quote

My bet would be:
Double click on the top of the drawing window, in the bit you'd normally drag a window about by. The code editor should then pop up, in the top right hand side there will be different event's pick the window close one and slap the code in that function.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Alexio
World Chat Champion



Joined: 27 Aug 2009
Karma :

PostPosted: 03:37 - 25 Mar 2010    Post subject: Reply with quote

It's one of the events listed for the window object. So, double click anywhere on the window. You will automatically go to the Load event, so instead select the Exit event (or what ever it's called) at the top right of the code window from what I can remember.

Ah, I miss VB6.
____________________
will never give up his CG. I look at my fuel gauge more as a progress bar than a fuel gauge.
G: With my GSXR I do often effectively use it as a scooter with a clutch in town.
ms51ves3: why does it need 500 miles? Are you teaching it how to be a piston?
 Back to top
View user's profile Send private message You must be logged in to rate posts

Kickstart
The Oracle



Joined: 04 Feb 2002
Karma :

PostPosted: 11:46 - 25 Mar 2010    Post subject: Reply with quote

Alexio wrote:
Ah, I miss VB6.


Same here. Far preferred it to the .NET rubbish.

All the best

Keith
____________________
Traxpics, track day and racing photographs - Bimota Forum - Bike performance / thrust graphs for choosing gearing
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

crazymotorbik...
Nearly there...



Joined: 05 Mar 2006
Karma :

PostPosted: 22:41 - 26 Mar 2010    Post subject: Reply with quote

Hey,

Thanks very much Smile

Karma all round.

Must admit i do enjoy VB!

Cheers,
Shaun
 Back to top
View user's profile Send private message You must be logged in to rate posts

Frost
World Chat Champion



Joined: 26 May 2004
Karma :

PostPosted: 01:08 - 27 Mar 2010    Post subject: Reply with quote

If you enjoy VB, look into C# its basically the same but alot more powerful and portable.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Alexio
World Chat Champion



Joined: 27 Aug 2009
Karma :

PostPosted: 02:38 - 27 Mar 2010    Post subject: Reply with quote

DaFrostyOne wrote:
If you enjoy VB, look into C# its basically the same but alot more powerful and portable.


The original VB is nothing like C#.
____________________
will never give up his CG. I look at my fuel gauge more as a progress bar than a fuel gauge.
G: With my GSXR I do often effectively use it as a scooter with a clutch in town.
ms51ves3: why does it need 500 miles? Are you teaching it how to be a piston?
 Back to top
View user's profile Send private message You must be logged in to rate posts

Kickstart
The Oracle



Joined: 04 Feb 2002
Karma :

PostPosted: 12:33 - 27 Mar 2010    Post subject: Reply with quote

Alexio wrote:
The original VB is nothing like C#.


Very true. VB6 is useful and doesn't try and hide things in half useful libraries all over the place.

All the best

Keith
____________________
Traxpics, track day and racing photographs - Bimota Forum - Bike performance / thrust graphs for choosing gearing
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Alexio
World Chat Champion



Joined: 27 Aug 2009
Karma :

PostPosted: 20:09 - 27 Mar 2010    Post subject: Reply with quote

Kickstart wrote:
Alexio wrote:
The original VB is nothing like C#.


Very true. VB6 is useful and doesn't try and hide things in half useful libraries all over the place.

All the best

Keith


Laughing Haha, this is the second time I've heard you mention this recently.

It's one of the reasons why I'm addicted to PHP rather than ever use the .NET libraries. Because you are required to create every single last thing yourself that comes out to the web browser you get to do every last thing right and perfectly. When creating your own libraries (which of course you end up doing and is an invaluable skill to develop) you do them exactly how you need so it's a language that while slower (at first) becomes 100% useful to you.
____________________
will never give up his CG. I look at my fuel gauge more as a progress bar than a fuel gauge.
G: With my GSXR I do often effectively use it as a scooter with a clutch in town.
ms51ves3: why does it need 500 miles? Are you teaching it how to be a piston?
 Back to top
View user's profile Send private message You must be logged in to rate posts

Kickstart
The Oracle



Joined: 04 Feb 2002
Karma :

PostPosted: 20:43 - 27 Mar 2010    Post subject: Reply with quote

Hi

I am the same. I like php. I would prefer it if it had variable types and declares, and also if you could easily play around with pointers (although gets bad when you get it wrong). Also it can be a bit inconsistent with the orders of parameters to functions.

I am not that keen on object orientated programming. I think it has a place when you have a reasonably size distinct object, but treating strings (for example) as objects is just silly. Written a few I use, to draw graphs and another to draw pie charts.

I do quite like mixing php and Javascript.

That said, I wish I could easily run Javascript on the server and call it from php. I have a Javascript function at the moment that I also need to run on the server, and having 2 versions needing maintaining in different languages is asking for trouble (OK, I could use Ajax, but this function is potentially called for every cell of a very large table, so potentially thousands of Ajax calls when a page is refreshed).

All the best

Keith
____________________
Traxpics, track day and racing photographs - Bimota Forum - Bike performance / thrust graphs for choosing gearing
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Alexio
World Chat Champion



Joined: 27 Aug 2009
Karma :

PostPosted: 21:02 - 27 Mar 2010    Post subject: Reply with quote

Is the JavaScript and PHP code for validation? If it is, what I would do is create a kind of parsing engine so that you store the commands of how to validate the data in the database, and your engine spits out JavaScript / executes PHP based on what comes out.

Can be complicated but then you end up maintaining the code in the same place because both sets of code are generated from the same data.
____________________
will never give up his CG. I look at my fuel gauge more as a progress bar than a fuel gauge.
G: With my GSXR I do often effectively use it as a scooter with a clutch in town.
ms51ves3: why does it need 500 miles? Are you teaching it how to be a piston?
 Back to top
View user's profile Send private message You must be logged in to rate posts

Kickstart
The Oracle



Joined: 04 Feb 2002
Karma :

PostPosted: 21:18 - 27 Mar 2010    Post subject: Reply with quote

Hi

The db stores strings which say how an element is validated (ie, multiple validation strings for an element). The page has a list of items vertically and a list of tests horizontally, with each resulting cell having a value. Each value is then checked against the validation strings for that test.

The javascript just compares the values with each validation string until it gets a match.

It's horrible enough to read without trying to generate code to evaluate.

All the best

Keith
____________________
Traxpics, track day and racing photographs - Bimota Forum - Bike performance / thrust graphs for choosing gearing
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts
Old Thread Alert!

The last post was made 16 years, 162 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> The Geek Zone All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.08 Sec - Server Load: 0.65 - MySQL Queries: 16 - Page Size: 84.96 Kb