Results 1 to 3 of 3

Thread: VB.NET: By executing Form application using cmd prompt by exe1 & exe2, result misbeha

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2017
    Posts
    45

    VB.NET: By executing Form application using cmd prompt by exe1 & exe2, result misbeha

    Hi Developer,

    I created one form application in vb.net. I pick image from directory and paint on form in paint event. but after executing that exe two times in command prompt then one exe is showing form with properly painted but other is showing as full blank.

    I want my application should open as many times user want to execute.

    in command prompt: I wrote

    exe1 & exe2

    this opened two window forms. one form1 shoing full image but other form showing completely blank.

    Can you please help me to figure out this issue.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,344

    Re: VB.NET: By executing Form application using cmd prompt by exe1 & exe2, result mis

    If you actually wrote:
    Code:
    exe1 & exe2
    then you're not running the same EXE twice but rather running two different EXEs. You would have had to write:
    Code:
    exe1 & exe1
    Being vague doesn't help. I doubt that it's related to this but what happens if you run it with two separate commands instead of one with a & operator?

    Also, if this is a VB issue then we need to see some VB. I'm not sure why you would think that it was a good idea not to post the relevant code because, if it's not related to the VB code, it doesn't belong in this forum.

  3. #3
    Sinecure devotee
    Join Date
    Aug 2013
    Location
    Southern Tier NY
    Posts
    6,582

    Re: VB.NET: By executing Form application using cmd prompt by exe1 & exe2, result mis

    Another thing that comes to mine, I don't know if there is any possibility to it, but there may be a situation where if you're loading the image from a file in a particular manner, then maybe the file is locked and the second executable can't access it.

Tags for this Thread

Posting Permissions

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



Click Here to Expand Forum to Full Width