oldSAP

How do i create a vb program so that when executed, there is no form window but only a picturebox shown



Re: Smart Devices VB and C# Projects launch picturebox

mgaur_MSFT

Drag and drop picture box onto the form and maximize it fill the entire form. Now when you run the application your form will be filled by the picture box.

Remember - Form is the parent and will be present in your app.

Manav






Re: Smart Devices VB and C# Projects launch picturebox

oldSAP

thanks for the tip.

also, how do i remove the task bar and the button keys i only want to show the picturebox itself, and preferably a smaller size picturebox than the whole form size.





Re: Smart Devices VB and C# Projects launch picturebox

mgaur_MSFT

Using the designer set the form properties as follows:

  • Menu property to "None" and
  • WindowState to "Maximized"

This will remove the menu and task bar.

Manav






Re: Smart Devices VB and C# Projects launch picturebox

oldSAP

thanks.
but now i cant resize the whole form. i'd like to show just the picturebox i have added on my form when i execute my app. how do i do it




Re: Smart Devices VB and C# Projects launch picturebox

mgaur_MSFT

You can't have both! You need resize controls without showing the toolbar and this is not possible. You can however add some event handlers such that if user clicks on the picture box - you can resize the window.

Manav