Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi, i started off in Visual Basic 6 in september at college and i have progressed fast and have moved onto visual basic .net, anyway i want some sample code to look at which changes the opacity of the program.

I want it to use a combo box with different default opacity values and the option to enter other value, i then want the user to then click apply,

I know i may sound thick asking this question but i am only new so dont be to harsh on me

 

Jonathan

Posted

OK here is my code for the subroutine i have at the moment

 

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Form1.Opacity = 0.5

End Sub

 

I get the build task error of

C:\Documents and Settings\Jonathan.N-FORCE\My Documents\Visual Studio Projects\Opacity\Form1.vb(59): Reference to a non-shared member requires an object reference.
  • *Experts*
Posted

System.Diagnostics.Process.Start("path to the exe")

The process class will let you start and control processes. If you want more options then create a new Process object instead of using the shared method to start the app.

:)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...