Using an IRC Library, I can't get it to play with the Form at all!

I'm having a problem getting my IRC Client to work. I normally don't use winforms or WPF, I chose WinForms because it was slightly easier to work with, I'm not new to threading, but I have no idea how this works.
Problem: When I start the application it doesn't even start the thread, or the Program.cs Main() function. It just hangs around, being a Gooey. 
MainForm.cs:
public partial class MainForm : Form {
public Program pro = new Program();
public MainForm() {
InitializeComponent();
}Program.cs:
[DllImport("kernel32.dll")]
private static extern void ExitProcess(int a);
static MainForm Form1;
public static MainForm form = new MainForm(); // Main Form Controls
[STAThread]
public static void Main() {
Application.EnableVisualStyles();
//Application.SetCompatibleTextRenderingDefault(true); - Ignoring this due to a start error.
form.Text = "Test"; // Trying to send text, doesn't work
form.MessageSend.Text = "Test 2"; // Trying to send text, doesn't work.
// Startup
MessageHandle(null, "Starting Client!! Welcome" + conf.BaseAdmin, 0);
GenerateFiles();
form.Text = "IRC Client Attempting to connect...";
irc.OnConnected += new EventHandler(OnConnected);
irc.OnChannelMessage += new IrcEventHandler(OnChanMsg);
irc.OnQueryMessage += new IrcEventHandler(OnPriv);
irc.OnJoin += new JoinEventHandler(OnJoined);
irc.ActiveChannelSyncing = true;
try {
irc.Connect(conf.Server, 6667);
} catch {
//irc.OnChannelAction += new ActionEventHandler(ActionEvent);
Form1 = new MainForm();
Application.Run(Form1);
#region --- Method: MessageHandle(name,msg,type) ---
public static void MessageHandle(string name, string msg, int type) {
DateTime now = DateTime.Now;
string timestamp = now.ToShortTimeString();
if (type == 0) {
// Client Message
form.MessageSend.Text += String.Format("[{0}] --- {1}\n\r", timestamp, msg);
} else if (type == 1) {
// Private Message
form.MessageSend.Text += String.Format("[{0}] <{1}> {2}\n\r", timestamp, name, msg);
} else if (type == 2) {
// Regular User Message
form.MessageSend.Text += String.Format("[{0}] <{1}> {2}\n\r", timestamp, name, msg);
} else if (type == 3) {
// Channel Mod (Operator)
form.MessageSend.Text += String.Format("[{0}] <@{1}> {2}\n\r", timestamp, name, msg);
} else if (type == 4) {
// Broadcaster (Admin)
form.MessageSend.Text += String.Format("[{0}] <~{1}> {2}\n\r", timestamp, name, msg);
} else if (type == 5) {
// Bot Admin
form.MessageSend.Text += String.Format("[{0}] <+{1}> {2}\n\r", timestamp, name, msg);
} else if (type == 6) {
// Channel Action (/me)
form.MessageSend.Text += String.Format("[{0}] * {1} {2}\n\r", timestamp, name, msg);
} else if (type == 7) {
// Join Channel
form.MessageSend.Text += String.Format("[{0}] *** {1} has joined the channel!", timestamp, name);
} else if (type == 8) {
// Self Message
form.MessageSend.Text += String.Format("[{0}] <{1}> {2}\n\r", timestamp, name, msg);
irc.SendMessage(SendType.Message, conf.Channel, msg);
#endregion
Yeah, I have no idea how forms work, but I'd like to learn for this little IRC Client project.
Thanks in advance!

Hello Brandan,
Like your title mentioned, you thread related to party library. I am afraid this is out of our support. Thanks for your understanding.
Have a nice day!
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Inserted a png PIP into my clip, can see it fine, can see it playing with the clip as expected when moving the play head manually, but cannot get it to play with the clip for preview, pleas help!

    I am sorry if my inquiry here seem dumb but I am a new iMovie user and cannot figure this out.  I inserted a png image into my video clip in the project as PIP, I can see it and move it and can also see it playing with the main clip if I move the play head manually, I can also see the PIP part only playing along with the undelying main clip if I use the Play button in the preview window when the PIP section is selected, however, for the life of me I cannot get it to play with the main clip all together for previewing the entire video via the video play button.  What happens is that the video plays normally and when the PIP section comes in, the video clip stop all motion during the duration of the PIP section and the PIP image itself is simply NOT showing.  Am I missing something really stupid here?  It seems as it the Picture On Picture is a separate clip that plays with the underlying main video clip if selected and played by itself but it is not part of the video clip and will not play with it.  What am I missing here, can anyone please help?
    Shony

    The easiest way to get up and running is to convert your MP3s to MP4s (obviously there won't be a video track). The following link links to a file that was an MP3 that I converted to an MP4 using QT Player Pro. When you go to export the files, make sure you click on "Options" and then check the box for "Enable Streaming" in the Streaming tab. It should stream flawlessly using QT Player. rtsp://rhsstreamit.rih.org/testmp4/Scorpion.mp4
    Make sure you place the media to be streamed in the proper folder. You should only get a "404" message if the physical file doesn't exist.
    Good luck!

  • I'm trying to learn how to use Xcode. I've create a simple Hide App app from a youtube video tut, but I can't get it to export with the icon I've chosen. Any clues why?

    I'm trying to learn how to use Xcode. I've create a simple Hide App app from a youtube video tut, but I can't get it to export with the icon I've chosen. Any clues why?

    We didn't do that video. Why are you asking here?
    Those videos are usually outdated....
    Use the current tools etc., in the iOS Dev Center and iTunes/iTunes U ~ Stanford.

  • I have 4 ricco md2 mini USB speakers and i can't get them to play at the same time. i have tried using the aggregate device feature but have had no luck. i can play each pair separately, but not together. what should i do?

    i have 4 ricco md2 mini USB speakers and i can't get them to play at the same time. i have tried using the aggregate device feature but have had no luck. i can play each pair separately, but not together. what should i do?

    i have 4 ricco md2 mini USB speakers and i can't get them to play at the same time. i have tried using the aggregate device feature but have had no luck. i can play each pair separately, but not together. what should i do?

  • I have a carillon 25 keyboard (bad choice, I know) and I can't get it to communicate with my mac at all! I'm running logic pro 9 and reason 5. I get signal in from my M Audio trigger finger so I know it isnt an entirely mac based problem. Thanks!!!

    I have a carillon 25 keyboard (bad choice, I know) and I can't get it to communicate with my mac at all! I'm running logic pro 9 and reason 5. I get signal in from my M Audio trigger finger so I know it isnt an entirely mac based problem. Thanks!!!

    Well, how have to determined no signal is being recieved to your mac?
    Have you got something that shows the actual signal? Or have you just been trying to control a VST? What software are you using by the way?
    I personnally went with a AKAI MPK25, because it's made already mapped for logic & ableton etc, so it just makes things incredibly easy.
    I would suggest you return it if you can as a dead unit & perhaps look at something else a bit easier?
    Otherwise, if you just want to get this working we can have a look a bit deeper.
    And driver? OS X driver?

  • When I buy a pre order song how do I get it to play with the rest of the CD?

    When I buy a pre-order song from i tunes, and then purchase the CD the song was from it will not play with the rest of the CD.
    Example: Tori Amos's new CD Unrepentant Geraldines
    I purchased the single Trouble's Lament when it was released, before the CD.
    I just purchased the CD and the song should be #2 on the CD, but its not there, it is listed separately, and will not play with the CD.
    Also, other issue... Free U2 CD, it says its in my Library when I clicked on the CD add in the store. It's nowhere to be found in my library!! I really would love to listen to it since I have several of there CD's and am a big fan
    If anyone can help with either of these issues , I would greatly appreciate it.

    For the single, if you select the track in your library and do 'get-info' (control-I) on it and select its Summary tab on the popup are its details (e.g. album name and artist) the same as for the other tracks on the album ?
    For the U2 album you should be able to download it into your library by ticking the 'show iTunes in the Cloud purchases' tick box on the Store tab in iTunes > Preferences - it should then show in the Music part of your library with a cloud icon against it for downloading (downloading the booklet for it this way may not work, you may get a 'corrupt file' message when trying to open it, though that might have been fixed by now).
    Or go to the Purchased link under Quick Links on the right-hand side of the iTunes store homepage and you should be able to download it from there.
    A third option is to sign out of your account (Store > Sign Out menu option), find the album in the store and then click on its free 'price' button - you should then be prompted to sign back in and the album should download.

  • How can I get Recipefox to work with the latest version (16) of Firefox?

    Recipefox worked on previous versions of Firefox. I could use the Grab It feature on many sites & easily retrieve recipes. Now, with the latest version of Firefox, it does not work on any of the recipe websites. Is there a more recent version of Recipefox that works with Firefox version 16, I am using 0.68. Does Recipefox get updated with newer versions of Firefox.

    Hi,
    You can try to right-click and '''Find Updates''' via '''Tools''' ('''Alt''' + '''T''') > '''Add-ons''' > '''Extensions'''. You can also '''Remove''' it, and search and install via the Search box on the top right or from [https://addons.mozilla.org/en-US/ AMO].
    [https://support.mozilla.org/en-US/kb/Using%20extensions%20with%20Firefox Using Extensions]
    If problems persist you can reset Firefox and start afresh with [https://addons.mozilla.org/en-US/firefox/addon/recipefox/?src=search recipefox].
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • I have a 3G Iphone and can't get it to pair with the Uconnect phone in my car. Help?

    I have a 3G iphone with bluetooth.  I have been unable to get the iphone to pair with the Uconnect Phone in my car.  Any suggestions?

    Hey Jojo iphone6,
    Thanks for the question. After reviewing your post, it sounds like you are having trouble with your car connection. I would recommend that you read these articles, they may be able to help you resolve or isolate the issue.
    iOS: Third-party Bluetooth accessories
    iOS: Troubleshooting Bluetooth connections
    Remove any case, stand, or other accessories from your iOS device and see if performance improves.
    Check for sources of potential interference and move both the iOS device and the Bluetooth accessory away from other electronic devices.
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings.
    iOS: Troubleshooting car stereo connections
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • I'm moderately competent, but can't get exchange to work with the 2 upgrade

    My original iPod touch synced perfectly with my Outlook 2003 at work, both contacts and calendar until I updated to 2.0 to enable downloading applications. Now I get the "OutlookSyncClient.exe has encountered an error and must close." Error. I have tried all fixes and will have to move on, unfortunately, unless there’s a fix out there.
    This is a corporate email/calendar and I can’t change every entry. It also involves Microsoft exchange, so I’m not sure how the .pst file is involved. Nevertheless. I have tried all the fixes that I can and nothing works. This device has been worthless for the last six months. Clearly something is wrong. I have tried many different computers networked to my account to try and diagnose this. Nothing works.
    Any ideas? Anyone?

    Hello, sorry to see you are running into this today. Below are some suggestions.
    Have you tried uninstalling the following Apple Applications in the following order? After you have done that check out the following directory below.
    1. Uninstall the following Apple Software in the following order to help reduce reboots
    -Apple Mobile Device Support
    -Apple Software Update
    -Bonjour
    -Windows iPod Updater (Name might be different but look for anything with the word iPod)
    -MobileME Control Panel
    -Quicktime
    -iTunes
    *Now reboot the computer
    *Once PC is back up and running, then go ahead and go to C:/Program Files/Common Files
    In this folder if you see an Apple folder. Delete this folder. Reboot one last time. Then download and install latest iTunes
    http://www.apple.com/itunes/download/
    *Post back as needed.

  • I can't get itunes to load on the computer at all! I have uninstalled and reinstalled and still nothing! Why can't I get itunes to open??

    I can't get itunes to open from my desktop. When I click on the icon nothing happens. I have uninstalled and reinstalled and still nothing. Why isn't itunes working??

    On my PC I had a problem where the iTunes store would only display a blank white page, I managed to display my account settings, but nothing for music, etc
    I treid this and it has immediately sorted it out...
    start>programs>accessories> right click on Command Prompt and run as Administrator
    then simply enter 'netsh winsock reset' and return
    after restarting the PC and loading up iTunes the store was there fine  ;-)
    I posted this on some other threads and it has been successful for the other people that have tried it

  • HOW  wireless works? I can`t get conected to ANYWHERE WITH THE IPOD TOUCH

    I do not know how get into itunes with the ipod touch, or you tube or anywhere. Safari only displays can`t get conected to the server. I have a wireless at home Belkin 54b and i connect 1 PSP,2 Wii, 2 laptops, 1Xbox 360, 2 Nintendo DS and they all work.

    I have put in all the wireless information and I have the wirelss signal, but all I get when I try to click on safari or itunes is a error message. The message is can not connect to server. I have 2 laptops and a wireless printer connected and they all work fine. What could be the problem.

  • Can I get audio to play til the end, even if I turn the page?

    I know how to add a quicktime audio file, but once you turn to the next page, the audio file stops. Is there a way to set the audio to play til the end regardless of how many pages you turn? Or would I have to split up the audio and have the user play it on each page they turn to?
    Are there any options for the audio player interface? Or would I have to resort to using a widget?

    I've just bought the enhanced edition of The Story of Naxos, and was intrigued to see that the embedded audio files do continue playing after the page has been turned.  So it's clearly something that iBooks itself is capable of handling, even if iBooks Author doesn't cater for it - and I've also submitted a feature request pointing this out.
    And with regard to the "superfluous" comment, it depends entirely on the nature of the project.  The one I've postponed until this feature is introduced involves recordings of Schubert songs that are supposed to be playable over the original German lyrics, an English translation, a musicological analysis and a facsimile of the score - the idea being that you can listen to the complete song while exploring various aspects of it.  But it's impossible to fit all this material onto one page, and even reading it in portrait mode doesn't work, as the music stops playing as soon as the embedded images from the score appear.

  • On the back button is the little drop down arrow completely gone, or is there a way I can I get it back. With the new Firefox I have to keep hitting back over and over again?

    Is the back button drop down arrow replaced by the little arrow next to the star on the bar?
    Maybe it didn't install correctly, I have Windows XP if that makes a difference. I know from the tour when the new one loaded there is supposed to be a bookmarks thing next to the new location for home but it's not on there either. It's still on my toolbar so I don't care enough to fix it so there is no need for anyone to address it, I just put the info in case it tells you something about it not installing properly.
    Sorry, it's not easy for older people to keep up with all the daily website changes, adding browser changes adds to the confusion. I hope my head doesn't explode one day. Thank you for the help.

    You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • Can anyone get lion to work with the older intel core duo iMacs?

    Has anyone been able to get Lion to run on the older Intel Core Duo iMacs?

    http://osxdaily.com/2011/04/08/hack-mac-os-x-lion-for-core-duo-core-solo-mac/

  • Can I get rid of Exchange with the new Server just released?

    Hi, I saw the new 8 core machine and all the programs. I also recieved an email from Apple telling me about all the calendaring it has.
    I want to get rid of Exchange. I have Outlook on 99.9% the clients, however, and they're not going to get rid of Windows or Office any time soon. Will the new server just released and the server software do Exchange server calendaring, scheduling, etc. just like (or better) than Exchange does?
    Thanks.

    iCalServer uses the new standard CalDAV protocol for calendaring. Exchange uses MS's own proprietary protocols - we do not have those implemented in iCalServer. As a result your existing Outlook users can't use iCalServer right now.
    The good news is that there is at least one group working on a plugin for Outlook that will enable access to iCalServer. Whilst this is still alpha quality right now progress is being made, and hopefully in the near future thee will be something usable. See <http://openconnector.org>.

Maybe you are looking for