Link to home
Start Free TrialLog in
Avatar of Johnny
JohnnyFlag for United States of America

asked on

how can i print what form and sub i am in side of???

i want to be able to print what form or file im in and the sub im in at the time of the call...

im sorta writing a debug info file ...but i  want to be able to see where i am too


thanks in advance for any code or help you may provide
Avatar of riyazthad
riyazthad

Hi,

You can use Call Stack window. If it is not there in , you can add by just perssing Ctrl+Alt+C or go to Debug menu - > Window -> Call stack while debugging.

Thad
Avatar of Johnny

ASKER

no im looking to do something like

PrintToFile(date & "Connection - useing form/sub " & Form.Name & "/" & Form.Sub.Name & VbCrLf)

or something like that that will print the forms name ie Form1.vb and the Sub Form1_Load


thanks
ASKER CERTIFIED SOLUTION
Avatar of ZeonFlash
ZeonFlash

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Johnny

ASKER

Error      3      'Name' is not a member of 'IrcMX.EndPoint'.      D:\temp\phreikchat\phreikchat\phreikchat\IrcMX\src\connectivity\endpoint.vb      569      70      IrcMX.Net
Is EndPoint your form?

I hope you are doing from VS. not using vbc command utility. And make sure your class is inheriting from System.Windows.Forms.form class.

Where you are executing this above code? I hope ZeonFlash's code will work out for your requirement.

Thad
Avatar of Johnny

ASKER

endpoint is the file its in...there is no form(design) there... its a modual i think

and im useing vb express...