[HOW TO] Increase Sharecash Earnings

Will this version work:
Code:
microsoft.com/visualstudio/en-us/lightswitch

Any help would be great.
 
What is the command to launch an .exe after the message is given? So I can have it launch a different program within the same folder after it gives the update message?
 
Weird, I just tried this and no message popped up. Does this work with visual studio 2010?
 
I'm sorry, it just doesn't work! I'm using VS 2010 too and I've been trying to get it to work for like 2 hours (yes, I am not familiar with programming language)

Okay so I open a new project (C# language). I follow your steps very carefully, I change opacity to 0% then I copy-paste the code and change YOURPROJECTNAME to WindowsFormsApplication2 (if I use any other name then I get the following error: The name 'InitializeComponent' does not exist in the current context

I save the project and click "Build Solution".
==== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ====

I open the newly made application (.exe) and i just don't see it because of the Opacity being 0%! So I change back the opacity to 100% so I can actually the the window popping up. Now it does pop up but it's just a blank window (I'm not allowed to post images yet)


Now, can any of You help me, please?
I have just started building a blog I could use to promote these type of .exe files.
Also, why change the Opacity to 0%?

Again, I'm sorry if I sound like a total newbie, seriously, I don't know programming languages.
 
I'm sorry, it just doesn't work! I'm using VS 2010 too and I've been trying to get it to work for like 2 hours (yes, I am not familiar with programming language)

Okay so I open a new project (C# language). I follow your steps very carefully, I change opacity to 0% then I copy-paste the code and change YOURPROJECTNAME to WindowsFormsApplication2 (if I use any other name then I get the following error: The name 'InitializeComponent' does not exist in the current context

I save the project and click "Build Solution".
==== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ====

I open the newly made application (.exe) and i just don't see it because of the Opacity being 0%! So I change back the opacity to 100% so I can actually the the window popping up. Now it does pop up but it's just a blank window (I'm not allowed to post images yet)


Now, can any of You help me, please?
I have just started building a blog I could use to promote these type of .exe files.
Also, why change the Opacity to 0%?

Again, I'm sorry if I sound like a total newbie, seriously, I don't know programming languages.

Oh, you probably did something wrong in step 2. You have to double click on the form, so Visual Studio adds a line of code for you. You can manually add it too. It's the underlined text.

Code:
        public Form1()
        {
            InitializeComponent();
            [U]this.Load += new System.EventHandler(this.Form1_Load);
[/U]        }


If you use Visual Studio 2010, it's better target .NET Framework 2.0. Some people haven't installed the .NET Framework 4.0.
 
And don't forget to change the assembly information (right click on the project -> properties) and the icon. It's more professional. Rebuild the app afterwards.

Also on the properties screen of the project, there is a tab "build". Click on it, go to the end of the screen and click "advanced". A new "advanced build settings" screen will open. Change "Output: debug info" from "full" to "none". Otherwise you will find in your .exe file the path to your project folder, and most of the users have their (real)name in it. Check that out.
 
Biglia, thank you very much!

It worked although I had to use .NET Framework 4.0. or else I get the following error:
The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)

Oh well, I'm still very happy it works! :)
 
Here I translated the code to VB.Net:

Code:
Public Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.Visible = False
        Const message As String = "There's an updated version of this program available. Would you like to download now?"
        Const caption As String = "Please update"
        Dim result = MessageBox.Show(message, caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question)

        ' If the no button was pressed ...
        If result = DialogResult.No Then
            MessageBox.Show("Program will close now. If you want to use this program please update to the newest version.", "Please update")
            Me.Close()
        ElseIf result = DialogResult.Yes Then
            System.Diagnostics.Process.Start("Sharecash-Link")
            Me.Close()
        End If
    End Sub
End Class
 
Biglia, thank you very much!

It worked although I had to use .NET Framework 4.0. or else I get the following error:
The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)

Oh well, I'm still very happy it works! :)

Just delete that line ( using System.Linq; ), you don't need that one.
Linq isn't available in .NET Framework 2.0. It is used for database connections, so you don't need it.
 
Last edited:
This is some good stuff actually. Perfect for a method I was thinking about. Is there any way to make the exe bigger by increasing it's size or binding it with a dummy file?


Just create a dummy file and drag&drop that file to your project in the Visual Studio window. Next select that file and set the property "Build Action" from "Content" to "Resource". Finally rebuild.
 
Just create a dummy file and drag&drop that file to your project in the Visual Studio window. Next select that file and set the property "Build Action" from "Content" to "Resource". Finally rebuild.
Just add .bmp image as a resource. Simply go to Properties -> Resources -> Add Resource -> Add Existing File
 
Very clever method. I was thinking something about this and it now helped me understand clearly. Thanks so much. +Rep given for this excellent share. Cheers!
 
I'm having problems here. I have followed the steps exactly as described (using MVS 2010 Ultimate) and I'm very sure that I'm not doing this the right way. I hope someone could help me with this on private massaging or skype? I'd be willing to sign-up as your SC referral? I really need this to work for me. I hope someone could help me. TIA.
 
Back
Top