Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 7th, 2006, 8:03 AM   #1
john Wesley
Hobbyist Programmer
 
john Wesley's Avatar
 
Join Date: May 2006
Location: United Kingdom
Posts: 119
Rep Power: 3 john Wesley is on a distinguished road
Send a message via MSN to john Wesley Send a message via Yahoo to john Wesley
Viewing VB's Automated code

hello, how are you and stuff? Stuck? ..same as me then, nah simple really i guess for a more experienced users of vb.net, not sure if anyone would like to help but i would appreciate it a hell of a lot.
im new to .net, moving over from vb6 and i have a slight glitch in writing code in this fan-dabby-dosey enviroment; i need to declare a string, but do it globally, but simply dont know how to view the code that VB automatically starts to write from the second you open a form, the Inherit Windows.System etc..and other than the one or two ( must of been 'mis-clicks' ) times i actually Seen this code with my own eyes, the rest of the time its totally hidden to me. for example, i have a form> add controls > view code, i get the Form_Load code or the code specific to the control i double clicked. how do i view the vb specific/automated code?

btw; i have searched the msdn library and also the online msdn, google cant help either.

Thanks if anyone has even an incline to the answer.
JohnWesley
__________________
Mona Lisa must of had the highway blues you can tell by the way she smiles..

Last edited by john Wesley; Jun 7th, 2006 at 8:11 AM. Reason: totally messed up explanation the first time
john Wesley is offline   Reply With Quote
Old Jun 7th, 2006, 10:58 AM   #2
melbolt
Professional Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 253
Rep Power: 4 melbolt is on a distinguished road
I believe you are looking for the designer code?

1.) open solution explorer

2.) select the control or project you want to see the designer code for (note, this does not work with the solution selected, only project or control/form)

3.)up on the top title bar of your solution explorer there are some little icons, if you hover over them one of them will have a tooltip that says "Show All Files", click this one and your control/form will now have a "+" beside it in the solution explorer tree view and when you drop it down, the designer code will be there.
__________________
I have never let my schooling interfere with my education. -Mark Twain-

Xbox live gamertag: melbolt
melbolt is offline   Reply With Quote
Old Jun 7th, 2006, 11:11 AM   #3
melbolt
Professional Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 253
Rep Power: 4 melbolt is on a distinguished road
another thing I should tell you, there is a thing called partial classes now, which means the same class can be in two or more files. so if you want to declare a global, you don't even need to do it in the designer code, just do it at the top of your class in the main codebehind vb file.
__________________
I have never let my schooling interfere with my education. -Mark Twain-

Xbox live gamertag: melbolt
melbolt is offline   Reply With Quote
Old Jun 8th, 2006, 6:37 AM   #4
john Wesley
Hobbyist Programmer
 
john Wesley's Avatar
 
Join Date: May 2006
Location: United Kingdom
Posts: 119
Rep Power: 3 john Wesley is on a distinguished road
Send a message via MSN to john Wesley Send a message via Yahoo to john Wesley
-curls up in a ball and feels dumb for a few hours-

Great stuff melbolt, thanks, though last night at around 1 AM i tiredly stumbed across this button and found the designer code (Eurika!). thanks alot for your explanation, and thanks alot for the tip on the declarations; seems handy.

Thanks again for your help.
__________________
Mona Lisa must of had the highway blues you can tell by the way she smiles..
john Wesley is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:54 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC