Good morning everyone. My name is A.Maurizio and my problem with Visual Basic 2010 express is this:
I state that I am a beginner; Therefore I am not very practical:
Having said this the problem is this:
I would like to try to bring up an image that I would like to take from my work subfolder.
Now when I use the VBA if I want to indicate mine (Sub Folder) it would be enough to write the Term "thisworkbook.Path)" \ Name of my sub Folder \ Name of the file.PNG! Or (JPG) etc ...!
The same thing I would get if I worked with (VB6.0) only that in this case I would have to write (App.Path) etc ...!
Using the Vb 2010 express which is the exact term to point directly to my subfolder without having to write (C: \) etc ...!
Thanks for All the help you want to give me about it; As for me, this is really becoming a puzzle. Thanks-
Greetings from A.Maurizio
Traslation :
----------------------------------------------------------
Buon Giorno a Tutti mi chiamo A.Maurizio e il mio problema con Visual Basic 2010 express e questo :
Premetti che sono alle prime armi ; Pertanto non sono molto pratico :
Detto questo Il Problema e questo :
Io Vorrei tentare di far apparire una immagine che vorrei Prelevare dalla mia sottocartella di lavoro .
Ora quando io uso il VBA se volessi indicare la mia (Sotto Cartella di lavoro ) mi basterebbe scrivere il Termine "thisworkbook.Path) "\Nome della mia sotto Cartella\Nome del file.PNG! Oppure (JPG) ecc...!
La stessa cosa lo otterrei se lavorassi con il (VB6.0) solo che il questo caso dovrei scrivire (App.Path) ecc...!
Usando il Vb 2010 express quale è il termine esatto per puntare direttamente alla mia sotto cartella senza dover per forza di cose scrivere (C:\) ecc...!
Grazie per Tutto L'aiuto che vorrete darmi in merito ; In quanto per me' questo sta proprio diventando un rompicapo Grazie-
Saluti da A.Maurizio

Jenith ThakkarRank #789 · 2.9K reputationPosted Jul 13, 2020, 6:30 PM EDT
appdomain.currentdomain.basedirectory
Try to check folder with above code
Thank you
Maurizio Anietti13 reputationPosted Jul 14, 2020, 12:03 AM EDT
Non essendo molto pratico io lo riportato cosi il tuo suggerimento :
Ho anche visto con molta amarezza che questo tipo di programma non accetta neppure il classico (LoadPicture)
E neppure il (CurDir) che normalmente si usa in vb6 per identificare una sotto cartella.
Mi sà che proverò ancora un po' poi mollerò tutto ; E continuerò ad usare il vecchio ma pur sempre meglio gestibile (VB6.0)
Che forse Graficamente sarà decisamente molto più scarso del (VB 2010 Express) ma è decisamente molto più pratico.
Ciao e Grazie per il tuo suggerimento
#################################
Laxmidhar SahooRank #383 · 6.6K reputationPosted Jul 14, 2020, 1:34 AM EDT
Maurizio Anietti13 reputationPosted Jul 14, 2020, 9:37 AM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Jul 15, 2020, 3:03 AM EDT