I have a problem in this that i want to paas a form in a case that when user pres n then it must go to a form but error arises and not working good and threading is not responding
made in cosmos help please need it
using System;
using Cosmos.Compiler.Builder;
using System.Threading;
using System.Windows.Forms;
namespace IUOS
class Program
#region Cosmos Builder logic
// Most users wont touch this. This will call the Cosmos Build tool
[STAThread]
static void Main(string[] args)
BuildUI.Run();
#endregion
// Main entry point of the kernel
public static void Init()
var xBoot = new Cosmos.Sys.Boot();
xBoot.Execute();
Console.ForegroundColor = ConsoleColor.DarkBlue;
a:
Console.WriteLine("------------------------------");
Console.WriteLine("WELCOME TO THE NEWLY OS MADE BY THE STUDENTS OF IQRA UNIVERSITY!");
Console.WriteLine("------------------------------");
Console.WriteLine();
Console.WriteLine();
Console.WriteLine();
Console.WriteLine("\t _____
Console.WriteLine("\t| | | |
| | |");
Console.WriteLine("\t| | | |
| | |");
Console.WriteLine("\t| | | |
| | |");
Console.WriteLine("\t| | | |
| | |___________");
Console.WriteLine("\t| | | |
| | |");
Console.WriteLine("\t| | | |
| | |");
Console.WriteLine("\t| | | |
| | |");
Console.WriteLine("\t| | | |
| | |");
Console.WriteLine("\t| | | |
| | |");
Console.WriteLine("\t|_____| |____________| |____________| ____________");
string input;
Console.WriteLine();
Console.Write("\nAbout OS : a");
Console.Write("\nTo Shutdown : s");
Console.Write("\nTo Reboot : r");
Console.Write("\nStart Windows Normaly : n");
Console.WriteLine();
input = Console.ReadLine();
if (input == "s" || input == "S"){
Cosmos.Sys.Deboot.ShutDown();
else
if (input == "r" || input == "R"){
Cosmos.Sys.Deboot.Reboot();
else
if (input == "a" || input == "A"){
Console.ForegroundColor = ConsoleColor.DarkBlue;
Console.Clear();
Console.WriteLine("\n\n\n-------------------------------------");
Console.WriteLine("version: DISPLAYS OS VERSION");
Console.WriteLine("about: DISPLAYS INFO ABOUT ANGRY OS");
Console.WriteLine("hello or hi: DISPLAYS A HELLO WORLD");
Console.WriteLine("MESSAGE THAT WAS USED TO TEST THIS OS!!");
Console.WriteLine("-----------------------------------");
Console.Write("You Want to know : ");
input = Console.ReadLine();
if (input == "version"){
Console.WriteLine("--------------------");
Console.WriteLine("OS VERSION 0.1");
Console.WriteLine("--------------------");
else
if (input == "about"){
Console.WriteLine("--------------------------------------------");
Console.WriteLine("OS IS DEVELOPED BY Qazi Jalil-ur-Rahman & Syed Akber Abbas Jafri");
Console.WriteLine("--------------------------------------------");
Console.Write("Want to go back to the main window");
Console.Write("\nYes : ");
string ans = Console.ReadLine();
if (ans == "y" || ans == "Y")
goto a;
Thread.Sleep(10000);
else
if (input == "n" || input == "N")
Thread.Sleep(5000);
Console.Clear();
for (int i = 0; i <= 0; i++){
Console.Write("\n\n\n\n\t\t\t\t\t ____ ____ ___
Console.Write("\n\t\t|\t\t | | | |
| | | | | |");
Console.Write("\n\t\t|\t| | |---- | |
| | | | | |---");
Console.Write("\n\t\t|____|____| |____ |___ |____ |___| | | |___");
Thread.Sleep(500);
Thread.Sleep(5000);
Console.Clear();
BootUserInterface();
Console.ReadLine();
// Form1 fo = new Form1();
else{
for (int i = 0; i <= 5; i++){
Console.Beep();
Thread.Sleep(1000);
goto a;
while (true);
private static void BootUserInterface() {
Thread t = new Thread(UserInterfaceThread);
t.IsBackground = true;
t.SetApartmentState(ApartmentState.STA);
t.Start();
private static void UserInterfaceThread(object arg) {
Form1 frm = new Form1(); // use your own
Application.Run(frm);
Hi
Jalil Cracker,
>>when user pres n then it must go to a form but error arises and not working good and threading is not respondin
Could you post the error information? And which line caused this error?
If you want to show Form1, you can use form.show() method
Form1 frm = new Form1();
frm.Show();
In addition, Cosmos is an acronym for C# Open Source Managed Operating System. This is not Microsoft product.If the issue is related to Cosmos, it would be out of our support. Thanks for your understanding. And you need raise an issue at Cosmos site.
Best regards,
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
-
the version 11.1.4 of iTunes not working good because it's not recognizing my iPhone and I can't do anything.
Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features(Later)
Remove all of these items in the following order:
iTunes
Apple Software Update
Apple Mobile Device Support (If this won't uninstall press on)
Bonjour
Apple Application Support
Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
Should you get the error iTunes.exe - Entry Point Not Found after the above reinstall then copy QTMovieWin.dll from:
C:\Program Files (x86)\Common Files\Apple\Apple Application Support
and paste into:
C:\Program Files (x86)\iTunes
The above paths would be for a 64-bit machine. Hopefully the same fix with the " (x86)" omitted would work on 32-bit systems with the same error. -
My i phone is not working good
hi.my iphone is not working good. sometimes the buttons not works....
Can you be a little more specific? that isn't much to go on.
-
My bridge is not working normally and keep given me this message : bridge encountered a problem and is unable to read the cache . Please try purging the central cache in cache preferences to correct the situation
And did you then actually purge the cache?
Please realize that you have given ZERO details.
BOILERPLATE TEXT:
Note that this is boilerplate text.
If you give complete and detailed information about your setup and the issue at hand,
such as your platform (Mac or Win),
exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
your settings in Photoshop > Preference > Performance
the type of file you were working on,
machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
what troubleshooting steps you have taken so far,
what error message(s) you receive,
if having issues opening raw files also the exact camera make and model that generated them,
if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
etc.,
someone may be able to help you (not necessarily this poster, who is not a Windows user).
a screen shot of your settings or of the image could be very helpful too.
Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
http://forums.adobe.com/thread/419981?tstart=0
Thanks! -
Have 5s is crooked and button Sam time not working good I buy it in may 2014 .
have 5s is crooked and button Sam time not working good I buy it in may 2014 still under warranty .
If this is a hardware problem, contact Apple Support or visit an Authorized Apple Service Provider to get it serviced.
iPhone - Contact Support - Apple Support
To rule out a software issue, set it up as new device, explained here:
How to erase your iOS device and then set it up as a new device or restore it from backups -
When attempting to use Lightroom external editor program to edit a photo in Photoshop Elements 10, the photo does not open / appear on photoshop elements screen. I don't have any problem with this when using Photoshop Elements 6 or Photoshop CS. I'm using a Mac with Mountain Lion OS. Any solutions?
Adobe now hides the editor - what looks like it is not - you want the editor hidden in the support folder - see http://forums.adobe.com/message/3955558#3955558 for details
LN -
Hello, it's been 5 days now since my imessage has not working..and i have chatted to the costumer for two times. I took thier advice and instructions just to enable to send and receive on it but unfortunately until now its still NOT working. Is there anybody who could help me please?
Try this even if you have already. Just make sure to follow the steps specifically.
Go to settings > Facetime > send and recieve > tap on your apple id and sign out. If your not signed in then that will work as well.
Go to settings > Messages > sent and recieve > tap on your apple id and sign out.
Restart the iPad by doing the slide to power off setup. Just hold the power button on the top right till it turns off.
After the iPad has been restarted:
Go to settings > Facetime > and sign in
Go to settings > Messages > and sign in
Wait about 3 min then restart the iPad again. Same instructions as above.
When you restart you should be able to use messages again. If not then call support again and talk to someone higher than the first level support they have. -
Is there any official market or store or anything in Egypt to fix my iphone 4 it jumped from 5th floor and the back hous was crashed and the network sensor was not working good but the phone and the screen and the others things are ok so plz help ???
my iphone is now just coverd with case and the back house is crasedEtisalat, Mobinil and Vodafone provide warranty service in your country. You can also search Google for a 3rd party repair shop near you.
-
Hi. I have a problem with this receipt no. 190048666494. I did not purchase or Aurthorize this purchase request a refund or cancel this purchase. Thank you.
These are user-to-user forums, you are not talking to Apple here.
You can contact iTunes support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption -
The back button does not work consistently, and rarely if ever when I open an attachment. Does anyone have a fix for this?
== This happened ==
Not sure how often
== I installed firefoxSame problem here: I never had a problem with the previous versions and now I don't even get my homepage when I click Firefox. Instead, I am getting a blank screen that says "New Tab", only after I click the "Home" symbol I get my Homepage (Yahoo). The browser - back and browser forward button don't work anymore, very annoying. Normally a newer version should be an improvement but it looks like Mozilla really messed up with this "improvement". probably I am going to use Google chrome from now on.
-
I have a problem in this email I can not download any program I do not know why I hope gauged reason and rapid response and thank you
We're going to need more, clear information.
I'm not sure what email has to do with it, but are you having trouble downloading programs?
If so, what are you trying to download and what happens when you try? -
I tried to migrate my files from my old G4 book to my new Macbook Air. It did not work properly and I want to restore the Air to its original settings. How do I do this?
You will need to use an external DVD drive to run the disc installer that came you your machine. You can also do it with another Mac using the Remote Install Max OS X app. Finely, if you have access to another computer, you could burn the install image on a USB thumb drive, boot from that, erase the drive and run the installer.
17" 2.2GHz i7 Quad-Core MacBook Pro 8G RAM 750G + 120G OCZ Vertex 3 SSD Boot HD -
Hi Someone Know why my charger is not working properly but always it was been working good but now when conect my iphone (3gs) appears a golden triangle saying :Charging is not Supported with this accessory. Please I Need Some Help Here. Thanks =D
sounds like the cable or the iphone connector are somehow damaged
-
My on and off button is not working anymore and my iphone fell again today so the numbers 7,8,9 not working and so i cant enter my password to access my iphone. Pls, what can i do about this to access and change my password?
Changing your password won't help. It is a touchscreen so if 7,8,9 are not working then that part of the screen will not work if you were to get it unlocked.
TeeKnows is right. You need to contact Apple for a repair. -
I'm having difficulty syncing my iCal between my home computer and iPhone. New entries from my home are not syncing with the phone and vice-versa. I didn't have any problems with this before until the latest phone update. Any suggestions?
It could be that the existing wire in your appartment is not clean enough to provision DSL only. When combined with the phone possibly it has a higher line voltage and worked before. Now that the line is to be provisioned without phone service it may be giving them trouble that did not show before they came out and ran the new line test. So a new jack dedecated for your DSL line may require a new wire be run to your appartment. Also the account for internet only used to require direct billing to a credit card or something else. This was a number of years ago. Most accounts are linked to a phone number, and without a voice number it adds to the confusion.
If you are getting the voice and everything turned on as before, then I am at a loss for words.
Maybe you are looking for
-
Hi , I am trying to create a new web app using Central Administration in Sharepoint 2010 and getting an error "The password supplied with the username was not correct. Verify that it was entered correctly and try again". I tried running this command
-
Xperia Z3v - Lack of support and synergy with existing Xperia software
So far I like my Xperia Z3v but don't love it. Among the reasons, the most glaring one is the disconnect from Sony Mobile Support and Verizon Wireless, neither cares about owners of the Z3v... I understood that the Z3v was a re-branded and modified Z
-
Whenever I open the banner calendar in Word for Mac, I see nothing but gibberish that looks like merge coding. It appears only on my user account and not my wife's. I've tried to identify differences in preferences, but can't find any. Below is a scr
-
Swf not rendering fading type correctly
Dissolving (fading) type works in timeline......but not when I control>test movie or publish as swf! I've just upgraded to Flash Professional 8, and am doing some simple animation of type ( a line of type fades [using motion tween, color>alpha=0] as
-
for some unknown reason my iphoto will not open,when I try I get, you cant open the application iphoto because it may be damaged or incomplete. I have no iadead what to do thanks for any help.