Click here to Skip to main content
15,889,909 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Finding the index of a Listbox item, based on search criteria. VB6 Pin
Richard MacCutchan27-Apr-15 7:04
mveRichard MacCutchan27-Apr-15 7:04 
GeneralRe: Finding the index of a Listbox item, based on search criteria. VB6 Pin
EdwardX227-Apr-15 12:49
EdwardX227-Apr-15 12:49 
GeneralRe: Finding the index of a Listbox item, based on search criteria. VB6 Pin
Sascha Lefèvre27-Apr-15 15:00
professionalSascha Lefèvre27-Apr-15 15:00 
Questionerror when i run my application Pin
Member 1163064825-Apr-15 5:25
Member 1163064825-Apr-15 5:25 
SuggestionRe: error when i run my application Pin
Richard MacCutchan25-Apr-15 6:42
mveRichard MacCutchan25-Apr-15 6:42 
AnswerRe: error when i run my application Pin
Dave Kreskowiak25-Apr-15 10:54
mveDave Kreskowiak25-Apr-15 10:54 
QuestionRun an exe in MDI_Form Pin
bellatriks24-Apr-15 22:35
bellatriks24-Apr-15 22:35 
AnswerRe: Run an exe in MDI_Form Pin
Dave Kreskowiak25-Apr-15 4:06
mveDave Kreskowiak25-Apr-15 4:06 
Every process will open in it's own window. You cannot prevent that. There is also no standard way of getting the window into another application as this is something that is not supported.

It can be done, though you may not like the results. You have to create a MdiChild form in your MDI project. Don't put anything on the form. When you launch your other project, create an instance of your child form and set it up as a MdiChild as normal.

After you launch your other process, you have to wait until the Process.WaitForInputIdle is true to be sure the process window has been created. When that finally happens, you can get the Process.MainWindowHandle property value. You then call the Win32 API function SetParent to reparent the process window to your child form. Your essentially making your MdiChild form the new Desktop window for your other app.

BUT YOU HAVE NO CONTROL OVER THE BEHAVIOR OF THE CHILD PROCESS WINDOW! Users can maximize, minimize, move, whatever, ... the process window inside your MdiChild form. There's really nothing you can do to prevent this.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

QuestionPartial public Sub ??? Pin
satc22-Apr-15 9:41
satc22-Apr-15 9:41 
AnswerRe: Partial public Sub ??? Pin
Sascha Lefèvre22-Apr-15 10:16
professionalSascha Lefèvre22-Apr-15 10:16 
QuestionDataGridView.Column("name").DefaultCellStyle.Format applied to all columns (it shouldn't be) Pin
Johan Hakkesteegt22-Apr-15 3:06
Johan Hakkesteegt22-Apr-15 3:06 
AnswerRe: DataGridView.Column("name").DefaultCellStyle.Format applied to all columns (it shouldn't be) Pin
Dave Kreskowiak22-Apr-15 4:15
mveDave Kreskowiak22-Apr-15 4:15 
GeneralRe: DataGridView.Column("name").DefaultCellStyle.Format applied to all columns (it shouldn't be) Pin
Johan Hakkesteegt22-Apr-15 20:26
Johan Hakkesteegt22-Apr-15 20:26 
GeneralRe: DataGridView.Column("name").DefaultCellStyle.Format applied to all columns (it shouldn't be) Pin
Johan Hakkesteegt22-Apr-15 21:21
Johan Hakkesteegt22-Apr-15 21:21 
GeneralRe: DataGridView.Column("name").DefaultCellStyle.Format applied to all columns (it shouldn't be) Pin
Dave Kreskowiak23-Apr-15 2:20
mveDave Kreskowiak23-Apr-15 2:20 
GeneralRe: DataGridView.Column("name").DefaultCellStyle.Format applied to all columns (it shouldn't be) Pin
Johan Hakkesteegt23-Apr-15 3:46
Johan Hakkesteegt23-Apr-15 3:46 
GeneralRe: DataGridView.Column("name").DefaultCellStyle.Format applied to all columns (it shouldn't be) Pin
Dave Kreskowiak23-Apr-15 4:05
mveDave Kreskowiak23-Apr-15 4:05 
GeneralRe: DataGridView.Column("name").DefaultCellStyle.Format applied to all columns (it shouldn't be) Pin
Johan Hakkesteegt23-Apr-15 22:21
Johan Hakkesteegt23-Apr-15 22:21 
GeneralRe: DataGridView.Column("name").DefaultCellStyle.Format applied to all columns (it shouldn't be) Pin
Dave Kreskowiak24-Apr-15 3:49
mveDave Kreskowiak24-Apr-15 3:49 
GeneralRe: DataGridView.Column("name").DefaultCellStyle.Format applied to all columns (it shouldn't be) Pin
Johan Hakkesteegt24-Apr-15 4:03
Johan Hakkesteegt24-Apr-15 4:03 
AnswerRe: DataGridView.Column("name").DefaultCellStyle.Format applied to all columns (it shouldn't be) Pin
Eddy Vluggen22-Apr-15 4:51
professionalEddy Vluggen22-Apr-15 4:51 
GeneralRe: DataGridView.Column("name").DefaultCellStyle.Format applied to all columns (it shouldn't be) Pin
Johan Hakkesteegt22-Apr-15 20:31
Johan Hakkesteegt22-Apr-15 20:31 
GeneralRe: DataGridView.Column("name").DefaultCellStyle.Format applied to all columns (it shouldn't be) Pin
Eddy Vluggen22-Apr-15 22:38
professionalEddy Vluggen22-Apr-15 22:38 
QuestionUnsure How to Approach New Personal Project Pin
cyberphreak198121-Apr-15 7:06
cyberphreak198121-Apr-15 7:06 
AnswerRe: Unsure How to Approach New Personal Project Pin
Sascha Lefèvre21-Apr-15 7:24
professionalSascha Lefèvre21-Apr-15 7:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.