dcsimg
Results 1 to 13 of 13

Thread: Just a question

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2017
    Posts
    34

    Just a question

    I wanna make a vb project which is like network to make connection between files. I wanna make it to open files like PowerPoint , DOC files, pictures, videos, and other VB projects. Is it possible to make a program like that?

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    99,412

    Re: Just a question

    For future reference, there's no such thing as "just a question". All questions are about something and the title of the thread is supposed to summarise that subject. Your title is as much use as no title at all and if everyone failed to provide a useful title then we'd have to open every single thread and read the question before even knowing whether we could possibly help.

    As for the question itself, what does "like a network to make connections between files" actually mean? You say that you want your app to open files of various types but what does that have to do with making connections? What does it even mean to open those files? Are you expecting your app to be able to display PowerPoint presentations, Word documents and other arbitrary file types just like their native applications do without putting in serious time to develop the functionality to do so? I'm really not sure what you are trying to achieve. Can you please provide a FULL and CLEAR explanation?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Hyperactive Member
    Join Date
    Sep 2017
    Posts
    461

    Re: Just a question

    The answer is yes.

  4. #4
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    32,240

    Re: Just a question

    I kind of think the answer is No, because I get about the same interpretation that JMC does. Creating an app that opens a single type of file that you didn't create is hard enough, making one that opens a variety of file types is going to be far more difficult, and creating something that opens ANY type of file is impossible in any reasonable way.
    My usual boring signature: Nothing

  5. #5
    PowerPoster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,115

    Re: Just a question

    Quote Originally Posted by Shaggy Hiker View Post
    I kind of think the answer is No, because I get about the same interpretation that JMC does. Creating an app that opens a single type of file that you didn't create is hard enough, making one that opens a variety of file types is going to be far more difficult, and creating something that opens ANY type of file is impossible in any reasonable way.
    Using a Process.Start and letting the file\program open based on the extension might cover a lot of files like PDF, DOC. XLXS, etc. It would be a start.
    Please remember next time...elections matter!

  6. #6

    Thread Starter
    Member
    Join Date
    Dec 2017
    Posts
    34

    Re: Just a question

    Sorry for the title, I wanna this program to load these types of files, for example when I click on button_1, it loads casper.doc, and when I click on button_2, it loads casper.ppt. I don't want it to display these files in the Interface. But the only thing that I need, I wanna put this program in CD or Flash, does it work?
    Hope you understood.

  7. #7
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    3,678

    Re: Just a question

    Quote Originally Posted by casper.mta View Post
    Sorry for the title, I wanna this program to load these types of files, for example when I click on button_1, it loads casper.doc, and when I click on button_2, it loads casper.ppt. I don't want it to display these files in the Interface. But the only thing that I need, I wanna put this program in CD or Flash, does it work?
    Hope you understood.
    This is confusing, you want to load but not display .doc file. I think maybe there's a language problem here.

    What do you mean by "Load a File"?
    Open it
    Copy it
    Read it
    Or something else

  8. #8
    Frenzied Member
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    1,155

    Re: Just a question

    Are you just wanting to open the file using its native application (assuming that the application is installed)?

  9. #9

    Thread Starter
    Member
    Join Date
    Dec 2017
    Posts
    34

    Re: Just a question

    Quote Originally Posted by wes4dbt View Post
    This is confusing, you want to load but not display .doc file. I think maybe there's a language problem here.

    What do you mean by "Load a File"?
    Open it
    Copy it
    Read it
    Or something else
    Open it, surely. I think it's the easier thing, cuz displaying is so hard and I don't know its code

  10. #10
    Frenzied Member
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    1,155

    Re: Just a question

    The link below may be of use for opening files in their native applications:

    http://www.vbforums.com/showthread.p...app&highlight=

  11. #11
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    99,412

    Re: Just a question

    So basically, you want your app to do nothing more than would happen if you were to double-click a file in Windows Explorer, correct?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  12. #12

    Thread Starter
    Member
    Join Date
    Dec 2017
    Posts
    34

    Re: Just a question

    Quote Originally Posted by jmcilhinney View Post
    So basically, you want your app to do nothing more than would happen if you were to double-click a file in Windows Explorer, correct?
    Yeah, that's it

  13. #13
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    99,412

    Re: Just a question

    In that case, Process.Start is what you want. It is basically the equivalent of double-clicking a file in Windows Explorer. There are a few subtleties that you should understand though, so you should read the documentation for the method itself and the ProcessStartInfo class.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width