What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Windows Forms

Status
Not open for further replies.

totalschaden

Active Member
Joined
Feb 16, 2010
Messages
1,146
Reaction score
1
Hey first time using VS + Windows stuff here, im used to use Unity + Monodevelop unfortunally it cannot make .dll's :(. Does anyone know how I show the Windows Form Stuff from my FormGui.cs ([C#] using System; using System.Collections.Generic; using System.ComponentModel; - Pastebin.com) and i want to start it from TradeRun.cs PluginRun() ([C#] public void PluginRun() { try { - Pastebin.com) but i dont want it to block the thread,heres a img from the project setup imgur: the simple image sharer
 
1- when you create project -> Visual C# -> Class Library
2- put plugin class in it then create new form1 then on run do open form1

things to keep in mind
1- make sure to add ArcheBuddy.dll to reference
2- call function from class1.cs which is the orginal class
 
1- then on run do open form1

Thats is what I was asking for, how to do it without blocking the Thread. You could atleast have checked my post for a minute the post is completely useless for me.
 
You have to use System.Threading, you can find lot of documentation online.
runplugin{ thread f = new thread;
f.start();

Else you can use background worker (suggested if you have to share variables and such between threads.
 
Hey thanks for the reply, yesterday I ended up using Show(); ApplicationRun(); in the auto executed method, so the GUI was working for the first time, after that i get even more pissed about the Windows Forms and Threading, so i ended up completely removing the GUI. I dont feel like readding it anytime soon, made everything work without the need of a GUI.
 
Hey thanks for the reply, yesterday I ended up using Show(); ApplicationRun(); in the auto executed method, so the GUI was working for the first time, after that i get even more pissed about the Windows Forms and Threading, so i ended up completely removing the GUI. I dont feel like readding it anytime soon, made everything work without the need of a GUI.
after using application.run
do ( While ) to check if app still running then sleep(1000)

vb.net code
Application.Run(Form1)
While Application.OpenForms().OfType(Of Form1).Any
Thread.Sleep(1000)
End While
 
There are several example plugins that open a form whose source is available. Best to model off of an example.
 
Status
Not open for further replies.
Back
Top