Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    WTX-HACK's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0

    Cool [HELP] ClassLibrary - Form.Show

    Hi , I am From Turkey , So My English Not Good

    I Created A ClassLibrary Project

    I Wanna , If My DLL > Injecting Then : Form1.Show

    How I Can Do It ?

    I Tried 2-3 Something , Injected But Form1 is not open
    Last edited by WTX-HACK; 12-28-2012 at 01:40 AM.

  2. #2
    rileyjstrickland's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Florida
    Posts
    649
    Reputation
    90
    Thanks
    4,008
    My Mood
    Relaxed
    Please rephrase this, I have no idea what you're asking.
    If it's a library and you just want to show a form I'd do something like this

    Main Class/Window
    Code:
    Imports WindowsApplication1
    Public Class Form1
        Dim test As New test
        Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
            test.show(Form2)
        End Sub
    End Class
    Library Class
    Code:
    Public Class test
        Public Sub show(form As Form)
            form.Show()
        End Sub
    End Class
    Last edited by rileyjstrickland; 12-28-2012 at 03:19 PM. Reason: typo

    If You Like My Releases, Hit The Thanks button!
    Follow the rules.

    Successful Purchases: 2
    @The403
    @sundy42
    Successful Sales: 1
    @wZ. Gali
    Scammed: 1

    Favorite Quotes:
    Quote Originally Posted by Doc View Post
    Who cares about simplified mandarin. The only problem here is that Cantonese (and Hokkien) is no longer being taught, but guess what, times change. There have been thousands of languages that have been lost to the ages, you'd be pissing in the wind to try and stop that.

  3. #3
    abuckau907's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    other side of the wire
    Posts
    1,342
    Reputation
    162
    Thanks
    239
    My Mood
    Cold
    he wants to inject the dll
    and when dll loads (dll_main), form1 should load/appear.

    --language barrier is where I draw the line.
    Last edited by abuckau907; 12-28-2012 at 03:26 PM.

  4. #4
    Pingo's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    687
    Reputation
    24
    Thanks
    865
    My Mood
    Blah
    @WTX-HACK
    @Devolten

    Add System.Windows.Forms to your references

    Code:
    Imports System.Windows.Forms
    Public Class Class1
    
        Shared Fm As Form = New Form
    
        Public Shared Function DllMain(ByVal arg As String) As Integer
            Dim _Thread As System.Threading.Thread = New System.Threading.Thread(AddressOf Main)
            _Thread.Start()
            Return 0
        End Function
    
        Shared Sub Main()
            Fm.Text = "Test Form"
            Application.Run(Fm)
        End Sub
    
    End Class
    Get an injector that hosts the clr. I'v got one here or you can search for one if you don't like mine.
    https://www.mpgh.net/forum/290-crossf...tion-base.html

    And inject it...
    [IMG]https://i203.photobucke*****m/albums/aa29/Baxter_esa/DllForm_zpsae01a206.png[/IMG]

    Supports .net framework 3.5 and under.

  5. #5
    Devolten's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    6
    I Have VS 2010 , So .Net FrameWork 4 ...

    I Changed .Net Runtime When Classlibrary Creating I Selected "3.5" , And Copy & Paste Your Code , After Add Reference System.Windows.Forms , Build ...

    I Injected But Not Working ..

  6. #6
    Pingo's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    687
    Reputation
    24
    Thanks
    865
    My Mood
    Blah
    @Devolten
    What injector did you use?

  7. #7
    Devolten's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    6
    Process Hacker ...

    I Have C++ DllMain Project , Injected Then Working But , VB.Net DLL Not Working ...

  8. #8
    Pingo's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    687
    Reputation
    24
    Thanks
    865
    My Mood
    Blah
    @Devolten
    Thats because you can't just inject a .net dll and have it run.
    You need to download an injector that'l host the clr or make a C++ bootstrap.
    99% of the injectors on this site will only work for C++ dll's.

    That injector link i gave you should work just fine, it'l inject C#/vb/C++ dll's.
    You should also beable to find a few more like it on this site.

    Heres a link about making a bootstrap
    How To Inject a Managed .NET Assembly (DLL) Into Another Process | Coding the Wheel

    Or just follow that first link.

  9. #9
    Devolten's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    6
    Injector is working , all dll injecting ... but my vb.net dll not injecting ...

    if you want i can give you team viewer ...

  10. #10
    abuckau907's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    other side of the wire
    Posts
    1,342
    Reputation
    162
    Thanks
    239
    My Mood
    Cold
    @Devolten - listen to Pingo. It's because you're inject a ".net dll" not a normal ".dll", it needs the CLR.

  11. #11
    Devolten's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    6
    We completed it ... he connected me with team viewer ... my issue > .net framework 4.0 project ... should 3.0 project ...

    thanx for all @Pingo

  12. #12
    abuckau907's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    other side of the wire
    Posts
    1,342
    Reputation
    162
    Thanks
    239
    My Mood
    Cold
    @Devolten: Your injector work ("P..InterFace'') to host CLR, or you use his injector for this?

    Was the problem only the .net version, or also the injector being used? thnx for clarifying for ppl w/ similar issues.
    Last edited by abuckau907; 01-02-2013 at 02:14 PM.

  13. #13
    Devolten's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    6
    Yeah ... Of Course ...

    What Do u want me .. ?

  14. #14
    abuckau907's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    other side of the wire
    Posts
    1,342
    Reputation
    162
    Thanks
    239
    My Mood
    Cold
    real representation. no make post " I am haxor " , when reality is [this] - "Perfect InterFace"

    edit* you release inject make seem like haxor
    your questions make seem not

    make them == (and for future posts/release, please leave a good* description, not just the .exe --> Everyone expects this)

    I'll leave you alone now. Unless you make silly posts :/
    Last edited by abuckau907; 01-02-2013 at 02:21 PM.

  15. #15
    Pingo's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    687
    Reputation
    24
    Thanks
    865
    My Mood
    Blah
    @abuckau907
    It was just the injector he was using. Might of been the framework too but i never checked his source.
    We started a new project, changed the framework to 3.5 and used an updated version of the injector i linked him to.

Page 1 of 2 12 LastLast

Similar Threads

  1. [Solved] Show form in center of chosen process
    By RobinC in forum Visual Basic Programming
    Replies: 9
    Last Post: 11-10-2012, 05:04 PM
  2. [Help]Can't Show Form[solved]
    By ♪~ ᕕ(ᐛ)ᕗ in forum Visual Basic Programming
    Replies: 4
    Last Post: 01-10-2011, 11:34 AM
  3. Form Won't Show
    By Shark23 in forum Visual Basic Programming
    Replies: 8
    Last Post: 05-19-2010, 03:14 AM
  4. Show and Close Forms
    By ppl2pass in forum Visual Basic Programming
    Replies: 3
    Last Post: 02-13-2010, 09:20 PM
  5. Warrock.exe dosent show on WPE
    By outrage20 in forum WarRock - International Hacks
    Replies: 8
    Last Post: 01-18-2006, 02:55 PM